-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A couple of fixes for building against the latest libraries. #9
Conversation
- Aurora.Gray now takes an int for brightness - Slack now sets logging/debug options in the contructor
Codecov Report
@@ Coverage Diff @@
## master #9 +/- ##
==========================================
- Coverage 37.41% 37.16% -0.26%
==========================================
Files 1 1
Lines 147 148 +1
==========================================
Hits 55 55
- Misses 90 91 +1
Partials 2 2
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The rest LGTM! Thank you for fixing this up :) I really should get around to switching it over to use go modules instead of the old "get the latest of everything" go used to use.
moonsla.go
Outdated
|
||
api := slack.New( | ||
slackToken, | ||
slack.OptionDebug(true), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you switch this back to the default of false? Making it configurable would also be ok.
With this enabled I'm getting spammed by logs:
slack-bot: 2019/10/03 08:39:10 websocket_managed_conn.go:326: Sending PING 1
slack-bot: 2019/10/03 08:39:10 websocket_managed_conn.go:369: Incoming Event: {"type":"pong","timestamp":1570084750,"reply_to":1}
slack-bot: 2019/10/03 08:39:40 websocket_managed_conn.go:326: Sending PING 2
slack-bot: 2019/10/03 08:39:40 websocket_managed_conn.go:369: Incoming Event: {"type":"pong","timestamp":1570084780,"reply_to":2}
slack.OptionDebug(true), | |
slack.OptionDebug(false), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops! Sorry. Fixed in 4d179b2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
No description provided.