1
0
Fork 0
mirror of synced 2024-06-02 10:44:32 +12:00

Changed base permission to a valid permission

This commit is contained in:
phxntxm 2016-07-17 15:56:29 -05:00
parent a6449de588
commit 11aae5096d
2 changed files with 3 additions and 3 deletions

View file

@ -42,12 +42,12 @@ class Core:
Doggo is love, doggo is life."""
os.chdir('/home/phxntx5/public_html/Bonfire/images')
f = glob.glob('doggo*')[random.randint(0,len(glob.glob('doggo*'))-1)]
f = open(f,'rb')
f = open(f, 'rb')
await self.bot.send_file(ctx.message.channel,f)
f.close()
@commands.command()
@checks.customPermsOrRole("send_message")
@checks.customPermsOrRole("send_messages")
async def joke(self):
"""Prints a random riddle"""
fortuneCommand = "/usr/bin/fortune riddles"

View file

@ -93,7 +93,7 @@ class Mod:
command = " ".join(msg[0:len(msg)-1])
permissions = msg[len(msg)-1]
if permissions.lower() == "none":
permissions = "send_message"
permissions = "send_messages"
msg = msg[0:len(msg)-1]
count = 0
cmd = self.bot.commands.get(msg[count])