Procházet zdrojové kódy

Merge branch 'master' into rewrite

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

+ 5
- 4
cogs/settings.py Zobrazit soubor

@@ -167,15 +167,16 @@ 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" or settings != "warnings":
print(settings)
if settings != "custom_commands" and 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:
elif settings == "custom_commands":
em.add_field(name="custom_commands", value="For Custom Commands, use the custom list command.", inline=False)
elif settings == "warnings":
pass

return await self.bot.say(embed=em)


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