fix HTTP 401 Unauthorized, {"message": "401: Unauthorized", "code": 0} (#1586)

fix file=bot.go:426 level=error service=bot error starting bot HTTP 401 Unauthorized, {"message": "401: Unauthorized", "code": 0}
see https://github.com/bwmarrin/discordgo#usage
This commit is contained in:
Dmitry Kozlov 2020-04-28 15:06:01 +03:00 committed by GitHub
parent 414b2ec5f8
commit 52861310b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -87,7 +87,7 @@ func (d *discordInput) Start() error {
} }
var err error var err error
d.session, err = discordgo.New(d.token) d.session, err = discordgo.New("Bot " + d.token)
if err != nil { if err != nil {
return err return err
} }