Browse Source

makes sure that warnings aren't printed in printsettings

tags/v1.4.0
roxie 6 years ago
parent
commit
fc2d6822e2
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      config/settings.py

+ 2
- 2
config/settings.py View File

@@ -164,11 +164,11 @@ class Settings:
async def printsettings(self, ctx):
"OWNER OR ADMIN ONLY: Prints the servers config file."
self.serverconfig = self.con.load_config()
config = self.serverconfig[str(ctx.message.guild.id)]
config = self.serverconfig[str(ctx.guild.id)]
em = discord.Embed(colour=0xDEADBF)
em.set_author(name="{} settings for {}.".format(self.bot.user.name, ctx.message.guild.name), icon_url=self.bot.user.avatar_url)
for settings in config:
if settings != "custom_commands" and settings != "warnings":
if settings != "custom_commands" and settings != "admin":
settingcontent = ""
for x in config[settings].items():
settingcontent += str(x).strip("()") + "\n"

Loading…
Cancel
Save