First of all, you have to create a new discord bot, generate a token and add the bot to the server of your choice.
If you don’t know how to so, here are some few steps:
Go to the discord developer portal and create a new application with the name of your choice:
Click on the Bot
tab on the left and create a new bot:
Then go to the OAuth2
tab, check the Bot
scope and the Send messages
permission:
Copy the generated URL in the middle of the screen, open it and add the bot to the server of your choice.
Congrats, you added the bot to your discord server!
Now all you have to do is to obtain your secret token. This is the token that will be used by web-watcher to connect to
discord with the --token
option or DISCORD_TOKEN
environment variable. For more details check the usage page.
Return to the Bot
tab and click on Click to Reveal Token
:
Copy it for the next steps and make sure to keep this token secret!