summaryrefslogtreecommitdiffstats
path: root/bridge/discord
diff options
context:
space:
mode:
authorWim <wim@42.be>2019-01-14 19:41:32 +0100
committerWim <wim@42.be>2019-01-14 19:41:32 +0100
commitd99eacc2e1b0deadc7368b35adf0818493fd2fb9 (patch)
treeab697c7932cb4e91cdaa14444df7e1373eb8d86d /bridge/discord
parent62e55214fc3edf75455554c6ddff366f8369b60e (diff)
downloadmatterbridge-msglm-d99eacc2e1b0deadc7368b35adf0818493fd2fb9.tar.gz
matterbridge-msglm-d99eacc2e1b0deadc7368b35adf0818493fd2fb9.tar.bz2
matterbridge-msglm-d99eacc2e1b0deadc7368b35adf0818493fd2fb9.zip
Run go fmt
Diffstat (limited to 'bridge/discord')
-rw-r--r--bridge/discord/discord.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/bridge/discord/discord.go b/bridge/discord/discord.go
index e6f939e6..2d3e074b 100644
--- a/bridge/discord/discord.go
+++ b/bridge/discord/discord.go
@@ -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