Shux Team Discord Bot
Shuxbot is a moderation bot with leveling and tickets system, made to accomplish the main necessities of Shux Team's Discord server.
- Written in TypeScript using Node.js
- Currently hosted on Heroku
- Basic commands as kick, ban, mute and blacklist
- Flood
- Discord invite links
- Log reports in a custom channel
- Custom channel for commands
- If set normal users will only be able to run commands in that channel
-
Levels: user (4), tech (3), mod (2), admin (1), dev (0)
-
Add your own commands
- Add a new file with the command as name and the extension .ts
- Basic command structure:
import { Message } from "discord.js"; exports.run = (msg: Message, args: string[]) => { /* here goes your code */ };
-
Clone this repository
$ git clone https://github.com/afriguez/shuxbot.git -
Change directory
$ cd shuxbot/ -
Install dependencies
$ npm install -
Environment
Shuxbot uses 3 main .env variablesTOKEN=YOUR_BOT_TOKEN GUILD=THE_GUILD_ID DB_URL=https://YOUR_FIREBASE_DATABASE.firebaseio.comThen you'll need the service account provided by Firebase
$ cp path/to/your/yourServiceAccount.json shuxbot/serviceAccount.json
Once installed use $ npm run build to transpile and $ npm start to run the bot
This repository is under the MIT license. Read it here