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 = ""
|
||||
|
||||
# welcome_channel is the channel to message to welcome the newly registered user
|
||||
welcome_channel = "0"
|
||||
|
||||
[register]
|
||||
# role is the role to assign to a user after registering
|
||||
role = "0"
|
||||
|
@ -35,6 +32,9 @@ role = "0"
|
|||
# url is the URL to show to new users
|
||||
url = "https://google.com"
|
||||
|
||||
# welcome_channel is the channel to message to welcome the newly registered user
|
||||
welcome_channel = "0"
|
||||
|
||||
# ServerAPI options
|
||||
[serverapi]
|
||||
# API endpoint
|
||||
|
|
|
@ -40,14 +40,14 @@ type Config struct {
|
|||
Albums []Album `toml:"albums"`
|
||||
MessageRoles []MessageRole `toml:"message_roles"`
|
||||
Register struct {
|
||||
URL string `toml:"url"`
|
||||
Role string `toml:"role"`
|
||||
URL string `toml:"url"`
|
||||
Role string `toml:"role"`
|
||||
WelcomeChannel string `toml:"welcome_channel"`
|
||||
} `toml:"register"`
|
||||
WelcomeChannel string `toml:"welcome_channel"`
|
||||
LeaveChannel string `toml:"leave_channel"`
|
||||
FiredRole string `toml:"fired_role"`
|
||||
MemeRate string `toml:"meme_rate"`
|
||||
Insult struct {
|
||||
LeaveChannel string `toml:"leave_channel"`
|
||||
FiredRole string `toml:"fired_role"`
|
||||
MemeRate string `toml:"meme_rate"`
|
||||
Insult struct {
|
||||
Targets []string `toml:"targets"`
|
||||
Comparisons []string `toml:"comparisons"`
|
||||
Adjectives []string `toml:"adjectives"`
|
||||
|
|
|
@ -105,7 +105,7 @@ func init() {
|
|||
}
|
||||
|
||||
// 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
|
||||
},
|
||||
help: "Register yourself with the Discord",
|
||||
|
|
Loading…
Reference in New Issue