lib/slackdo.rb in slackdo-0.2.2 vs lib/slackdo.rb in slackdo-0.2.3
- old
+ new
@@ -31,17 +31,19 @@
text: note_content,
color: "gray",
mrkdwn_in: ["text"]
}
notifier.post text: "• [#{category}] #{message}", attachments: [note]
+ puts 'Item was posted to Slack...'
end
end
class Reminder
def add_reminder
notifier = Slack::Notifier.new `cat ~/.slackdo/webhook`.strip
cli = HighLine.new
message = cli.ask 'Type your reminder:'
notifier.post text: "• _#{message}_"
+ puts 'Reminder was posted to Slack...'
end
end
end