static analysis test

Quote bot

This is quote bot for Discord.

It analyzes the incoming messages in the configured channels and tries to reply with the proper quote.

Requirements

  • php 8.1
  • composer
  • make

Usage

# Setup
make setup

# Check code
make analyse

# Fix code style automatically
make fix

# Run tests
make test

# Start bot
make run

Note
For bot to work, after make setup, you need to configure DISCORD_BOT_TOKEN and DISCORD_BOT_CHANNEL_IDS env variables. You can do it in .env file.

TODO

  • add db with quotes and commands to manage them by admins
  • save cooldown state in db
  • add "theme cooldowns"
  • add quotes

parrot