forked from cswimr/SeaCogs
fix(pterodactyl): use .items() to unpack dictionary values
This commit is contained in:
parent
bf3f0f9782
commit
088bf6b8dc
1 changed files with 2 additions and 2 deletions
|
@ -345,7 +345,7 @@ class Pterodactyl(commands.Cog):
|
||||||
leave_msg = await config.leave_msg()
|
leave_msg = await config.leave_msg()
|
||||||
mask_ip = await config.mask_ip()
|
mask_ip = await config.mask_ip()
|
||||||
api_endpoint = await config.api_endpoint()
|
api_endpoint = await config.api_endpoint()
|
||||||
regex_blacklist = await config.regex_blacklist()
|
regex_blacklist: dict = await config.regex_blacklist()
|
||||||
embed = discord.Embed(color = await ctx.embed_color(), title="Pterodactyl Configuration")
|
embed = discord.Embed(color = await ctx.embed_color(), title="Pterodactyl Configuration")
|
||||||
embed.description = f"""**Base URL:** {base_url}
|
embed.description = f"""**Base URL:** {base_url}
|
||||||
**Server ID:** `{server_id}`
|
**Server ID:** `{server_id}`
|
||||||
|
@ -368,7 +368,7 @@ class Pterodactyl(commands.Cog):
|
||||||
if not len(regex_blacklist) == 0:
|
if not len(regex_blacklist) == 0:
|
||||||
regex_blacklist_embed = discord.Embed(color = await ctx.embed_color(), title="Regex Blacklist")
|
regex_blacklist_embed = discord.Embed(color = await ctx.embed_color(), title="Regex Blacklist")
|
||||||
regex_string = ''
|
regex_string = ''
|
||||||
for name, regex in regex_blacklist:
|
for name, regex in regex_blacklist.items():
|
||||||
regex_string += f"**{name}**: {box(regex, 're')}\n"
|
regex_string += f"**{name}**: {box(regex, 're')}\n"
|
||||||
regex_blacklist_embed.description = regex_string
|
regex_blacklist_embed.description = regex_string
|
||||||
await ctx.send(embed=regex_blacklist_embed)
|
await ctx.send(embed=regex_blacklist_embed)
|
||||||
|
|
Loading…
Reference in a new issue