From 719d41ed78c346c05eb9f68ff199fcff80a5a902 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Wed, 14 Nov 2018 10:45:56 +0900 Subject: [PATCH] Updated welcome message --- bots/discord/OnGuildMemberAdd.go | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/bots/discord/OnGuildMemberAdd.go b/bots/discord/OnGuildMemberAdd.go index ac865818..6683eff5 100644 --- a/bots/discord/OnGuildMemberAdd.go +++ b/bots/discord/OnGuildMemberAdd.go @@ -7,9 +7,12 @@ import ( ) // Channels -const welcomeChannel = "420600996268474368" -const enChannel = "134910939140063232" -const jpChannel = "334016470474424322" +const ( + welcomeChannel = "420600996268474368" + enChannel = "134910939140063232" + jpChannel = "334016470474424322" + botChannel = "326743061793079296" +) // Emoji const ramFive = ":ramFive:418520880511975426" @@ -20,8 +23,9 @@ func OnGuildMemberAdd(session *discordgo.Session, event *discordgo.GuildMemberAd fmt.Println(event.Member.User.Username + " just joined!") msg, err := session.ChannelMessageSend(welcomeChannel, fmt.Sprintf( - "**Welcome** %s!\n\nTo join this server, you need to verify your notify.moe account. Simply type `!verify` to receive instructions on how to do that.\n\nAfterwards, please introduce yourself in <#%s>.\n\n日本人は <#%s> で自己紹介して下さい!", + "**Welcome** %s!\n\nTo join this server, you need to verify your notify.moe account. Simply type `!verify` in <#%s> to receive instructions on how to do that.\n\nAfterwards, please introduce yourself in <#%s>.\n\n日本人は <#%s> で自己紹介して下さい!", event.Member.User.Mention(), + botChannel, enChannel, jpChannel, ))