Now open cmd or PowerShell and make a directory named golang-bot from your root directory for golang. Make sure to have a go-workspace directory that will save all your coding work. ![]() Prepare a directory or root folder for your project: Now scroll down and under the bot permission allow all text permissions and go on to the OAuth2 and click on URL Generator in it and then select bot and scroll down and give all the text permissions and copy the link under URL generator and open it in a new tab and authorize it.Īfter this confirmation you can see your bot on the server, however, it is offline currently we have to code it to make it online. There click on the New Application and name it golang-bot and under the settings, options click on the bot, and then on reset token as shown in below image: Next up is to register on the discord developer portal you can find it on the link below: Hello Tech geeks, Today we are going to make a discord bot in golang and it’s a pretty interesting thing to learn as per development work is concerned one could do various changes when coding a bot like adding Natural Language Processing which is a part of Machine Learning, However, today we are going to make a simple discord bot to get started with it which will reply to !ping command as !pong.īefore we get started make sure to have a discord account and make a server from it.Īlso, I have already made my bot which is why it is shown live on the image but we’ll get there don’t worry.
0 Comments
Leave a Reply. |