Explorar o código

Tweak some arg logic now that args is non-null

Kirk Trombley %!s(int64=4) %!d(string=hai) anos
pai
achega
e676336987
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/commands/roll.py

+ 1 - 1
src/commands/roll.py

@@ -31,7 +31,7 @@ def character(raw_args: Args):
     """
     The !character command generates a DnD character by firing 3 commands into the chat.
     """
-    if raw_args is not None and "d20" in raw_args:
+    if "d20" in raw_args.lower():
         yield "!rollstatsdumb"
     else:
         yield "!rollstats"