My second attempt at making a bot in javascript
Find a file
SileNce5k a82b62340e
Fix say command failing when permissions are missing
Bot tries to delete the say message of the author, but if the bot does
not have permissions to delete messages, it will crash the bot.
2023-12-06 13:28:46 +01:00
.github/workflows Remove devbot branch from njsscan 2023-07-26 23:53:34 +02:00
commands Fix say command failing when permissions are missing 2023-12-06 13:28:46 +01:00
server Use an sqlite3 database for timer feature 2023-06-01 12:01:03 +02:00
util Add log for when there is a non 404 or 200 code 2023-12-04 18:02:06 +01:00
.gitignore Add .vscode/ dir to .gitignore 2022-05-15 00:41:41 +02:00
package-lock.json Bump semver from 6.3.0 to 6.3.1 2023-07-15 00:12:38 +02:00
package.json Use an sqlite3 database for timer feature 2023-06-01 12:01:03 +02:00
README.md Revert "Update README.md" 2022-04-27 11:52:22 +02:00
server.js Use an sqlite3 database for timer feature 2023-06-01 12:01:03 +02:00
UNLICENSE Add license 2021-06-22 18:23:57 +02:00

discord_bot

A modular discord bot written in javascript, using the discord.js library.

This is my second attempt at making a discord bot.

The bot can be quite buggy at times, so be warned before trying it out.


To use the bot:

git clone https://github.com/SileNce5k/discord_bot.git
cd discord_bot
npm install
npm start

The first time you start the bot with npm start, it will create a directory called data with a config.json file.
In this file, enter your bot token.
You can also enter a login message, channel and enable it.
You can also change the global prefix.
You should enter you discord user id, so you can use the admin commands. Every time you want to change something in this file, you have to restart the bot.

If the config is ever changed, you need to either delete it and repeat the steps above or take a look at the util/createInitialConfig.js file

Netload is a feature that enables the ability to upload .js files via discord to the bot. If you want this feature, you have to enable it in ./data/config.json.

Known issues

None at the moment.