refactor(fun): simplify if statement
This commit is contained in:
parent
fbdd442a8e
commit
117438be76
7
fun.py
7
fun.py
@ -4,6 +4,7 @@ import commands
|
|||||||
|
|
||||||
|
|
||||||
async def on_message(message):
|
async def on_message(message):
|
||||||
if "gn" in commands.tokenize(message.content, remove_prefix=False):
|
if random.random() < 0.01 and "gn" in commands.tokenize(
|
||||||
if random.random() < 0.01:
|
message.content, remove_prefix=False
|
||||||
await message.add_reaction(random.choice(["💤", "😪", "😴", "🛌"]))
|
):
|
||||||
|
await message.add_reaction(random.choice(["💤", "😪", "😴", "🛌"]))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user