decrease edge chance from 5% to 1%

pull/182/head
Aevann 2023-08-07 16:11:10 +03:00
parent 67a2693409
commit aa5a56aec7
1 changed files with 1 additions and 1 deletions

View File

@ -212,7 +212,7 @@ commands = {
command_regex = re.compile("(\s|^)#(fortune|factcheck|8ball|roll|coinflip)", flags=re.A|re.I)
def command_regex_matcher(match, upper=False):
if match.group(2) == 'coinflip' and random.random() < 0.05:
if match.group(2) == 'coinflip' and random.random() < 0.01:
result = COINFLIP_EDGE
else:
result = str(choice(commands[match.group(2).lower()]))