go: Add votes to audit log

pull/6/head
Luther Wen Xu 2019-10-11 22:52:28 +07:00
parent 90b2c369b5
commit 423895b376
Signed by: chanbakjsd
GPG Key ID: B7D77E3E9D102B70
1 changed files with 1 additions and 0 deletions

@ -94,6 +94,7 @@ func checkForVote(s *discordgo.Session, r *discordgo.MessageReactionAdd) {
}
sendPrivateMessage(s, r.UserID, "您投票已成功。\nYou have voted successfully.\n名字Vote Name: "+voteName+"\n目前投的票 :"+r.Emoji.Name+":")
auditLog(s, fmt.Sprintf("<@%s> has chosen %s for vote ID %d.", r.UserID, r.Emoji.Name, voteID))
checkForVoteResult(s, voteID)
}