Browse Source

Merge branch 'master' into rewrite

tags/v1.3.0
roxie 6 years ago
parent
commit
99716eca61
1 changed files with 5 additions and 4 deletions
  1. +5
    -4
      cogs/settings.py

+ 5
- 4
cogs/settings.py View File

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


Loading…
Cancel
Save