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

Merge branch 'master' into rewrite

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

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

em.set_author(name="{} settings for {}.".format(self.bot.user.name, ctx.message.server.name), icon_url=self.bot.user.avatar_url) 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: for settings in config:
if settings != "custom_commands" or settings != "warnings":
print(settings)
if settings != "custom_commands" and settings != "warnings":
settingcontent = "" settingcontent = ""
for x in config[settings].items(): for x in config[settings].items():
settingcontent += str(x).strip("()") + "\n" settingcontent += str(x).strip("()") + "\n"
if not settingcontent:
settingcontent = "."
em.add_field(name=settings, value=settingcontent, inline=False) 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) 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) return await self.bot.say(embed=em)



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