Skip to content

Commit

Permalink
Merge pull request #20 from h3poteto/default
Browse files Browse the repository at this point in the history
Fix default values
  • Loading branch information
h3poteto authored Mar 9, 2020
2 parents 7e37ebd + 7b952bd commit ce694f5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func runEventCmd() *cobra.Command {

flags := cmd.Flags()
flags.IntVarP(&r.threshold, "threshold", "t", 10, "Threshold for rage judgement.")
flags.IntVarP(&r.period, "period", "p", 60, "Observation period seconds for rage judgement. This CLI notify when there are more than threshold posts per period.")
flags.IntVarP(&r.period, "period", "p", 1200, "Observation period seconds for rage judgement. This CLI notify when there are more than threshold posts per period.")
flags.StringVarP(&r.channel, "channel", "c", "random", "Notify channel.")
flags.BoolVarP(&r.verbose, "verbose", "v", false, "Enable verbose mode")

Expand Down
2 changes: 1 addition & 1 deletion cmd/rtm.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func runRTMCmd() *cobra.Command {

flags := cmd.Flags()
flags.IntVarP(&r.threshold, "threshold", "t", 10, "Threshold for rage judgement.")
flags.IntVarP(&r.period, "period", "p", 60, "Observation period seconds for rage judgement. This CLI notify when there are more than threshold posts per period.")
flags.IntVarP(&r.period, "period", "p", 1200, "Observation period seconds for rage judgement. This CLI notify when there are more than threshold posts per period.")
flags.StringVarP(&r.channel, "channel", "c", "random", "Notify channel.")
flags.BoolVarP(&r.verbose, "verbose", "v", false, "Enable verbose mode")

Expand Down
2 changes: 1 addition & 1 deletion rage/rage.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func (r *Rage) Detect(messageChannelID string, messageTimestamp string) error {
}

r.logger.Infof("%d speakers in the conversation", len(speakers))
if len(speakers) < 1 {
if len(speakers) < 2 {
return nil
}

Expand Down

0 comments on commit ce694f5

Please sign in to comment.