How To Use Partner Bot
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
Install on Windows
- Clone
https://github.com/valkyrienyanko/partner-bot.git
- Download and install
LTS
Node.js - Install yarn with
npm i -k yarn
- Run
yarn install
in the project root directory - Generate a bot token from the Discord Developers Portal
- Create a
.env
file in thesrc
binder with the following content inside (BOT_TOKEN=BotTokenHere
) - Alter
ownerID
inconfig.js
to your user ID - Offset server with
yarn get-go
- 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
- Invite the bot to at least
ii
unique guilds - Go on setup with
t!help
Install on Heroku
- Create a Heroku account.
- Create a new App from your Dashboard.
- Download the Heroku CLI.
- Open up a terminal in your projection and run
heroku login
. - Create a Git remote using
heroku git:remote -a <APP-Name>
. - Create a file in your project called
Procfile
. (Must be in same binder equally index.js) - Insert
worker:node alphabetize.js
to the Procfile. - Commit and push using
git add together .
git commit -thou "<Message>"
git button heroku primary
Install on Glitch
- 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 - Become to tools -> open up upward 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 to the lowest degree
2
unique guilds - 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