Replies: 2 comments 1 reply
-
cause idk hw |
Beta Was this translation helpful? Give feedback.
1 reply
-
bra idk how to code bots |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Bash:pip install PyGithub
Github bot:from github import Github
import time
GitHub credentials
ACCESS_TOKEN = 'YOUR_PERSONAL_ACCESS_TOKEN'
REPO_OWNER = 'repo_owner_username'
REPO_NAME = 'repo_name'
FILE_PATH = 'path/to/file'
def copy_file_forever():
# Connect to GitHub
g = Github(ACCESS_TOKEN)
repo = g.get_user(REPO_OWNER).get_repo(REPO_NAME)
if name == "main":
copy_file_forever()
Beta Was this translation helpful? Give feedback.
All reactions