#print(f"- {reaction.content}: by {reaction.user.login}")
total_votes_against=0
ifreaction.content=="+1":
forreactioninall_reactions:
total_votes_for+=1
ifreaction.user.loginincore_team_logins:
elifreaction.content=="-1":
#print(f"- {reaction.content}: by {reaction.user.login}")
total_votes_against+=1
ifreaction.content=="+1":
print(f"Total votes for resolution: {str(total_votes_for)}")
total_votes_for+=1
print(f"Total votes against resolution: {str(total_votes_against)}")
elifreaction.content=="-1":
if(total_votes_for/len(core_team_logins))>0.5:
total_votes_against+=1
print("This RFC should be passed. Adding comment.")
print(f"Total votes for resolution: {str(total_votes_for)}")
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 automatically)")
print(f"Total votes against resolution: {str(total_votes_against)}")
issue.lock("resolved")
if(total_votes_for/len(core_team_logins))>0.5:
else:
print("This RFC should be passed. Adding comment.")
print("Not enough votes to pass")
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 automatically)")