about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-12-23 23:44:55 -0600
committermultiple creatures <dev@multiple-creature.party>2019-12-23 23:44:55 -0600
commitb50fd9613194e3aa8d9c99ceb1ab32ae9b8bc1b8 (patch)
treed87ed5b7cfe8ab52bcffa64e146e44cf5b4fea82 /app
parent276b2300198dd6d54ff24b325097f33645d25a6e (diff)
add next scheduled seconds to `queued:boosts`
Diffstat (limited to 'app')
-rw-r--r--app/lib/bangtags.rb6
1 files changed, 6 insertions, 0 deletions
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 = ["<h1>Queued roars</h1><br>"]