Partner bot is a discord bot that uses discord-js and sqlite to automate partnerships in the big community of discord. When you bump your advertisement, the bot sends it to every guild that has the bot setup with a configurable cooldown. This bot has only been tested on a total of 4 servers, issues may arise if the bot has to handle 100 or more servers all sending messages between each other simultaneously.
- Create an account on https://glitch.com
- Create new project -> import from GitHub ->
https://github.com/Valks-Bots/partner-bot
- Click src folder dots icon to right -> create new file ->
.env
-> putBOT_TOKEN=BotTokenHere
inside - Change
ownerID
inconfig.js
to your user ID - Go to tools -> open up Terminal -> type
npm start
- 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
- Invite the bot to at least
2
unique guilds - Continue setup with
t!help
- Clone
https://github.com/valkyrienyanko/partner-bot.git
- Download and install
LTS
Node.js - Install yarn with
npm i -g yarn
- Run
yarn install
in the project root directory - Generate a bot token from the Discord Developers Portal
- Create a
.env
file in thesrc
folder with the following content inside (BOT_TOKEN=BotTokenHere
) - Change
ownerID
inconfig.js
to your user ID - Start server with
yarn start
- 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
- Invite the bot to at least
2
unique guilds - Continue setup with
t!help
Feel free to create a PR and fill this section out.
Feel free to create a PR and fill this section out.
Feel free to create a PR and fill this section out.
Q: How do I increase the max description limit?
A: Edit the max_length
config value in src/config.js
Q: I am getting this error in the console "TypeError: Cannot read property 'tag' of undefined
", what do I do?
A: Edit the ownerID
config value in src/config.js
with your user ID.
Q: Everything I restart the bot, all the information I had setup has been wiped?
A: If you'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 best deleting it every 12 or 24 hours. If you host the bot on your local machine, you will not run into this problem.