My second attempt at making a bot in javascript
Find a file
SileNce5k cddceda3c5
All checks were successful
CI / CI (push) Successful in 16s
Update README.md to show if tests are passing
2024-11-01 19:50:32 +01:00
.github/workflows Rename file 2024-10-27 17:17:33 +01:00
commands Remove netmodule functionality 2024-11-01 19:40:32 +01:00
server Fix mention not working as prefix 2024-03-24 21:00:00 +01:00
tests Replace thirdparty parse-ms with my own, and add tests 2024-10-28 01:44:53 +01:00
util Remove netmodule functionality 2024-11-01 19:40:32 +01:00
.gitignore Add .env to .gitignore 2024-10-24 21:18:01 +02:00
package-lock.json Replace thirdparty parse-ms with my own, and add tests 2024-10-28 01:44:53 +01:00
package.json Replace thirdparty parse-ms with my own, and add tests 2024-10-28 01:44:53 +01:00
README.md Update README.md to show if tests are passing 2024-11-01 19:50:32 +01:00
server.js Update discord.js dependency to version 14 (#116) 2024-10-22 07:36:10 +02:00
UNLICENSE Add license 2021-06-22 18:23:57 +02:00

discord_bot

name tests
Github CI tests
git.silence5k.com (forgejo-runner) 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