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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

6a020b6 · Oct 19, 2022

History

28 Commits
May 1, 2020
Aug 2, 2019
May 1, 2020
Apr 28, 2018
Oct 26, 2021
Oct 26, 2021
Oct 19, 2022
Aug 2, 2019
Oct 19, 2022
Oct 26, 2021

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