2021-08-25 01:01:46 +01:00
|
|
|
# knightrider
|
|
|
|
the all-purpose open source discord bot for CWH11's Hangout Crew.
|
|
|
|
|
|
|
|
|
|
|
|
### set up
|
2025-01-18 01:27:58 +00:00
|
|
|
|
|
|
|
|
2025-04-05 22:05:51 +01:00
|
|
|
go to discord.com/developers and make a bot token
|
2025-01-18 01:27:58 +00:00
|
|
|
|
2025-04-05 22:05:51 +01:00
|
|
|
take note of the client id, client secret, and then bot token
|
2025-01-18 01:27:58 +00:00
|
|
|
|
2025-04-05 22:05:51 +01:00
|
|
|
just google for a guide theres plenty out there.
|
2025-01-18 01:27:58 +00:00
|
|
|
|
2025-04-05 22:05:51 +01:00
|
|
|
<br>
|
2025-01-18 01:27:58 +00:00
|
|
|
|
2025-04-05 22:05:51 +01:00
|
|
|
## Bare metal
|
2025-01-18 01:27:58 +00:00
|
|
|
|
|
|
|
|
2025-04-05 22:05:51 +01:00
|
|
|
make a linux or windows server (tested and run on a Debain LXC)
|
|
|
|
|
|
|
|
install mariadb (plent of guides on this out there)
|
|
|
|
|
|
|
|
includes making a user db
|
|
|
|
|
|
|
|
<br>
|
|
|
|
|
|
|
|
pick your fave install location on your server
|
|
|
|
|
|
|
|
```sh
|
|
|
|
cd /opt
|
|
|
|
```
|
|
|
|
|
|
|
|
<br>
|
|
|
|
|
|
|
|
clone the knighrider repo if your on windows/ have a gui you can just get the zip file from github and extract it
|
|
|
|
```sh
|
|
|
|
git pull https://github.com/404invalid-user/knightrider.git
|
|
|
|
cd knightrider
|
|
|
|
```
|
|
|
|
|
|
|
|
<br>
|
|
|
|
|
|
|
|
setup your env file with the details for your bot client id, client secret bot token and database uri
|
|
|
|
|
|
|
|
```
|
|
|
|
cp .env.example .env
|
|
|
|
nano .env
|
|
|
|
```
|
|
|
|
|
|
|
|
<br>
|
|
|
|
|
|
|
|
now running the bot
|
|
|
|
first do `npm install --save-dev` then `npm run build` finally `npm run start` if you want to run the bot in the background I recommend pm2
|
2025-01-18 01:27:58 +00:00
|
|
|
|
2025-04-05 22:05:51 +01:00
|
|
|
```sh
|
|
|
|
sudo npm i -g pm2
|
|
|
|
pm2 start dist/index.js --name knightrider
|
|
|
|
```
|
|
|
|
|
|
|
|
## Docker
|
|
|
|
|
|
|
|
|
|
|
|
locate the compose file in this repo add it to your server edit it adding your bot tokens
|
|
|
|
|
|
|
|
```sh
|
|
|
|
cd /opt/
|
|
|
|
mkdir knighrider
|
|
|
|
cd knightrider
|
|
|
|
curl -fsSL https://raw.githubusercontent.com/404invalid-user/knightrider/refs/heads/main/docker-compose.yml -o docker-compose.yml
|
|
|
|
nano docker-compose.yml
|
|
|
|
```
|
|
|
|
|
|
|
|
run it
|
|
|
|
```sh
|
|
|
|
docker compose pull
|
|
|
|
docker compose up -d
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Features
|
|
|
|
|
|
|
|
[x] - reaction roles
|
|
|
|
|
|
|
|
[x] - message macros
|
|
|
|
|
|
|
|
[ ] - custom reaction role embeds
|
2025-01-18 01:27:58 +00:00
|
|
|
|
2025-04-05 22:05:51 +01:00
|
|
|
[x] - reaction ban
|
2021-08-25 01:01:46 +01:00
|
|
|
|
2025-01-18 01:27:58 +00:00
|
|
|
[ ] - user info/strike system
|
2021-08-25 01:01:46 +01:00
|
|
|
|
2025-01-18 01:27:58 +00:00
|
|
|
[ ] - CAPS spam
|
2021-08-25 01:01:46 +01:00
|
|
|
|
2025-01-18 01:27:58 +00:00
|
|
|
~~[ ] - word filter~~ (use built in auto mod)
|
2021-08-25 01:01:46 +01:00
|
|
|
|
2025-01-18 01:27:58 +00:00
|
|
|
[ ] - simple web dashboard
|
2021-08-25 01:01:46 +01:00
|
|
|
|
2025-01-18 01:27:58 +00:00
|
|
|
~~[ ] - mc server status command~~ (use McStatus https://mcstauts.net/bot)
|