Discord Bot | Sololearn: Learn to code for FREE!

+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.

7/8/2021 6:01:26 PM

RoxyTBDW

4 Answers

New Answer

+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 = '.')

+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

+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 :)

0

There is a freecodecamp tutorial that can help u in python https://youtu.be/SPTfmiYiuok