Update bot.py

Signed-off-by: Matt C <matthew.compton@mymail.champlain.edu>
pull/1/head
Matt C 2 years ago committed by GitHub
parent 42fb3ad6d1
commit 2a89918cf1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,4 +1,5 @@
from github import Github from github import Github
import datetime
import sys import sys
g = Github(open(".access_token").read().strip()) g = Github(open(".access_token").read().strip())
@ -6,7 +7,7 @@ g = Github(open(".access_token").read().strip())
def post_update(text): def post_update(text):
repo = g.get_repo("crystalrfc-bot/status") repo = g.get_repo("crystalrfc-bot/status")
thread = repo.get_issue(1) thread = repo.get_issue(1)
thread.create_comment(text + "\n Beep Boop! (I'm a bot, and this action was performed automagically.)") thread.create_comment(text + "\nBeep Boop! (I'm a bot, and this action was performed automagically.)\nScan timestamp: `" + datetime.datetime.now().isoformat() + "`")
targets = ['crystal-linux/.github', 'crystal-linux-packages/.github'] targets = ['crystal-linux/.github', 'crystal-linux-packages/.github']

Loading…
Cancel
Save