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

add chance parameter

This commit is contained in:
Nick80835
2020-06-29 15:29:20 -04:00
parent 3fc02581bd
commit 1edcc581b4
3 changed files with 28 additions and 10 deletions

View File

@@ -65,12 +65,12 @@ async def floor(event):
await event.reply("FLOOOOOOOOOOOOOOOOOOR")
@ldr.add(f"bruh", simple_pattern=True, hide_help=True)
@ldr.add(f"bruh", simple_pattern=True, hide_help=True, chance=50)
async def bruh_moment(event):
if not event.args:
await event.reply("moment")
@ldr.add(f"(^| )moo( |$)", raw_pattern=True, hide_help=True)
@ldr.add(f"(^| )moo( |$)", raw_pattern=True, hide_help=True, chance=50)
async def moo(event):
await event.reply(choice(moo_answers))