MIT License | MIT License | ||||
Copyright (c) 2017 Roxanne Gibson | |||||
Copyright (c) 2018 Roxanne Gibson | |||||
Permission is hereby granted, free of charge, to any person obtaining a copy | Permission is hereby granted, free of charge, to any person obtaining a copy | ||||
of this software and associated documentation files (the "Software"), to deal | of this software and associated documentation files (the "Software"), to deal |
######Bug FIxes | ######Bug FIxes | ||||
- Fixed bug where Custom Commands would ignore the blacklist. | - Fixed bug where Custom Commands would ignore the blacklist. | ||||
- Fixed issue where custom command outputs were always lowercase | |||||
- Fixed some naughty swears that were placeholders for a more civilised response. | |||||
- Removed Herobrine | - Removed Herobrine | ||||
#### v1.2.0 | #### v1.2.0 |
"Adds a custom command to the list of custom commands." | "Adds a custom command to the list of custom commands." | ||||
self.servers = self.con.load_config() | self.servers = self.con.load_config() | ||||
command = command.lower() | command = command.lower() | ||||
output = output.lower() | |||||
output = output | |||||
zero = self.servers[ctx.message.server.id]["custom_commands"]["0"] | zero = self.servers[ctx.message.server.id]["custom_commands"]["0"] | ||||
one = self.servers[ctx.message.server.id]["custom_commands"]["1"] | one = self.servers[ctx.message.server.id]["custom_commands"]["1"] | ||||
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": | |||||
if settings != "custom_commands" or 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: | else: | ||||
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) |