소스 검색

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"