Browse Source

Merge branch 'master' into rewrite

tags/v1.3.0
roxie 6 years ago
parent
commit
4ce0325c16
4 changed files with 7 additions and 3 deletions
  1. +1
    -1
      LICENSE
  2. +2
    -0
      README.md
  3. +1
    -1
      cogs/customcommands.py
  4. +3
    -1
      cogs/settings.py

+ 1
- 1
LICENSE View File

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

+ 2
- 0
README.md View File



######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

+ 1
- 1
cogs/customcommands.py View File

"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"]



+ 3
- 1
cogs/settings.py View File

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)

Loading…
Cancel
Save