-
Notifications
You must be signed in to change notification settings - Fork 46
Home
ABHAY SV edited this page Jul 23, 2020
·
2 revisions
An open-source discord bot for SA-MP(San Andreas Multiplayer) Servers/ Communities
- Clone this repository in your own Github account.
1.1. Once you have the repo cloned you can edit a few functions such as unban and report sync seeing the examples given
- Create a free account in Heroku by Clicking here
- You will also need a Secret Bot Token to deploy this bot successfully. Click here to see how to generate a bot token and invite your bot to your server.
- Create a new app and deploying in Heroku.
4.1. Create a New App from the dashboard
.
4.2. Select the deployment method as Github and connect to your repository.
4.3. Once liked to the repo you either manually deploy the app or enable automatic deployments.
4.4. Configure the Environment Variables by going to config vars in the settings tab.
4.5. To start the bot goto resources tab and turn off the web.js and turn on the bot.js.
- Now you should see your bot online in your discord server
-After the bot is online, add a role for your bot with proper permissions(Admin Permission Recommended) .
-Now setup the channels using the cmd /setchannel alternatively if you haven't set up the SAMP Ip and port in code, you can use /setip,/setport.