Skip to content

A bot integrated with Toggl API, for Toggle reports completion

Notifications You must be signed in to change notification settings

puntoria/toggl_api_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

togglev_bot

require "rufus-scheduler"

scheduler = Rufus::Scheduler.new

# +---------------- minute (0 - 59)
# |  +------------- hour (0 - 23)
# |  |  +---------- day of month (1 - 31)
# |  |  |  +------- month (1 - 12)
# |  |  |  |  +---- day of week (0 - 6) (Sunday=0 or 7)
# |  |  |  |  |
#   *  *  *  *  *  command to be executed 
scheduler.cron '50 23 * * * Europe/Belgrade' do
  rake "toggl:summary"
end

scheduler.cron('50 23 * * 0 Europe/Belgrade') do
  rake "toggl:weekly"
end

scheduler.join

Puntoria Inc. 2018

About

A bot integrated with Toggl API, for Toggle reports completion

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages