Procházet zdrojové kódy

print settings being fucking weird

tags/v1.3.0
roxie před 6 roky
rodič
revize
6d07b1f8d4
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  1. +3
    -1
      cogs/settings.py

+ 3
- 1
cogs/settings.py Zobrazit soubor

@@ -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)

Načítá se…
Zrušit
Uložit