discord: fix authentication

This commit is contained in:
Chris Sexton 2021-08-19 20:37:53 -04:00 committed by Chris Sexton
parent cd5018af77
commit 8b84d6b840
1 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ type Discord struct {
} }
func New(config *config.Config) *Discord { 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 { if err != nil {
log.Fatal().Err(err).Msg("Could not connect to Discord") log.Fatal().Err(err).Msg("Could not connect to Discord")
} }
@ -187,7 +187,7 @@ func (d *Discord) Serve() error {
err := d.client.Open() err := d.client.Open()
if err != nil { if err != nil {
log.Debug().Err(err).Msg("error opening client") log.Fatal().Err(err).Msg("error opening client")
return err return err
} }