Aevann1 2022-07-11 16:09:13 +02:00
parent 68ba0f564c
commit c504b76329
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ commands = {
"8ball": EIGHTBALL_REPLIES
}
command_regex = re.compile("(\s|\n)#(fortune|factcheck|8ball)", flags=re.A|re.I)
command_regex = re.compile("(\s|\n|^)#(fortune|factcheck|8ball)", flags=re.A|re.I)
def command_regex_matcher(match, upper=False):
return match.group(1) + choice(commands[match.group(2).lower()])