2
0
mirror of https://github.com/Nick80835/microbot synced 2025-08-23 10:38:51 +00:00

78 lines
2.3 KiB
Python
Raw Normal View History

2020-06-26 19:18:04 -04:00
# SPDX-License-Identifier: GPL-2.0-or-later
from random import choice
from ubot.micro_bot import ldr
bot_name = ldr.settings.get_config("bot_name") or "bot"
yesno_answers = [
"Yes!", "Yup!", "Yeah!", "Mhmm...", "I guess",
"Sure, buddy", "No!", "No..?", "Nah", "Nope",
"Probably not..", "y tho", "I don't care..",
"Maybe", "Is this a trick question?", "bruh",
"Perhaps", "Mhm", "Yuppers", "Yaaas", "Nu",
"Nuh uh", "You don't wanna know", "Suuuuuure",
"How would I know", "Probably", "Sure", "idk",
"Sure, I guess", "Why not"
]
2020-06-26 19:32:34 -04:00
moo_answers = [
"moo", "moo moo", "moooooo", "milk me", "moo!",
"moomoo", "am cow", "me is cow", "*cow noise*",
2020-06-26 19:45:07 -04:00
"am make milk", "MOO", "MOOOOOOOOO", "moo?",
"oink", "moo?", "I am a cow", "milk time"
2020-06-26 19:32:34 -04:00
]
2020-06-26 19:18:04 -04:00
2020-06-29 13:55:02 -04:00
if not ldr.settings.get_config("lydia_key"):
@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):
if event.args:
await event.reply(choice(yesno_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)
2020-06-28 18:16:20 -04:00
try:
await event.delete()
except:
pass
2020-06-29 13:55:02 -04:00
@ldr.add(f"{bot_name}(,|) edit to", simple_pattern=True, hide_help=True, sudo=True)
async def edit_message(event):
if event.args:
if event.is_reply:
reply = await event.get_reply_message()
try:
await reply.edit(event.args)
await event.delete()
except:
pass
2020-06-26 19:34:15 -04:00
@ldr.add(f"let the bodies hit the", simple_pattern=True, hide_help=True)
2020-06-26 19:24:21 -04:00
async def floor(event):
if not event.args:
await event.reply("FLOOOOOOOOOOOOOOOOOOR")
2020-06-26 19:32:34 -04:00
2020-06-29 12:13:17 -04:00
@ldr.add(f"bruh", simple_pattern=True, hide_help=True)
async def bruh_moment(event):
if not event.args:
await event.reply("moment")
2020-06-26 19:45:07 -04:00
@ldr.add(f"(^| )moo( |$)", raw_pattern=True, hide_help=True)
2020-06-26 19:32:34 -04:00
async def moo(event):
2020-06-26 19:45:07 -04:00
await event.reply(choice(moo_answers))