oops
This commit is contained in:
parent
df06f2379b
commit
b04eb472bc
1 changed files with 4 additions and 2 deletions
6
bot.py
6
bot.py
|
@ -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()
|
||||||
|
|
Loading…
Add table
Reference in a new issue