Skip to content

UweStolz/discord-wizard

Repository files navigation

Discord wizard

Just another nonsense discord bot

Commands

Command Description Argument(s)
ping Message to test the connection to the BOT -
conch Play a random clip from the magic conch -
cat Get a random cat fact, or image fact or pic
quote Get a random quote -
insult Insult one of the members, either randomly or targeted [Member]
bored Find a random activity to fight boredom -
whatIs Definitions with example sentence and photo if available
advice Display a random advice slip -
help Display all available commands -
xkdc Get a xkdc comic [Number]
number Get trivia for a given number, a random number, or the current date [random or number]
iss Show the current location of the ISS -

Configuration

Environment variables

Either place a .env file at root of the project or export the variables directly.

Mandatory

  • TOKEN
    • The API key for your Discord bot
  • SERVERID
    • The ID of your server the bot resides in

Optional

  • OWLBOT
  • C_PREFIX
    • How to call the bot in a text channel, default: /wizard
  • C_ALIAS
    • The alias for the command, default: /w
  • DATABASE_URL
    • The URL to your postgres DB
  • DISABLE_DB
    • Explicitly disables the DB
  • DISABLE_DB_INITILIZATION
    • Explicitly disables the initilization of the DB schemata
  • LOG_LEVEL
    • Conform to the severity ordering specified by RFC5424: severity of all levels is assumed to be numerically ascending from most important to least important.
    • Sets on of the following log levels:
      • error: 0
      • warn: 1
      • info: 2
      • verbose: 3
      • debug: 4

Public APIs

A list of all used public apis can be found in the publicApis object inside of the data.ts file.


Built with

Discord.Js
node-postgres

License

APACHE 2.0


Happy hacking 😀