It's A Discord Bot Made For The Competitive Programmers. That will Help To Track The New Events on CodeChef And CodeForces And A Virtual Compiler For C++ and Python To Test the programs And Much More.
Python
CP-Bot
It's A Discord Bot Made For The Competitive Programmers. That will Help To Track The New Events on CodeChef And CodeForces And A Virtual Compiler For C++ and Python To Test the programs And Much More.
Badges
Features
Easy To Search The User's Info On CodeChef And CodeForces
Easy To Track The Current And Upcoming Events On CodeChef And CodeForces
$run
```py
a = input()
b = input()
x = float(a) + float(b)
print(x)
```
$input
```
3
5
```
For C++
Without $input
$run
```c++
#include <iostream>
using namespace std;
int main()
{
for (int i=0;i<5;i++)
{
cout<<"Hello World\n";
}
return 0;
}
```
With $input
$run
```c++
#include<iostream>
using namespace std;
int main()
{
int a;
cin>>a;
for(int I=0;I<a;I++)
{
cout<<"Hey\n";
}
return 0;
} ```
$input
```
10
```
Note: Since It's A Discord Bot And Discord Will Not Allow To Send The Message That Having More Than 2000 Charecters.So Take That In consideration while using $Input
How To Get The Api's
CodeForces
To Get The Api Of CodeForces Is Simple You Just Need To Login With Your Account Then Click of API Button You Will Find Your Api Token here : https://codeforces.com/settings/api
Click On Add Api Key
CodeChef
To Get The Api of CodeChef You Need To Mail Them At api@codechef.com and Convey for what purpose you need there api
Then They Will Send One Form You Need To Fill That Form And Wait. Then You Will Get Mail From There Side And Now You Will Be Able To Get The API Token