Move welcome channel to register table

Signed-off-by: Etzelia <etzelia@hotmail.com>
pull/12/head
Etzelia 2021-07-09 15:19:17 -05:00
parent 06e5003d78
commit 3469d1a0b3
No known key found for this signature in database
GPG Key ID: 708511AE7ABC5314
3 changed files with 11 additions and 11 deletions

View File

@ -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

View File

@ -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"`

View File

@ -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",