Skip to content

Instantly share code, notes, and snippets.

@alyx
Created November 8, 2020 22:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alyx/d23afb37ec44c12b458c4087ced64117 to your computer and use it in GitHub Desktop.
Save alyx/d23afb37ec44c12b458c4087ced64117 to your computer and use it in GitHub Desktop.
bitbot, now with balefiring
#--depends-on commands
from src import ModuleManager, utils
class Module(ModuleManager.BaseModule):
@utils.hook("received.message.channel")
def channel_message(self, event):
message_lower = event["message"].lower()
if message_lower.startswith('balefires') == False:
return
parts = message_lower.split()
if len(parts) < 2:
return
if parts[0] != "balefires":
return
target_user = event["server"].get_user(parts[1])
target_user.send_message("Sorry, you stopped existing a few minutes ago. Please sit down and be quiet until you are woven into the pattern again.")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment