Compare commits
No commits in common. "186563a5608a23b00e6e9f33da295257fd1fa83f" and "0f7ef3e3f62e4cde2333d7483423b982dbf31fee" have entirely different histories.
186563a560
...
0f7ef3e3f6
1 changed files with 0 additions and 15 deletions
15
bot.py
15
bot.py
|
@ -23,7 +23,6 @@ async def help_message(room, message):
|
|||
A work-in-progress Python rewrite of the original quotes bot, aiming for a mostly complete remake.
|
||||
{PREFIX} help - show this message
|
||||
{PREFIX} get - fetch a image from the defined instance
|
||||
{PREFIX} source - send a link to the source code
|
||||
""")
|
||||
|
||||
await bot.api.send_text_message(room.room_id, message)
|
||||
|
@ -48,18 +47,4 @@ async def make_choice(room, message):
|
|||
|
||||
await bot.api.send_text_message(room.room_id, message)
|
||||
|
||||
@bot.listener.on_message_event
|
||||
async def help_message(room, message):
|
||||
match = botLibrary.MessageMatch(room, message, bot, PREFIX)
|
||||
if not (match.is_not_from_this_bot() and match.prefix()
|
||||
and match.command("source")):
|
||||
return
|
||||
|
||||
message = (f"""
|
||||
quotes-bot-python by Nyx Tutt (@n:everypizza.im)
|
||||
https://git.everypizza.im/n/quotes-bot-python/
|
||||
""")
|
||||
|
||||
await bot.api.send_text_message(room.room_id, message)
|
||||
|
||||
bot.run()
|
||||
|
|
Loading…
Add table
Reference in a new issue