From 8b84d6b840e6a78c884f8b212918e5c42f8fa8bc Mon Sep 17 00:00:00 2001 From: Chris Sexton Date: Thu, 19 Aug 2021 20:37:53 -0400 Subject: [PATCH] discord: fix authentication --- connectors/discord/discord.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/connectors/discord/discord.go b/connectors/discord/discord.go index 775fff1..d885de7 100644 --- a/connectors/discord/discord.go +++ b/connectors/discord/discord.go @@ -25,7 +25,7 @@ type Discord struct { } func New(config *config.Config) *Discord { - client, err := discordgo.New("b " + config.Get("DISCORDBOTTOKEN", "")) + client, err := discordgo.New("Bot " + config.Get("DISCORDBOTTOKEN", "")) if err != nil { log.Fatal().Err(err).Msg("Could not connect to Discord") } @@ -187,7 +187,7 @@ func (d *Discord) Serve() error { err := d.client.Open() if err != nil { - log.Debug().Err(err).Msg("error opening client") + log.Fatal().Err(err).Msg("error opening client") return err }