Browse Source

fixed logging bug for selfieperms and nsfwperms

tags/v1.3.1
roxie 6 years ago
parent
commit
38f7ac3be2
2 changed files with 4 additions and 2 deletions
  1. +3
    -1
      cogs/gss.py
  2. +1
    -1
      config/cogs.py

+ 3
- 1
cogs/gss.py View File

@@ -70,6 +70,8 @@ class GaySoundsShitposting():

if self.nsfw_image_role in member.roles:
await self.bot.remove_roles(member, self.nsfw_image_role)
if logging:
return await self.bot.send_message(self.bot.get_channel(logging), content="{} has removed the {} role.".format(member.mention, self.nsfw_image_role.name))
return await self.bot.say("You already had {}. It has now been removed.".format(self.nsfw_image_role.name))

time = datetime.datetime.now() - ctx.message.author.joined_at
@@ -78,7 +80,7 @@ class GaySoundsShitposting():
await self.bot.add_roles(member, self.nsfw_image_role)
await self.bot.say("You have now have the {} role".format(self.nsfw_image_role.name))
if logging:
return await self.bot.send_message(self.bot.get_channel(logging), content="{} has requested the {} role.".format(member.mention, self.nsfw_image_role.name))
return await self.bot.send_message(self.bot.get_channel(logging), content="{} has given themselves the {} role.".format(member.mention, self.nsfw_image_role.name))
else:
return await self.bot.say(
"You do not meet the requirements for this role. You need at least {} score with <@!172002275412279296> and to have been in the server for {} days.".format(required_score, days)

+ 1
- 1
config/cogs.py View File

@@ -11,5 +11,5 @@ cogs = [
"cogs.settings",
"cogs.twitch",
"cogs.util",
"cogs.gss"
]

Loading…
Cancel
Save