Browse Source

Updated intro message

hkremer/rebranding
Gregory Rudolph 4 years ago
parent
commit
c48b7498c8
Signed by: rudi
GPG Key ID: EF64F3CBD1A1EBDD
  1. 8
      main.go

8
main.go

@ -156,7 +156,7 @@ func runPurge(s *discordgo.Session) { @@ -156,7 +156,7 @@ func runPurge(s *discordgo.Session) {
func ready(s *discordgo.Session, event *discordgo.Ready) {
// Set the playing status.
s.UpdateStatus(0, "DreamDaddy v0.5")
s.UpdateStatus(0, "DreamDaddy v0.6")
}
func guildMemberAdd(s *discordgo.Session, m *discordgo.GuildMemberAdd) {
@ -200,14 +200,14 @@ func verifyMember(s *discordgo.Session, u discordgo.User) { @@ -200,14 +200,14 @@ func verifyMember(s *discordgo.Session, u discordgo.User) {
s.GuildMemberRoleRemove(config.GuildID, u.ID, config.MonitorRole)
st, _ := s.UserChannelCreate(u.ID)
s.ChannelMessageSend(st.ID, "Your verification has been accepted, welcome!")
s.ChannelMessageSend("627620309754839070", fmt.Sprintf("Welcome %+v please introduce yourself! :)", u.Mention()))
s.ChannelMessageSend("627620309754839070", fmt.Sprintf("Welcome %+v please introduce yourself! :) feel free to check out <#627620309754839070> to tag your roles. Also please mute any channels you are not interested in!", u.Mention()))
}
func rejectVerification(s *discordgo.Session, u discordgo.User) {
defer log.PanicSafe()
st, _ := s.UserChannelCreate(u.ID)
if st != nil {
s.ChannelMessageSend(st.ID, fmt.Sprintf("Your verification has been rejected. This means it did not clearly show your face with your pinkie finger held to the corner of your mouth, or the photo looked edited/filtered. No filters will be accepted.\n\nPlease try again before %+v", time.Until(time.Now().Add(1*time.Hour))))
s.ChannelMessageSend(st.ID, fmt.Sprintf("Your verification has been rejected. This means it did not clearly show your face, with your pinkie finger held to the corner of your mouth, or the photo looked edited/filtered. No filters will be accepted.\n\nPlease try again before %+v", time.Until(time.Now().Add(1*time.Hour))))
}
config.Unverified[u.ID] = time.Now()
}
@ -233,7 +233,7 @@ func handlePM(s *discordgo.Session, m *discordgo.MessageCreate) { @@ -233,7 +233,7 @@ func handlePM(s *discordgo.Session, m *discordgo.MessageCreate) {
}
}
if len(m.Attachments) != 1 {
s.ChannelMessageSend(m.ChannelID, "```I am a bot and this is an autoreply.\n\nUntil you send a verification, I will always say the following message:```\nYou may only send me your verification (and nothing else) to be passed to the admins (and no one else). Verification is a full face pic, with your pinky finger held to the corner of your mouth.")
s.ChannelMessageSend(m.ChannelID, "```I am a bot and this is an autoreply.\n\nUntil you send a verification, I will always say the following message:```\nYou may only send me your verification (and nothing else) to be passed to the admins (and no one else). Verification is a clear full face pic, with your pinky finger held to the corner of your mouth.")
s.ChannelMessageSend(config.AdminChannel, fmt.Sprintf("%+v said: %+v", m.Author.Mention(), m.Content))
return
}

Loading…
Cancel
Save