Skip to content

Commit

Permalink
Feed the channel every 23 hours
Browse files Browse the repository at this point in the history
  • Loading branch information
rcy committed Sep 27, 2023
1 parent bdc723b commit 7270816
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ func addHandlers(b *bot.Bot) {

b.IdleRepeatAfterReset(8*time.Hour, handlers.POM)

b.Repeat(23*time.Hour, handlers.FeedMe)

b.Handle(`^!help`, func(params bot.HandlerParams) error {
for _, h := range b.Handlers {
params.Privmsgf(params.Target, "%s", h.String())
Expand Down

0 comments on commit 7270816

Please sign in to comment.