This commit is contained in:
夜坂雅 2022-12-29 08:25:13 +08:00
parent 05f4d233a9
commit c752e52ade
1 changed files with 3 additions and 1 deletions

View File

@ -256,7 +256,9 @@ async def parse_wordcloud_args(
raise NyxBotRuntimeError(f"Failed to fetch event: {error}")
sender = target_event.event.sender
if args:
if args[0] != "all":
if args[0] == "all":
sender = None
else:
try:
days = float(args[0])
if math.isnan(days) or math.isinf(days):