This commit is contained in:
Nyx 2025-01-31 18:29:15 -06:00
parent df06f2379b
commit b04eb472bc

6
bot.py
View file

@ -11,7 +11,7 @@ PREFIX = "!q"
@bot.listener.on_message_event @bot.listener.on_message_event
async def help_message(room, message): async def help_message(room, message):
match = botlib.MessageMatch(room, message, bot, PREFIX) match = botLibrary.MessageMatch(room, message, bot, PREFIX)
if not (match.is_not_from_this_bot() and match.prefix() if not (match.is_not_from_this_bot() and match.prefix()
and match.command("help")): and match.command("help")):
return return
@ -27,7 +27,7 @@ async def help_message(room, message):
@bot.listener.on_message_event @bot.listener.on_message_event
async def make_choice(room, message): async def make_choice(room, message):
match = botlib.MessageMatch(room, message, bot, PREFIX) match = botLibrary.MessageMatch(room, message, bot, PREFIX)
if not (match.is_not_from_this_bot() and match.prefix() if not (match.is_not_from_this_bot() and match.prefix()
and match.command("get")): and match.command("get")):
return return
@ -41,3 +41,5 @@ async def make_choice(room, message):
""") """)
await bot.api.send_text_message(room.room_id, message) await bot.api.send_text_message(room.room_id, message)
bot.run()