-
-
Notifications
You must be signed in to change notification settings - Fork 0
Setting up, activating and monitoring EasyDiscordBotBase
π Manual requirements - Node 18.6.0 or greater is recommended. NPM (included with Node) and Git is required to run these commands. The installation process will take care of any other requirements automatically.
- Clone this repo using the command
git clone <repo-link>
and enter the folder. - Run the command
npm install
to install the required dependencies. - Create a file in the root directory called
.env
. - Copy and paste the following template into the file:
DISCORD_TOKEN=<token>
DISCORD_CLIENTID=<clientid>
Replace the <token>
and <clientid>
with the bot token and client ID respectively. You can get this information from the Discord Developer Portal.
- Add or create any modules you like in the "commands" folder.
- Run the command
npm run refresh-commands
. - Run the command
npm run start
to start the bot.
π The bot should now be operating and can be added to servers by appending your client ID into the following link:
https://discord.com/api/oauth2/authorize?client_id= <clientid> &scope=applications.commands
.
If you need to turn off the bot, simply use the command npm run stop
.
EasyDiscordBotBase can be monitored in two different ways:
On-server within a terminal by using the command npm run monitor
, which will show the process memory, CPU usage and logs.
Remotely with the pm2.io service which shows much more advanced metrics and can be accessed from anywhere, using the command npm run monitor-remote
to setup.
β οΈ EasyDiscordBotBase should not be used for illegal or immoral purposes, and should not be used to be disruptive in general. Think about others. The developers of the EasyDiscordBotBase will take no responsibility for the actions of custom module creators.
β οΈ There is no warranty included or implied with EasyDiscordBotBase, and the creator will accept no liability for damage or loss. It is assumed that you have some technical competence and the ability to host a Discord bot server. If you require support, please use the Issues tab on GitHub for base support, or the Community Help and Support section in the Discussions tab on GitHub for help with modules.