Skip to content
This repository has been archived by the owner on Jul 31, 2018. It is now read-only.

Commit

Permalink
Merge pull request #1 from verixx/rewrite
Browse files Browse the repository at this point in the history
Fix a bot is not defined
  • Loading branch information
fourjr authored Nov 13, 2017
2 parents fa195eb + 9e7adf2 commit fb751a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cogs/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -973,7 +973,7 @@ async def choose(self, ctx, *, choices: commands.clean_content):

@commands.command()
async def update(self, ctx):
git = bot.get_cog('Git')
git = self.bot.get_cog('Git')
async with ctx.session.get('https://api.github.com/user', headers={"Authorization": f"Bearer {git.githubtoken}"}) as res: #get username
if 300 > res.status >= 200:
async with ctx.session.post('https://api.github.com/repos/' + (await res.json())['login'] + '/selfbot.py/pulls', json={"title":"Updating Bot","body":"Body", "head":"verixx:rewrite", "base":"rewrite"}, headers={"Authorization": f"Bearer {git.githubtoken}"}) as resp: #create pr
Expand Down

0 comments on commit fb751a3

Please sign in to comment.