2
0
mirror of https://github.com/Nick80835/microbot synced 2025-09-05 08:55:51 +00:00

say stuff

This commit is contained in:
Nick80835
2020-06-27 14:06:40 -04:00
parent e5af367a4b
commit 254b39627b

View File

@@ -24,16 +24,6 @@ moo_answers = [
"oink", "moo?", "I am a cow", "milk time"
]
hi_answers = [
"Hi", "Hai", "Hi there!", "HIIII", "Hewwo",
"Hey"
]
bye_answers = [
"Bye", "Bai", "Byebye!", "BYYYEEE", "Baibai",
"Goodbye"
]
@ldr.add(f"{bot_name}(,|) (are|am|is|will|should|can|have|was|were|does|did|may|do)", simple_pattern=True, hide_help=True)
async def ask_bot(event):
@@ -41,24 +31,14 @@ async def ask_bot(event):
await event.reply(choice(yesno_answers))
@ldr.add(f"{bot_name}(,|) say hi", simple_pattern=True, hide_help=True)
@ldr.add(f"say hi(,|) {bot_name}", simple_pattern=True, hide_help=True)
async def say_hi(event):
if event.is_reply:
reply = await event.get_reply_message()
await reply.reply(choice(hi_answers))
else:
await event.reply(choice(hi_answers))
@ldr.add(f"{bot_name}(,|) say bye", simple_pattern=True, hide_help=True)
@ldr.add(f"say bye(,|) {bot_name}", simple_pattern=True, hide_help=True)
async def say_bye(event):
if event.is_reply:
reply = await event.get_reply_message()
await reply.reply(choice(bye_answers))
else:
await event.reply(choice(bye_answers))
@ldr.add(f"{bot_name}(,|) say", simple_pattern=True, hide_help=True)
async def say_something(event):
if event.args:
if event.is_reply:
reply = await event.get_reply_message()
await reply.reply(event.args)
else:
await event.client.send_message(event.chat, event.args)
@ldr.add(f"let the bodies hit the", simple_pattern=True, hide_help=True)