My second attempt at making a bot in javascript
Find a file
SileNce5k 7672d1941c
Some checks failed
Lint Codebase / eslint (push) Waiting to run
CI / CI (push) Has been cancelled
Change onmessage to use new custom commands set instead of json file
2024-12-19 18:23:47 +01:00
.github Remove njsscan workflow 2024-11-05 06:55:47 +01:00
commands Update actions/checkout to v4 2024-11-05 06:37:03 +01:00
server Change onmessage to use new custom commands set instead of json file 2024-12-19 18:23:47 +01:00
tests Improve test cases 2024-11-01 20:07:50 +01:00
util Rename database table functions to be clearer 2024-11-06 01:44:16 +01:00
.gitignore Add .env to .gitignore 2024-10-24 21:18:01 +02:00
eslint.config.mjs Add eslint as linter and add linter workflow 2024-11-05 06:03:14 +01:00
package-lock.json Add eslint as linter and add linter workflow 2024-11-05 06:03:14 +01:00
package.json Add eslint as linter and add linter workflow 2024-11-05 06:03:14 +01:00
README.md Update README 2024-11-02 22:48:21 +01:00
server.js Add conversion of custom commands to SQL 2024-12-17 11:10:45 +01:00
UNLICENSE Add license 2021-06-22 18:23:57 +02:00

discord_bot

CI tests

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.

Known issues

See issues