Contributers now can pull latest commits
This commit is contained in:
parent
9891c42ed9
commit
46737185bc
@ -2,7 +2,7 @@
|
|||||||
# -*- coding: <encoding name> -*-
|
# -*- coding: <encoding name> -*-
|
||||||
|
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
import discord
|
import os
|
||||||
import traceback
|
import traceback
|
||||||
|
|
||||||
class Upload:
|
class Upload:
|
||||||
@ -78,5 +78,14 @@ class Upload:
|
|||||||
else:
|
else:
|
||||||
await ctx.send(f'Loaded `{extension}`.')
|
await ctx.send(f'Loaded `{extension}`.')
|
||||||
|
|
||||||
|
@commands.command()
|
||||||
|
async def git(self, ctx):
|
||||||
|
"""Pull latest commits"""
|
||||||
|
if ctx.author.id not in self.bot.ownerlist:
|
||||||
|
return await ctx.send('Only my creator can use me like this :blush:', delete_after=1)
|
||||||
|
|
||||||
|
pull = os.popen('git pull').read()
|
||||||
|
await ctx.send(f'Pull complete\n```sh\n{pull}\n```')
|
||||||
|
|
||||||
def setup(bot):
|
def setup(bot):
|
||||||
bot.add_cog(Upload(bot))
|
bot.add_cog(Upload(bot))
|
||||||
Loading…
x
Reference in New Issue
Block a user