Skip to content

MultiMC/background-cat

 
 

Repository files navigation

Background Cat

A Discord bot to parse MultiMC Logs and warn users about common errors

I made this bot because it was brought to my attention that other discords also had similar bots. Dissatisfied with the other ones, I made yet another one.

xkcd "Standards" comic

Development

  • Build the code: cargo build --bin discord-cat
  • Copy .env.example to target/debug/
  • Customize target/debug/.env and include your Discord token in it, like this:
    # See https://docs.rs/env_logger
    RUST_LOG=error
    
    DISCORD_TOKEN=AAa0AAa0AAAaAaa...
    BACKGROUND_CAT_PREFIX=-
    
  • Run the bot: cargo run -p discord-cat

Running in production

  • Copy .env.example to .env

  • Customize .env and include your Discord token in it, like this:

    # See https://docs.rs/env_logger
    RUST_LOG=error
    
    DISCORD_TOKEN=AAa0AAa0AAAaAaa...
    BACKGROUND_CAT_PREFIX=-
    
  • Build the images: docker-compose build

  • Start the service: docker-compose start

Releases

No releases published

Packages

No packages published

Languages

  • Rust 98.9%
  • Dockerfile 1.1%