Преглед изворни кода

print settings being fucking weird

tags/v1.3.0
roxie пре 6 година
родитељ
комит
6d07b1f8d4
1 измењених фајлова са 3 додато и 1 уклоњено
  1. +3
    -1
      cogs/settings.py

+ 3
- 1
cogs/settings.py Прегледај датотеку

@@ -167,10 +167,12 @@ class Settings():
em.set_author(name="{} settings for {}.".format(self.bot.user.name, ctx.message.server.name), icon_url=self.bot.user.avatar_url)

for settings in config:
if settings != "custom_commands":
if settings != "custom_commands" or settings != "warnings":
settingcontent = ""
for x in config[settings].items():
settingcontent += str(x).strip("()") + "\n"
if not settingcontent:
settingcontent = "."
em.add_field(name=settings, value=settingcontent, inline=False)
else:
em.add_field(name="custom_commands", value="For Custom Commands, use the custom list command.", inline=False)

Loading…
Откажи
Сачувај