From b50fd9613194e3aa8d9c99ceb1ab32ae9b8bc1b8 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Mon, 23 Dec 2019 23:44:55 -0600 Subject: add next scheduled seconds to `queued:boosts` --- app/lib/bangtags.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/lib/bangtags.rb b/app/lib/bangtags.rb index af177c32e..04c0f8c4e 100644 --- a/app/lib/bangtags.rb +++ b/app/lib/bangtags.rb @@ -899,6 +899,12 @@ class Bangtags @account.queued_boosts.find_each do |q| output << "\\- [#{q.status_id}](#{TagManager.instance.url_for(q.status_id)})" end + if Redis.current.exists("queued_boost:#{@account.id}") + output << "\nNext boost in #{Redis.current.ttl("queued_boost:#{@account.id}") / 60} minutes." + else + output << "\nNothing scheduled yet." + end + service_dm('announcements', @account, output.join("\n"), footer: '#!queued:boosts') when 'posts', 'statuses', 'roars' output = ["

Queued roars


"] -- cgit