samp-discord-connector
samp-discord-connector copied to clipboard
SA:MP plugin which controls a Discord bot
Discord connector plugin for San Andreas Multiplayer (SA:MP)
AppVeyor CI | Total downloads | Latest release |
---|---|---|
This plugin allows you to control a Discord bot from within your PAWN script.
How to install
- Extract the content of the downloaded archive into the root directory of your SA-MP server.
- Edit the server configuration (server.cfg) as follows:
- Windows:
plugins discord-connector
- Linux:
plugins discord-connector.so
- Windows:
- Add
discord_bot_token YOURDISCORDBOTTOKEN
to your server.cfg file, or set it in the environment variableSAMP_DISCORD_BOT_TOKEN
(never share your bot token with anyone!)
I am getting a intent error, how do I fix it?
If you're getting an intent error, you need to go to the discord developer dashboard and select your bot. Then, you need to go to your bot settings and activate your intents.
Build instruction
Note: The plugin has to be a 32-bit library; that means all required libraries have to be compiled in 32-bit and the compiler has to support 32-bit.
Windows
- install a C++ compiler of your choice
- install CMake
- install Conan
- clone this repository recursively (
git clone --recursive https://...
) - create a folder named
build
and execute CMake in there - build the generated project files with your C++ compiler