A discord bot whom gets feisty when users are being rude.
Discord bot build with Node that uses a Tensorflow Toxicity model to determine the toxicity of message and responds accordingly.
- Node v19.*
- Discord account
flyctl
(if hosting with included host file) Fly.io- Fly.io account(if hosting with included host file)
- Clone this repo to your machine
- Create a new bot in the discord developer panel
- add a
.env
file to the root directory with your discord bot token:
CLIENT_TOKEN=<DISCORD_BOT_TOKEN>
- start the bot!
npm install
npm start
- Create Fly.io and install
flyctl
command - add a
.env
file to the root directory with your discord bot token:
CLIENT_TOKEN=<DISCORD_BOT_TOKEN>
- from the project directory run:
flyctl launch
- answer the prompts
- yes to copying configuration from included
fly.toml
- No to databse prompts
- No to deploy immediately prompt
- yes to copying configuration from included
- import discord bot token to Fly and deploy
cat .env | flyctl secrets import
flyctl deploy
Tensorflow seems to use a ton of RAM so chances are you will need to increase your RAM on your Fly VM. I would recommend starting with 1GB. Docs