Taking part in Daily Algo on Discord
On Discord, the Daily Algo module keeps your developer channel alive by publishing a new programming problem to solve every day.
The daily challenge on Discord
Section titled “The daily challenge on Discord”Every day, at the configured time, Kotbo posts a structured message in the channel dedicated to challenges:
- The problem statement: the description and instructions for the algorithm challenge.
- The difficulty: the level (easy, medium, hard).
- The accepted languages: the programming languages allowed for this challenge (for example
Python,JavaScript,TypeScript). - The function signature: the name of the expected function and its typed arguments.
How to submit a solution
Section titled “How to submit a solution”Participants have two ways to submit their code:
Method 1: from the Discord app
Section titled “Method 1: from the Discord app”Members can use the bot’s submission slash command to paste their source code:
- The bot opens a form window (a modal) where they can paste their solution.
- Kotbo immediately runs the code securely in its sandbox and executes the battery of unit tests defined by the staff.
- The bot replies instantly and privately to say whether the code passed the tests or hit runtime errors.
Method 2: from a local editor (VS Code / API)
Section titled “Method 2: from a local editor (VS Code / API)”For more complex challenges, developers can connect their working environment:
- Get your personal Kotbo API key from the dedicated tab on the dashboard.
- Use a compatible IDE extension (such as VS Code) or a script to load the day’s problem locally.
- Write your code in your editor of choice.
- Run the API submission command to send your file straight to Kotbo for review.
Supported programming languages
Section titled “Supported programming languages”Kotbo’s sandboxed code runner can compile and execute scripts written in the following languages:
- JavaScript (Node.js runtime)
- TypeScript (compiled, then executed)
- Python
- C
- Lua
- SQLite (queries against a test database)