Discord Bot | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Discord Bot

I need help figuring out how to make a discord bot. I have it in applications but I need a code to make it say stuff and I don't know how to code it to have a prefix. I'm pretty new to coding and I'm still learning so please bare with me.

8th Jul 2021, 6:01 PM
RoxyTBDW - avatar
4 Answers
+ 7
Some walkthrough YouTube videos would help you. In Python, you can define the prefix like so: from discord.ext import commands bot = commands.Bot(command_prefix = '.')
8th Jul 2021, 9:52 PM
Fox - avatar
+ 3
Here are a bunch of tutorials put together by some users on Discord. Some of them formerly coming from Sololearn. Covers both discord.py and discord.js, as well as other useful stuff like Redis for databases. https://dcacademy.gitlab.io/tutorials
8th Jul 2021, 11:21 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 2
Check out discord.js for javascript and discord.py for python. In the discord.js docs you'll find step-by-step instructions on how to set up a bot and how to make it do stuff. https://discordjs.guide/#before-you-begin The guide is pretty good and better than what I can fit into 1024 characters so try to work through that, and if you have further quesions you can always aks those here in the Q&A section :)
8th Jul 2021, 9:40 PM
Schindlabua - avatar
There is a freecodecamp tutorial that can help u in python https://youtu.be/SPTfmiYiuok
10th Jul 2021, 4:25 PM
6hpxq9 - avatar