This repository has been archived by the owner on Jan 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Home
ap4gh edited this page Apr 10, 2019
·
2 revisions
This pages have information on setting up and running bot locally on your system. To run bot you will need a bot token. Check the procedure to get token and adding bot to a server here.
- Clone the repo
git clone https://gitlab.com/amritpandey/discord-bot.git
- Move into the directory
cd discord-bot
- Install npm/node dependencies
npm install
- Rename
/configuration/config.example.json
to/configuration/config.json
- Fill the
botToken
field in/configuration/config.json
with your own token. - Optional. Change
botPrefix
to a desirable symbol like%
or^
.
- If you are developing, you should run
npm run watch
. This will watch for changes and restart the bot. - Or. Run the bot with
npm start
You can host this bot on any provider of your choice. Here is a short tutorial on how to host on google's Compute Engine.
NOTE: Google's App engine is much better than CE for managing the bot but AE often goes inactive even on persistent connection because of no bot activity, hence choose CE if bot is not intended to serve heavy traffic.
Your bot is now online and now can be invited via 0Auth to any number of servers. Read the entire procedure to deploy an app on GCP Compute Engine here