![]() ![]() For example, the bot will respond to $talk since it contains the command prefix. ![]() ![]() The command prefix is a character or phrase that the bot will recognize when a command is run. Then you create the bot client which handles events and other actions your bot performs while connected to Discord. import discord from discord.ext import commands client = commands.Bot(command_prefix='$') async def on_ready(): print('READY') n('TOKEN')įirst, you import the libraries needed for your bot. Now, you can go into your Python IDE and finally connect your bot to discord. This marks the birth of your new Discord bot, so give it a name of your choice and click Create. You should see a New Application button in the top right corner of the page. Simply enter an email address and a desired password to move on. Navigate to and you’ll be prompted to create one. Creating the botīefore creating the bot, you will have to create a Discord account. I will show you how I was able to do this. This is why I created a bot that allows you to type in some text and the bot will speak it out to the other users in a voice call. I prefer to not make too much noise when my parents are busy or I’m just not in the mood for verbal speech. However, there are some times where I want to socialize without actually having to talk. I use Discord on a daily basis since it makes interacting with friends quick and simple. If you don’t know what Discord is, it’s a messaging app primarily used by gamers that can be used to talk and text with people. I decided to create a Discord bot to experiment with the discord.py library and have some fun while I’m at it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |