/DiaBot

A Kurosawa Dia bot

Primary LanguageTypeScriptMIT LicenseMIT

Diabot


A bot imitating Kurosawa Dia's behavior

The bot is still under construction, for now I'm planning to make Diabot react in a funny way


Installation

Prerequisites

  • NodeJs v.16.16.0
  • Redis with JSON and search modules
  • (Optionnal) Docker

Run the bot

  1. Create a config.json with inside
{
   "token": "YOUR BOT TOKEN",
   "clientID": "YOUR DISCORD ACCOUNT ID",
   "guildID": "YOUR TEST SERVER ID (Not necessary if you  want to deploy global slash command)",
   "SENTRY_DNS": "SENTRY_DNS"
}
  1. Run Dia saaaan !
    • With npm:
      • Run npm install to install all the needed packages
      • Run npm run rc to deploy slash commands
      • Run npm start to run Dia saaaan !
    • With Docker
      • To launch the bot run docker compose up -d
      • To stop => docker compose down

Have fun !

Redis Database model

Server config
guildId: { type: 'string' } The ID of the server
loveleaveChannelId: { type: 'string' } The ID of the channel where Dia saaaan !!! casts loveleavers
loveleaveTime: { type: 'number' } The amount of minutes to trigger the "loveleave"
Reported malicious link
guildId: { type: 'string' } The ID of the server
messageContent: { type: 'text' } The content of the message
reporter: { type: 'string'} The user's ID who reported the message
reporterHread: { type: 'string'} The user's tag and discriminant

About

Contributors: TomBerriot

Created by the server: Love Live! Francophone