Created
November 8, 2020 22:41
-
-
Save alyx/d23afb37ec44c12b458c4087ced64117 to your computer and use it in GitHub Desktop.
bitbot, now with balefiring
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#--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