maddinat0r/samp-discord-connector
SA:MP plugin which controls a Discord bot
Installer avec sampctl
sampctl package install maddinat0r/samp-discord-connector
Lance ceci dans le dossier de ton projet. sampctl télécharge le paquet et ce dont il dépend.
Ajoute ses fichiers include, avec les bibliothèques dont il dépend, au compilateur Pawn de ton navigateur, prêts à être inclus dans un script.
Utilisé par 10 paquets
- MatheusAgL/BrasilNewStart-samp★ 18
- AkshayMohan/pawn-discord-cmd★ 18
- MrucznikRolePlay/Mrucznik-RP-gamemode★ 18
- bracesoftware/DETUtils-Old★ 15
- Apesy/UnitedGamingSAMP★ 9
- ilhamjaya08/diversity-gamemode-rp★ 4
- AliLogic/discord-command★ 4
- AzharHrj/Gamemode-Test★ 1
- killermvc/pawn-dcp★ 1
- VIRUXE/samp-explorarsobreviver★ 0
README.md
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 on an open.mp server
- Extract the contents of the archive to a directory, copy the file(s) in plugins into COMPONENTS if you do not do this, it will try to load as a SA:MP plugin instead.
- Edit your configuration file (config.json) as follows:
Alternatively you can use the enviromental variable DCC_BOT_TOKEN to set the token instead. DO NOT SHARE YOUR TOKEN WITH ANYONE"discord": { "bot_token": "MYBOTTOKEN" }
How to install on a SA:MP server
- 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 YOURDISCORDBOTTOKENto your server.cfg file, or set it in the environment variableDCC_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
buildand execute CMake in there - build the generated project files with your C++ compiler
Linux
Cette page est construite à partir de ce que GitHub publie sur le dépôt. samp.directory n’héberge pas le code. Signaler un problème avec cette fiche