llkabowl.blogg.se

Install discord python
Install discord python








install discord python

Of course, you can use any text editor instead. A fancy way to do it in the terminal is using the echo command: echo “DISCORD_TOKEN=” >. In the created file add the variable for the Discord token from the Bot tab in your browser. Install the package: pip3 install python-dotenv env is an invisible file to git (if you don’t specifically add it) and the cloud environment we are going to use later. When dealing with APIs you want to keep your tokes outside the code so no one can see them. You can check out what I came up with on my GitHub and read on to find out how can you set up your own Discord Bot. Even better, the transition from a prototype to a fully working always-on bot was seamless and really simple with minimum Python knowledge.įor this project, I kept it simple with a bot that is going to give me a random YouTube video on command to satiate my procrastination thirst while waiting for my friends to join the voice chat. To my surprise, it was one of my best experiences setting up a bot and working with an API. The solution to such a lack of functionality was clearly building a Discord Bot to do what I wanted. I needed to make something to bring back some of the fun and maybe make a server more casual. With the “gaming” features out of the picture, I started to dread this great platform because it got as boring as a Microsoft Teams group. Yeah, the number of Discord servers I’m on has doubled since the start of the quarantine but even more curious is that most of these new servers are completely unrelated to gaming, which goes against Discord’s spirit of a “gamer-oriented” platform. With the whole world going online for the past year we have seen the rise of Amazon one day shipping, an annoying online meeting app called something like Zuum and to my biggest surprise – Discord.










Install discord python