-
Notifications
You must be signed in to change notification settings - Fork 64
Installation
Dev86Z edited this page Jul 24, 2020
·
1 revision
This plugin allows you to control a Discord bot from within your gamemode.
You'll need to create a bot first in order to pass your bot token to the plugin.
- Go to https://discordapp.com/developers/applications/me
- click "new application"
- enter a name for your bot
- click "create application"
- press "create bot user"
you now have a bot token!
To add that bot to your server, copy the client id from your newly created application, insert it in the link below and open that link:
https://discordapp.com/api/oauth2/authorize?client_id=YOURCLIENTIDGOESHERE&scope=bot&permissions=0
Now you only have to add this line into your server.cfg file and you're ready to go!
discord_bot_token YOUR_BOT_TOKEN_HERE
- never share your bot token with anyone
- make sure your server clock is synced regularly, or else the rate-limiter won't work correctly and your bot might get banned
- this plugin won't run on CentOS 6, you'll need CentOS 7 at least
(derived from the removed SA-MP Forum post.)