Fixed syntax error
This commit is contained in:
parent
8af5ecd645
commit
91d55ffff3
|
@ -17,7 +17,7 @@ class Owner:
|
||||||
self.bot = bot
|
self.bot = bot
|
||||||
|
|
||||||
@commands.command(pass_context=True)
|
@commands.command(pass_context=True)
|
||||||
@commands.check(isOwner)
|
@commands.check(checks.isOwner)
|
||||||
async def restart(self, ctx):
|
async def restart(self, ctx):
|
||||||
"""Forces the bot to restart"""
|
"""Forces the bot to restart"""
|
||||||
cursor = config.getCursor()
|
cursor = config.getCursor()
|
||||||
|
@ -30,7 +30,7 @@ class Owner:
|
||||||
os.execl(python, python, *sys.argv)
|
os.execl(python, python, *sys.argv)
|
||||||
|
|
||||||
@commands.command(pass_context=True)
|
@commands.command(pass_context=True)
|
||||||
@commands.check(isOwner)
|
@commands.check(checks.isOwner)
|
||||||
async def py(self, ctx):
|
async def py(self, ctx):
|
||||||
"""Executes code"""
|
"""Executes code"""
|
||||||
match_single = getter.findall(ctx.message.content)
|
match_single = getter.findall(ctx.message.content)
|
||||||
|
@ -51,7 +51,7 @@ class Owner:
|
||||||
exec(match_multi[0])
|
exec(match_multi[0])
|
||||||
|
|
||||||
@commands.command(pass_context=True)
|
@commands.command(pass_context=True)
|
||||||
@commands.check(isOwner)
|
@commands.check(checks.isOwner)
|
||||||
async def shutdown(self, ctx):
|
async def shutdown(self, ctx):
|
||||||
"""Shuts the bot down"""
|
"""Shuts the bot down"""
|
||||||
fmt = 'Shutting down, I will miss you {0.author.name}'
|
fmt = 'Shutting down, I will miss you {0.author.name}'
|
||||||
|
@ -60,7 +60,7 @@ class Owner:
|
||||||
await self.bot.close()
|
await self.bot.close()
|
||||||
|
|
||||||
@commands.command()
|
@commands.command()
|
||||||
@commands.check(isOwner)
|
@commands.check(checks.isOwner)
|
||||||
async def avatar(self, content: str):
|
async def avatar(self, content: str):
|
||||||
"""Changes the avatar for the bot to the filename following the command"""
|
"""Changes the avatar for the bot to the filename following the command"""
|
||||||
file = '/home/phxntx5/public_html/bot/images/' + content
|
file = '/home/phxntx5/public_html/bot/images/' + content
|
||||||
|
@ -68,7 +68,7 @@ class Owner:
|
||||||
await self.bot.edit_profile(avatar=fp.read())
|
await self.bot.edit_profile(avatar=fp.read())
|
||||||
|
|
||||||
@commands.command()
|
@commands.command()
|
||||||
@commands.check(isOwner)
|
@commands.check(checks.isOwner)
|
||||||
async def name(self, newNick: str):
|
async def name(self, newNick: str):
|
||||||
"""Changes the bot's name"""
|
"""Changes the bot's name"""
|
||||||
await self.bot.edit_profile(username=newNick)
|
await self.bot.edit_profile(username=newNick)
|
||||||
|
@ -78,7 +78,7 @@ class Owner:
|
||||||
os.execl(python, python, *sys.argv)
|
os.execl(python, python, *sys.argv)
|
||||||
|
|
||||||
@commands.command()
|
@commands.command()
|
||||||
@commands.check(isOwner)
|
@commands.check(checks.isOwner)
|
||||||
async def status(self, *stat: str):
|
async def status(self, *stat: str):
|
||||||
"""Changes the bot's 'playing' status"""
|
"""Changes the bot's 'playing' status"""
|
||||||
newStatus = ' '.join(stat)
|
newStatus = ' '.join(stat)
|
||||||
|
@ -87,7 +87,7 @@ class Owner:
|
||||||
await self.bot.say("Just changed my status to '{0}'!".format(newStatus))
|
await self.bot.say("Just changed my status to '{0}'!".format(newStatus))
|
||||||
|
|
||||||
@commands.command()
|
@commands.command()
|
||||||
@commands.check(isOwner)
|
@commands.check(checks.isOwner)
|
||||||
async def load(self, *, module: str):
|
async def load(self, *, module: str):
|
||||||
"""Loads a module"""
|
"""Loads a module"""
|
||||||
try:
|
try:
|
||||||
|
@ -101,7 +101,7 @@ class Owner:
|
||||||
await self.bot.say(fmt.format(type(e).__name__, e))
|
await self.bot.say(fmt.format(type(e).__name__, e))
|
||||||
|
|
||||||
@commands.command()
|
@commands.command()
|
||||||
@commands.check(isOwner)
|
@commands.check(checks.isOwner)
|
||||||
async def unload(self, *, module: str):
|
async def unload(self, *, module: str):
|
||||||
"""Unloads a module"""
|
"""Unloads a module"""
|
||||||
try:
|
try:
|
||||||
|
@ -115,7 +115,7 @@ class Owner:
|
||||||
await self.bot.say(fmt.format(type(e).__name__, e))
|
await self.bot.say(fmt.format(type(e).__name__, e))
|
||||||
|
|
||||||
@commands.command()
|
@commands.command()
|
||||||
@commands.check(isOwner)
|
@commands.check(checks.isOwner)
|
||||||
async def reload(self, *, module: str):
|
async def reload(self, *, module: str):
|
||||||
"""Reloads a module"""
|
"""Reloads a module"""
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue