If you want to skip the whole cumbersome cloud setup process, try out Codesphere. That’s why it’s crucial to deploy your script in the cloud. Now, of course, you’re not going to want to be running your script from your local machine 24/7. We are going to add two commands, one that returns the square of a number, and one that tells us the scrabble points for a specific word. We designated at the beginning that each command has to start with ‘!’, which will act as the “Alexa” to start listening for a command. Commands are just responses that are specifically invoked. We need to include the bot.process_commands at the end in order to make sure the bot also checks if the message is a valid command. Now let’s read and respond to messages that people send in channels You can find your authentication token in the Bot Tab in your developer portal We can then authenticate our discord like so: That’s all we need to do from the Discord side! You can then select the server you want to add the bot to and you should see it on your server under offline users Setting Up Your Bot in the Developer Portalįrom there, head to the “Bot” tab and create a new bot.įinally, to add our bot to a server, go to the oAuth2 tab, scroll down to scopes, check bot and visit the generated URL. In this tutorial, we are going to be making a simple Discord Bot with Python that you can add to your servers. Its intuitive UX, vibrant communities, and diverse feature set have allowed it to grow rapidly over the 6 years.Īmong developers at least, a lot of the love for Discord comes from its high programmability. ![]() ![]() If there’s any platform that’s become the darling of online communities, it's Discord.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |