thread.create_comment(text+"\nBeep Boop! (I'm a bot, and this action was performed automagically.)\nScan timestamp: `"+datetime.datetime.now().isoformat()+"`")
thread.create_comment(
text
+"\nBeep Boop! (I'm a bot, and this action was performed automagically.)\nScan timestamp: `"
#print(f"- {reaction.content}: by {reaction.user.login}")
#print(f"- {reaction.content}: by {reaction.user.login}")
ifreaction.content=="+1":
ifreaction.content=="+1":
total_votes_for+=1
total_votes_for+=1
elifreaction.content=="-1":
elifreaction.content=="-1":
total_votes_against+=1
total_votes_against+=1
print(f"Total votes for resolution: {str(total_votes_for)}")
print(f"Total votes for resolution: {str(total_votes_for)}")
print(f"Total votes against resolution: {str(total_votes_against)}")
print(f"Total votes against resolution: {str(total_votes_against)}")
if(total_votes_for/len(core_team_logins))>0.5:
if(total_votes_for/len(crystal_logins))>0.5:
print("This RFC should be passed. Adding comment.")
print("This RFC should be passed. Adding comment.")
ifnotissue.locked:
ifnotissue.locked:
issue.create_comment("This resolution has enough votes from Core Team mebers to be considered passed. Please close the issue once appropriate actions have been taken. - Beep Boop (I'm a bot, and this action was performed automagically)")
issue.create_comment(
"This resolution has enough votes to be considered passed. "
"Please close the issue once appropriate actions have been taken. "
"- Beep Boop (I'm a bot, and this action was performed automagically)"
)
issue.lock("resolved")
issue.lock("resolved")
rfcs_passed+=1
rfcs_passed+=1
status_text+=f"* Suggested that {issue.title} be acted upon, as it has passed.\n"
status_text+=f"* Suggested that {issue.title} be acted upon, as it has passed.\n"