mirror of
https://github.com/pagefaultgames/rogueserver.git
synced 2025-03-31 02:02:54 +08:00
feat: Add Discord Guild ID flag to server configuration
This commit is contained in:
parent
46b1279852
commit
ad469a5c61
@ -57,6 +57,7 @@ func main() {
|
||||
gameurl := flag.String("gameurl", "https://pokerogue.net", "URL for game server")
|
||||
|
||||
discordbottoken := flag.String("discordbottoken", "dbt", "Discord Bot Token")
|
||||
discordguildid := flag.String("discordguildid", "dgid", "Discord Guild ID")
|
||||
|
||||
flag.Parse()
|
||||
|
||||
@ -70,7 +71,7 @@ func main() {
|
||||
account.GoogleClientSecret = *googlesecretid
|
||||
account.GoogleCallbackURL = *callbackurl + "/auth/google/callback"
|
||||
account.DiscordSession, _ = discordgo.New("Bot " + *discordbottoken)
|
||||
|
||||
account.DiscordGuildId = *discordguildid
|
||||
// register gob types
|
||||
gob.Register([]interface{}{})
|
||||
gob.Register(map[string]interface{}{})
|
||||
|
Loading…
x
Reference in New Issue
Block a user