Skip to content
ABHAY SV edited this page Jul 23, 2020 · 2 revisions
Logo

An open-source discord bot for SA-MP(San Andreas Multiplayer) Servers/ Communities



Setting up the bot for free in Heroku. 📍

  1. 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
  2. Create a free account in Heroku by Clicking here
  3. 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.
  4. Create a new app and deploying in Heroku.
    4.1. Create a New App from the dashboard
    New APP.
    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.
  5. Now you should see your bot online in your discord server

Initial Setup. 📝

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


Alternate Method For Test Deployment📝
(Not recommended, but can be used to test with limited functionality)

Deploy