diff options
Diffstat (limited to 'bridge/discord')
-rw-r--r-- | bridge/discord/discord.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bridge/discord/discord.go b/bridge/discord/discord.go index 4497ce3a..e3c9009c 100644 --- a/bridge/discord/discord.go +++ b/bridge/discord/discord.go @@ -35,6 +35,9 @@ func New(cfg config.Protocol, account string, c chan config.Message) *bdiscord { func (b *bdiscord) Connect() error { var err error flog.Info("Connecting") + if !strings.HasPrefix(b.Config.Token, "Bot ") { + b.Config.Token = "Bot " + b.Config.Token + } b.c, err = discordgo.New(b.Config.Token) if err != nil { flog.Debugf("%#v", err) |