Skip to content

Commit

Permalink
Use new auth
Browse files Browse the repository at this point in the history
  • Loading branch information
wooferzfg committed Nov 1, 2023
1 parent c0a54fa commit 69562c2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions randobot/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from datetime import datetime

import shortuuid
from github import Github, InputFileContent
from github import Auth, Github, InputFileContent


class Generator:
Expand Down Expand Up @@ -45,7 +45,8 @@ def generate_seed(self, randomizer_path, permalink, username, generate_spoiler_l
os.remove(spoiler_log_file_name)

timestamp = datetime.now().strftime("%Y-%m-%d-%H:%M:%S")
gh = Github(self.github_token)
auth = Auth.Token(self.github_token)
gh = Github(auth=auth)
gh_auth_user = gh.get_user()
gist = gh_auth_user.create_gist(
public=False,
Expand Down

0 comments on commit 69562c2

Please sign in to comment.