banner



How To Use Partner Bot

Quality Gate Status Lines of Code Bugs GitHub license

Partner bot is a discord bot that uses discord-js and sqlite to automate partnerships in the big community of discord. When yous bump your ad, the bot sends information technology to every society that has the bot setup with a configurable cooldown. This bot has only been tested on a full of 4 servers, bug may arise if the bot has to handle 100 or more than servers all sending messages betwixt each other simultaneously. This project has been discontinued.

Preview of Bump Message

Preview

Install on Windows

  1. Clone https://github.com/valkyrienyanko/partner-bot.git
  2. Download and install LTS Node.js
  3. Install yarn with npm i -k yarn
  4. Run yarn install in the project root directory
  5. Generate a bot token from the Discord Developers Portal
  6. Create a .env file in the src binder with the following content inside (BOT_TOKEN=BotTokenHere)
  7. Alter ownerID in config.js to your user ID
  8. Offset server with yarn get-go
  9. Create an invite link for the bot by grabbing its ID and putting it in the following URL https://discordapp.com/api/oauth2/qualify?client_id=YOUR_BOT_ID_HERE&scope=bot&permissions=27681
  10. Invite the bot to at least ii unique guilds
  11. Go on setup with t!help

Install on Heroku

  1. Create a Heroku account.
  2. Create a new App from your Dashboard.
  3. Download the Heroku CLI.
  4. Open up a terminal in your projection and run heroku login.
  5. Create a Git remote using heroku git:remote -a <APP-Name>.
  6. Create a file in your project called Procfile. (Must be in same binder equally index.js)
  7. Insert worker:node alphabetize.js to the Procfile.
  8. Commit and push using git add together . git commit -thou "<Message>" git button heroku primary

Install on Glitch

  1. Create an account on https://glitch.com
  2. Create new project -> import from GitHub -> https://github.com/Valks-Bots/partner-bot
  3. Click src folder dots icon to right -> create new file -> .env -> put BOT_TOKEN=BotTokenHere inside
  4. Change ownerID in config.js to your user ID
  5. Become to tools -> open up upward Terminal -> type npm start
  6. Create an invite link for the bot by grabbing its ID and putting it in the following URL https://discordapp.com/api/oauth2/authorize?client_id=YOUR_BOT_ID_HERE&scope=bot&permissions=27681
  7. Invite the bot to at to the lowest degree 2 unique guilds
  8. Proceed setup with t!help

FAQ

Q: How do I increment the max description limit?
A: Edit the max_length config value in src/config.js

Q: I am getting this error in the panel "TypeError: Cannot read property 'tag' of undefined", what exercise I practise?
A: Edit the ownerID config value in src/config.js with your user ID.

Q: Every time I restart the bot, all the data I had setup has been wiped?
A: If yous're using Heroku, Glitch or any other "free" online hosting service then it's highly likely that the service is deleting the database everytime you restart the bot or if at all-time deleting it every 12 or 24 hours. If yous host the bot on your local motorcar, you volition non see this problem.

How To Use Partner Bot,

Source: https://github.com/Valks-Bots/partner-bot

Posted by: stewartneents.blogspot.com

0 Response to "How To Use Partner Bot"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel