forked from n/quotes-bot-python
start !q get
This commit is contained in:
parent
80c37cb7b4
commit
773beb5553
1 changed files with 17 additions and 0 deletions
17
bot.py
17
bot.py
|
@ -19,3 +19,20 @@ async def help_message(room, message):
|
|||
""")
|
||||
|
||||
await bot.api.send_text_message(room.room_id, message)
|
||||
|
||||
@bot.listener.on_message_event
|
||||
async def make_choice(room, message):
|
||||
match = botlib.MessageMatch(room, message, bot, PREFIX)
|
||||
if not (match.is_not_from_this_bot() and match.prefix()
|
||||
and match.command("get")):
|
||||
return
|
||||
temp = True
|
||||
if not match.args():
|
||||
temp = False
|
||||
else:
|
||||
id = match.args()
|
||||
message = (f"""
|
||||
Command recived (DEBUG_)
|
||||
""")
|
||||
|
||||
await bot.api.send_text_message(room.room_id, message)
|
||||
|
|
Loading…
Add table
Reference in a new issue