mirror of https://github.com/velour/catbase.git
discord: fix authentication
This commit is contained in:
parent
cd5018af77
commit
8b84d6b840
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue