By connecting a Botsquad bot to Discord, it is possible to have conversations between Discord users and your bot. To do this, you need to connect the bot to a Discord workspace that you own. As soon as that is set up, the bot will handle the messages that are sent to it.
To connect a bot to Discord, you need to get a Discord authorization token first.
First, head to https://discordapp.com/developers/applications/me. Your account should be logged in, so you’ll go straight to your account’s list of applications. Hit New Application to get started. Give the bot a name, then hit the button marked Save Changes.
Now, on the right-hand menu, click Bot. Once in the new menu, click Add Bot under the Build-a-bot option. If you only have one application — the one we just made — it should appear automatically. Otherwise, select it.
In the box marked App Bot User, look for the words Token: Click to reveal. Click that link and you’ll reveal the bot's authorization token.
Now, in Botsquad, go to the settings of your bot, click Connect and find the Discord integration. Enable it and add the token, click save.
Now, after adding the Bot to your Discord server, you can start chatting with it and it will start running your bot's code.