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

from discord.ext import commands 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 is_owner_or_admin():
def predicate(ctx): def predicate(ctx):
if ctx.author.id == owner:
if ctx.author.id == roxbot.owner:
return True return True
else: else:
for role in ctx.author.roles: for role in ctx.author.roles:




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

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

await ctx.send(file=file) await ctx.send(file=file)
os.remove(file.filename) 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: if not image:
image = self.image_lookup(ctx.message) image = self.image_lookup(ctx.message)



Loading…
Cancel
Save