Skip to content

This is Hans. Hans gets ze Flammenwerfer and does other entertaining stuff in Discord.

License

Notifications You must be signed in to change notification settings

Maddosaurus/HansBot

Repository files navigation

HansBot

This is Hans. Hans gets ze Flammenwerfer and does other entertaining stuff in Discord.

Commands

Hans knows a fair bit of things. Here's a list:

  • If mentioned, Hans greets
  • If a message begins with Hans (case is ignored), Hans gets you the Flammenwerfer
  • !help - Print help
  • !treppe <user> <seconds> - move given user to the silent channel for X seconds (Nickname or Mention, both works)
  • !meeting - Move yourself in the meeting channel
  • !cleanup - Remove summons and messages from Hans

Local installation

Install deps via pipenv install. Afterwards, run Hans by calling python hans.py

Docker image

There's a Dockerfile. Just call docker-compose build and you're good to go! Check for the environment vars! I would recommend to overwrite them in a docker-compose.override.yml or through the corresponding environment variables:

  • HANS_GIPHY_API_KEY: API key for giphy
  • HANS_DISCORD_BOT_TOKEN: Discord token (check https://discordapp.com/developers/applications/, select App -> Bot and copy token)
  • HANS_TARGET_VOICE_ROOM: Target room to move people to when !treppe is called

ToDo

  • Moving users by tagging them (@...) does not work currently
  • Make Giphy API key customizable
  • Make target room customizable
  • Make Guild customizable (There's only one?)
  • Make Discord key customizable
  • Add Docker image

About

This is Hans. Hans gets ze Flammenwerfer and does other entertaining stuff in Discord.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •