diff options
author | Jordan <me@jordan.im> | 2021-12-18 16:47:17 -0700 |
---|---|---|
committer | Jordan <me@jordan.im> | 2021-12-18 16:47:17 -0700 |
commit | b2d0b6a1963e051de7652958da68f6c7fda3d5e9 (patch) | |
tree | f09a508d53af184a81815dabd2bb9c3c336a8c23 | |
parent | 245076d017f26e12c162c08933fa3078cf19f63b (diff) | |
download | keep-b2d0b6a1963e051de7652958da68f6c7fda3d5e9.tar.gz keep-b2d0b6a1963e051de7652958da68f6c7fda3d5e9.zip |
keep: uncomment websocket block
-rw-r--r-- | keep.go | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -100,11 +100,11 @@ func main() { dg.Identify.Intents = discordgo.IntentsGuildMessages // Open a websocket connection to Discord and begin listening - //err = dg.Open() - //if err != nil { - // fmt.Println("error opening connection,", err) - // return - //} + err = dg.Open() + if err != nil { + fmt.Println("error opening connection,", err) + return + } // Wait here until CTRL-C or other term signal is received sc := make(chan os.Signal, 1) |