Skip to content

Commit

Permalink
Merge pull request #22 from nissyi-gh/add-pomo-mention
Browse files Browse the repository at this point in the history
pomodoroでの通知にユーザーネームを加える
  • Loading branch information
nissyi-gh authored Jul 23, 2023
2 parents ef9fba2 + ae3febe commit 2580b3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/task_pegion/pomodoro.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@ def hundle_interrupt
def send_break_notice
@next_notice_time += BREAK_TIME
@next_notice_type = 'work'
text = 'タスク開始から25分経過しました。一息つきませんか?'
text = "#{@config.user_name} タスク開始から25分経過しました。一息つきませんか?"

Notifier.new('pomodoro', text).notice
end

def send_work_notice
@next_notice_time += WORK_TIME
@next_notice_type = 'break'
text = 'そろそろ休憩終わり!タスクに戻りましょう!'
text = "#{@config.user_name} そろそろ休憩終わり!タスクに戻りましょう!"

Notifier.new('pomodoro', text).notice
end
Expand Down

0 comments on commit 2580b3e

Please sign in to comment.