mirror of
https://github.com/42wim/matterbridge.git
synced 2024-11-25 04:02:03 -08:00
Run go fmt
This commit is contained in:
parent
62e55214fc
commit
d99eacc2e1
@ -62,8 +62,8 @@ func (b *Bdiscord) Connect() error {
|
|||||||
token = "Bot " + b.GetString("Token")
|
token = "Bot " + b.GetString("Token")
|
||||||
}
|
}
|
||||||
// if we have a User token, remove the `Bot` prefix
|
// if we have a User token, remove the `Bot` prefix
|
||||||
if strings.HasPrefix(b.GetString("Token"),"User ") {
|
if strings.HasPrefix(b.GetString("Token"), "User ") {
|
||||||
token = strings.Replace(token,"Bot ","",-1)
|
token = strings.Replace(token, "Bot ", "", -1)
|
||||||
}
|
}
|
||||||
|
|
||||||
b.c, err = discordgo.New(token)
|
b.c, err = discordgo.New(token)
|
||||||
|
Loading…
Reference in New Issue
Block a user