From d99eacc2e1b0deadc7368b35adf0818493fd2fb9 Mon Sep 17 00:00:00 2001 From: Wim Date: Mon, 14 Jan 2019 19:41:32 +0100 Subject: Run go fmt --- bridge/discord/discord.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bridge/discord') 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 -- cgit v1.2.3