Skip to content

Commit

Permalink
Add a bit of a buffer to reminder to reduce chance that message is wr…
Browse files Browse the repository at this point in the history
…ong.
  • Loading branch information
iopred committed Oct 13, 2018
1 parent 7d2002a commit fff8dde
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -23,5 +23,5 @@ install:
- go get github.com/iopred/bruxism/topstreamersplugin
- go get github.com/iopred/bruxism/triviaplugin
- go get github.com/iopred/bruxism/youtubejoinplugin
- go get github.com/iopred/bruxism
- go get -v github.com/iopred/bruxism
- go get -v .
2 changes: 2 additions & 0 deletions reminderplugin/reminderplugin.go
Expand Up @@ -247,6 +247,8 @@ func (p *ReminderPlugin) Message(bot *bruxism.Bot, service bruxism.Service, mess
}
}

t = t.Add(500 * time.Millisecond)

err = p.AddReminder(&Reminder{
StartTime: now,
Time: t,
Expand Down

0 comments on commit fff8dde

Please sign in to comment.