Actual hell
Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja> git-svn-id: https://svn.yakumo.dev/yakumo.izuru/chen/trunk@38 32723744-9b23-0b4a-b1da-9b2e968f9461
This commit is contained in:
parent
fe43a90795
commit
b5ec2a17a5
16
main.py
16
main.py
@ -266,8 +266,8 @@ class ChenBot(ClientXMPP):
|
||||
print(e)
|
||||
|
||||
cm = ctx.pop(0)
|
||||
if cm in self.muc_commands:
|
||||
self.muc_commands[cm](msg, ctx, sender)
|
||||
if cm in self.commands:
|
||||
self.commands[cm](msg, ctx, sender)
|
||||
|
||||
async def muc_message(self, msg):
|
||||
"""Process a groupchat message."""
|
||||
@ -290,7 +290,7 @@ class ChenBot(ClientXMPP):
|
||||
if cm in self.muc_commands:
|
||||
self.muc_commands[cm](msg, ctx, sender)
|
||||
|
||||
@self.muc_word
|
||||
@self.muc_command
|
||||
def repo(msg, ctx, sender):
|
||||
if ctx:
|
||||
return
|
||||
@ -300,16 +300,6 @@ class ChenBot(ClientXMPP):
|
||||
mtype="groupchat",
|
||||
)
|
||||
|
||||
@self.word
|
||||
def repo(msg, ctx, sender):
|
||||
if ctx:
|
||||
return
|
||||
bot.send_message(
|
||||
mto=sender,
|
||||
mbody=f"{msg.get_from().bare}: https://git.chaotic.ninja/usr/yakumo_izuru/chen",
|
||||
mtype="chat",
|
||||
)
|
||||
|
||||
if __name__ == "__main__":
|
||||
config = configparser.ConfigParser()
|
||||
config.read("config.ini")
|
||||
|
Loading…
x
Reference in New Issue
Block a user