5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-12-24 03:25:40 +00:00

Run go fmt

This commit is contained in:
Wim 2019-01-14 19:41:32 +01:00
parent 62e55214fc
commit d99eacc2e1

View File

@ -62,10 +62,10 @@ func (b *Bdiscord) Connect() error {
token = "Bot " + b.GetString("Token")
}
// if we have a User token, remove the `Bot` prefix
if strings.HasPrefix(b.GetString("Token"),"User ") {
token = strings.Replace(token,"Bot ","",-1)
if strings.HasPrefix(b.GetString("Token"), "User ") {
token = strings.Replace(token, "Bot ", "", -1)
}
b.c, err = discordgo.New(token)
if err != nil {
return err