Browse Source

changes enby to nb and moved them around on the alias train.

tags/v1.8.0
Roxie Gibson 6 years ago
parent
commit
3f832e08f9
2 changed files with 6 additions and 5 deletions
  1. +4
    -3
      roxbot/checks.py
  2. +2
    -2
      roxbot/cogs/image.py

+ 4
- 3
roxbot/checks.py View File

@@ -1,10 +1,11 @@
from discord.ext import commands
from roxbot import guild_settings as gs, owner
import roxbot
from roxbot import guild_settings as gs


def is_owner_or_admin():
def predicate(ctx):
if ctx.author.id == owner:
if ctx.author.id == roxbot.owner:
return True
else:
for role in ctx.author.roles:
@@ -15,7 +16,7 @@ def is_owner_or_admin():


def _is_admin_or_mod(ctx):
if ctx.message.author.id == owner:
if ctx.message.author.id == roxbot.owner:
return True
else:
admin_roles = gs.get(ctx.guild).perm_roles["admin"]

+ 2
- 2
roxbot/cogs/image.py View File

@@ -158,8 +158,8 @@ class CustomCommands:
await ctx.send(file=file)
os.remove(file.filename)

@pride.command(aliases=["nonbinary", "nb"])
async def enby(self, ctx, image: roxbot.converters.AvatarURL=None):
@pride.command(aliases=["nonbinary", "enby"])
async def nb(self, ctx, image: roxbot.converters.AvatarURL=None):
if not image:
image = self.image_lookup(ctx.message)


Loading…
Cancel
Save