Class: Slackdo::Reminder
- Inherits:
-
Object
- Object
- Slackdo::Reminder
- Defined in:
- lib/slackdo.rb
Instance Method Summary collapse
Instance Method Details
#add_reminder ⇒ Object
213 214 215 216 217 218 219 220 221 |
# File 'lib/slackdo.rb', line 213 def add_reminder file = File.read("#{ENV['HOME']}/.slackdo/config.json") hash = JSON.parse(file) webhook = hash['slack_webhook'] notifier = Slack::Notifier.new webhook = $prompt.ask('Type your reminder:') notifier.post text: "• _#{message}_" puts 'Reminder was posted to Slack...' end |