26 lines
543 B
Python
26 lines
543 B
Python
import random
|
|
import discord
|
|
|
|
text = [
|
|
"你輸了",
|
|
"加把勁,下次一定行",
|
|
"失誤啦,再來一次",
|
|
"唉,可惜了",
|
|
"再接再厲",
|
|
]
|
|
|
|
rare_text = [
|
|
"菜,就多練",
|
|
"可以剪精華了",
|
|
"這操作要上抖音了",
|
|
"你是不是閉著眼睛玩?",
|
|
"請問你有開螢幕嗎?"
|
|
]
|
|
|
|
def lose_message(lose_user: discord.User) -> str:
|
|
if random.random() < 0.05:
|
|
msg = random.choice(rare_text)
|
|
else:
|
|
msg = random.choice(text)
|
|
return f"{lose_user.mention} {msg}"
|