Skip to content

A discord bot whom gets feisty if you are rude.

Notifications You must be signed in to change notification settings

mrccodes/dad-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dad Bot

A discord bot whom gets feisty when users are being rude.

Description

Discord bot build with Node that uses a Tensorflow Toxicity model to determine the toxicity of message and responds accordingly.

Getting Started

Dependencies

  • Node v19.*
  • Discord account
  • flyctl (if hosting with included host file) Fly.io
  • Fly.io account(if hosting with included host file)

Installing

  • Clone this repo to your machine
  • Create a new bot in the discord developer panel

Executing program

Run bot locally

  • 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

Host bot on Fly.io

  • 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
  • import discord bot token to Fly and deploy
cat .env | flyctl secrets import
flyctl deploy

Help

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

About

A discord bot whom gets feisty if you are rude.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published