Skip to content
Dev86Z edited this page Jul 24, 2020 · 1 revision

This plugin allows you to control a Discord bot from within your gamemode.

Installation

You'll need to create a bot first in order to pass your bot token to the plugin.

  1. Go to https://discordapp.com/developers/applications/me
  2. click "new application"
  3. enter a name for your bot
  4. click "create application"
  5. 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

Notes

  • 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.)

Clone this wiki locally