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 and paste.ee tokens in it, like this:
    # See https://docs.rs/env_logger
    RUST_LOG=error
    
    DISCORD_TOKEN=AAa0AAa0AAAaAaa...
    PASTE_EE_TOKEN=aaAAaAa0AaAA0...
    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 and paste.ee tokens in it, like this:

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

  • Start the service: docker-compose start

About

A discord bot that parses MultiMC logs for common issues.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 99.1%
  • Dockerfile 0.9%