Fix running .items() on list
This commit is contained in:
parent
dc01bb9d53
commit
f899174fa0
1 changed files with 2 additions and 2 deletions
|
@ -132,7 +132,7 @@ class Jarvis(Snake):
|
||||||
v = v[97] + "..."
|
v = v[97] + "..."
|
||||||
arg_str += f"{v}\n"
|
arg_str += f"{v}\n"
|
||||||
elif isinstance(ctx, MessageContext):
|
elif isinstance(ctx, MessageContext):
|
||||||
for v in ctx.args.items():
|
for v in ctx.args:
|
||||||
if isinstance(v, str) and len(v) > 100:
|
if isinstance(v, str) and len(v) > 100:
|
||||||
v = v[97] + "..."
|
v = v[97] + "..."
|
||||||
arg_str += f" - {v}"
|
arg_str += f" - {v}"
|
||||||
|
@ -187,7 +187,7 @@ class Jarvis(Snake):
|
||||||
v = v[:97] + "..."
|
v = v[:97] + "..."
|
||||||
args.append(f"{KEY_FMT}{k}:{VAL_FMT}{v}{RESET}")
|
args.append(f"{KEY_FMT}{k}:{VAL_FMT}{v}{RESET}")
|
||||||
elif isinstance(ctx, MessageContext):
|
elif isinstance(ctx, MessageContext):
|
||||||
for v in ctx.args.items():
|
for v in ctx.args:
|
||||||
if isinstance(v, str) and len(v) > 100:
|
if isinstance(v, str) and len(v) > 100:
|
||||||
v = v[97] + "..."
|
v = v[97] + "..."
|
||||||
args.append(f"{VAL_FMT}{v}{RESET}")
|
args.append(f"{VAL_FMT}{v}{RESET}")
|
||||||
|
|
Loading…
Add table
Reference in a new issue