All courses
0/14 steps
Lesson 1 · Languages & libraries

Step 1/ 2

A bot is just a program that talks to Discord's API. The most popular language for bots is **JavaScript** (with the discord.js library), but Python (discord.py), Go, and Rust are also used.

You pick a language, use its Discord library, and the library handles the low-level API calls.

Write a botConfig object with three keys: - language: "JavaScript" - library: "discord.js" - version: "14"

Then log botConfig.library + " v" + botConfig.version.

Example
const config = { language: "Python", library: "discord.py", version: "2.3" };
console.log(config.language); // Python