Skip to content
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

Merged
merged 3 commits into from
Oct 7, 2019

Conversation

ghost
Copy link

@ghost ghost commented Oct 3, 2019

No description provided.

Toby McLaughlin added 2 commits October 3, 2019 09:50
- Aurora.Gray now takes an int for brightness
- Slack now sets logging/debug options in the contructor
@codecov-io
Copy link

codecov-io commented Oct 3, 2019

Codecov Report

Merging #9 into master will decrease coverage by 0.25%.
The diff coverage is 0%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
moonsla.go 37.16% <0%> (-0.26%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e55d55f...4d179b2. Read the comment docs.

Copy link
Owner

@Crazybus Crazybus left a 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),
Copy link
Owner

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}

Suggested change
slack.OptionDebug(true),
slack.OptionDebug(false),

Copy link
Author

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

Copy link
Owner

@Crazybus Crazybus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@Crazybus Crazybus merged commit 8f50f6e into Crazybus:master Oct 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants