瀏覽代碼

Tweak some arg logic now that args is non-null

Kirk Trombley 4 年之前
父節點
當前提交
e676336987
共有 1 個文件被更改,包括 1 次插入1 次删除
  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"