Move welcome channel to register table
Signed-off-by: Etzelia <etzelia@hotmail.com>pull/12/head
parent
06e5003d78
commit
3469d1a0b3
|
@ -25,9 +25,6 @@ meme_rate = "0"
|
||||||
# Imgur Client ID
|
# Imgur Client ID
|
||||||
imgur_client_id = ""
|
imgur_client_id = ""
|
||||||
|
|
||||||
# welcome_channel is the channel to message to welcome the newly registered user
|
|
||||||
welcome_channel = "0"
|
|
||||||
|
|
||||||
[register]
|
[register]
|
||||||
# role is the role to assign to a user after registering
|
# role is the role to assign to a user after registering
|
||||||
role = "0"
|
role = "0"
|
||||||
|
@ -35,6 +32,9 @@ role = "0"
|
||||||
# url is the URL to show to new users
|
# url is the URL to show to new users
|
||||||
url = "https://google.com"
|
url = "https://google.com"
|
||||||
|
|
||||||
|
# welcome_channel is the channel to message to welcome the newly registered user
|
||||||
|
welcome_channel = "0"
|
||||||
|
|
||||||
# ServerAPI options
|
# ServerAPI options
|
||||||
[serverapi]
|
[serverapi]
|
||||||
# API endpoint
|
# API endpoint
|
||||||
|
|
|
@ -40,14 +40,14 @@ type Config struct {
|
||||||
Albums []Album `toml:"albums"`
|
Albums []Album `toml:"albums"`
|
||||||
MessageRoles []MessageRole `toml:"message_roles"`
|
MessageRoles []MessageRole `toml:"message_roles"`
|
||||||
Register struct {
|
Register struct {
|
||||||
URL string `toml:"url"`
|
URL string `toml:"url"`
|
||||||
Role string `toml:"role"`
|
Role string `toml:"role"`
|
||||||
|
WelcomeChannel string `toml:"welcome_channel"`
|
||||||
} `toml:"register"`
|
} `toml:"register"`
|
||||||
WelcomeChannel string `toml:"welcome_channel"`
|
LeaveChannel string `toml:"leave_channel"`
|
||||||
LeaveChannel string `toml:"leave_channel"`
|
FiredRole string `toml:"fired_role"`
|
||||||
FiredRole string `toml:"fired_role"`
|
MemeRate string `toml:"meme_rate"`
|
||||||
MemeRate string `toml:"meme_rate"`
|
Insult struct {
|
||||||
Insult struct {
|
|
||||||
Targets []string `toml:"targets"`
|
Targets []string `toml:"targets"`
|
||||||
Comparisons []string `toml:"comparisons"`
|
Comparisons []string `toml:"comparisons"`
|
||||||
Adjectives []string `toml:"adjectives"`
|
Adjectives []string `toml:"adjectives"`
|
||||||
|
|
|
@ -105,7 +105,7 @@ func init() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Don't return feedback because this goes in a different channel
|
// Don't return feedback because this goes in a different channel
|
||||||
sendMessage(cmd.session, cmd.config.WelcomeChannel, fmt.Sprintf("Welcome, **%s**!", cmd.message.Author.Mention()), false)
|
sendMessage(cmd.session, cmd.config.Register.WelcomeChannel, fmt.Sprintf("Welcome, **%s**!", cmd.message.Author.Mention()), false)
|
||||||
return "", nil
|
return "", nil
|
||||||
},
|
},
|
||||||
help: "Register yourself with the Discord",
|
help: "Register yourself with the Discord",
|
||||||
|
|
Loading…
Reference in New Issue