Skip to content

Commit

Permalink
Clarify archive period is in days
Browse files Browse the repository at this point in the history
  • Loading branch information
jshiell committed Sep 27, 2024
1 parent 9e98551 commit d1ec927
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/main.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def archive_channel_if_inactive_for(number_of_days, channel)
archived = archive_channel(channel.id, channel.name, "This channel is older than #{number_of_days} days and has no messages, and will hence be archived. You can unarchive it if this is not appropriate.")

elsif days_ago(last_messages.messages.first.ts.to_f) > number_of_days
archived = archive_channel(channel.id, channel.name, "This channel has had no new messages in #{number_of_days} and will hence be archived. You can unarchive it if this is not appropriate.")
archived = archive_channel(channel.id, channel.name, "This channel has had no new messages in #{number_of_days} days and will hence be archived. You can unarchive it if this is not appropriate.")

else
puts "- Channel #{channel.name} is in regular use"
Expand Down

0 comments on commit d1ec927

Please sign in to comment.