Browse Source

bug fixes are fun. Changes in change log.

tags/v1.3.3
roxie 6 years ago
parent
commit
54ad925156
3 changed files with 9 additions and 2 deletions
  1. +5
    -0
      README.md
  2. +3
    -1
      cogs/admin.py
  3. +1
    -1
      config/meta.py

+ 5
- 0
README.md View File



## Changelog ## Changelog


#### v1.3_3
###### Hottest of Bug Fixes
- Warn list now actually works for all warnings.
- Slowmode now ignores mods and admins.

#### v1.3.2 #### v1.3.2
###### Bug Fixes ###### Bug Fixes
- Fixed logging for gss cog again... - Fixed logging for gss cog again...

+ 3
- 1
cogs/admin.py View File



if not author == self.bot.user: if not author == self.bot.user:
if self.slow_mode and channel.id in self.slow_mode_channels: if self.slow_mode and channel.id in self.slow_mode_channels:
if author.id not in self.servers[message.server.id]["perm_roles"]["admin"] or author.id not in self.servers[message.server.id]["perm_roles"]["mod"]:
return
if author.id not in self.users[channel.id]: if author.id not in self.users[channel.id]:
# If user hasn't sent a message in this channel after slow mode was turned on # If user hasn't sent a message in this channel after slow mode was turned on
self.users[channel.id][author.id] = message.timestamp self.users[channel.id][author.id] = message.timestamp
for user in self.servers[ctx.message.server.id]["warnings"]: for user in self.servers[ctx.message.server.id]["warnings"]:
user_obj = await self.bot.get_user_info(user) user_obj = await self.bot.get_user_info(user)
output += "{}#{}: {} Warning(s)\n".format(user_obj.name, user_obj.discriminator, len(self.servers[ctx.message.server.id]["warnings"][user])) output += "{}#{}: {} Warning(s)\n".format(user_obj.name, user_obj.discriminator, len(self.servers[ctx.message.server.id]["warnings"][user]))
return await self.bot.say(output)
return await self.bot.say(output)




if not user.id in self.servers[ctx.message.server.id]["warnings"]: if not user.id in self.servers[ctx.message.server.id]["warnings"]:

+ 1
- 1
config/meta.py View File

[Github link](https://github.com/RainbowDinoaur/roxbot) [Github link](https://github.com/RainbowDinoaur/roxbot)
[Changelog](https://github.com/RainbowDinoaur/roxbot#v100)""" [Changelog](https://github.com/RainbowDinoaur/roxbot#v100)"""
__author__ = "Roxanne Gibson" __author__ = "Roxanne Gibson"
__version__= "1.3.2"
__version__= "1.3.3"
embedcolour = 0xDEADBF embedcolour = 0xDEADBF

Loading…
Cancel
Save