mirror of
https://github.com/Nick80835/microbot
synced 2025-09-05 00:45:55 +00:00
add chance parameter
This commit is contained in:
@@ -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))
|
||||
|
Reference in New Issue
Block a user