My second attempt at making a bot in javascript
Find a file
SileNce5k 1080a21d5b
Add prompt-sync as dependency
It's not used yet, but I plan to use it in the future.
2021-06-30 16:00:30 +02:00
commands Fix nickname not working in userinfo 2021-06-28 18:58:51 +02:00
server Refactor if statement without else 2021-06-26 02:34:48 +02:00
util Add getNickname function 2021-06-28 18:57:54 +02:00
.gitignore Update gitignore 2021-06-28 17:09:17 +02:00
package-lock.json Add prompt-sync as dependency 2021-06-30 16:00:30 +02:00
package.json Add prompt-sync as dependency 2021-06-30 16:00:30 +02:00
README.md Update README 2021-06-22 17:53:11 +02:00
server.js Clear screen when bot is ready 2021-06-28 16:04:40 +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.


To use the bot:

git clone https://github.com/SileNce5k/discord_bot.git
cd discord_bot
npm install
node server.js

The first time you start the bot with node server.js, 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.

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.