Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/purge messages upto 24 hrs in current channel #982

Draft
wants to merge 35 commits into
base: develop
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
1c12b9d
new table to hold message history
ankitsmt211 Nov 5, 2023
d368324
add package for purge command feature
ankitsmt211 Nov 5, 2023
79277c9
message listener to store message data in db
ankitsmt211 Nov 5, 2023
093aa32
add routine to clear message history and purge command
ankitsmt211 Nov 5, 2023
bde724c
adding to features
ankitsmt211 Nov 5, 2023
f6757a9
refactor based on suggestions
ankitsmt211 Nov 6, 2023
357d41d
refactor variables
ankitsmt211 Nov 6, 2023
b25ee1e
fix doc
ankitsmt211 Nov 6, 2023
a6627ba
improve doc
ankitsmt211 Nov 6, 2023
117c0cc
method to ignore messages from bot or webhooks
ankitsmt211 Nov 6, 2023
650388e
refactor stream using try-with-resource
ankitsmt211 Nov 6, 2023
ec443d3
updated catch block
ankitsmt211 Nov 6, 2023
5feb1e6
add try-with-resource and logger
ankitsmt211 Nov 6, 2023
0bdc627
minor improvements
ankitsmt211 Nov 6, 2023
672d319
method to handle reasons
ankitsmt211 Nov 6, 2023
c3f3532
minor improvements
ankitsmt211 Nov 7, 2023
c6e81af
update privacy policy
ankitsmt211 Nov 7, 2023
45bda14
improved message for user and delete already pulled records
ankitsmt211 Nov 7, 2023
d38d874
adds option for duration, message expiration from db increased
ankitsmt211 Nov 8, 2023
b9f5aed
add an atomic counter as safety brake
ankitsmt211 Nov 12, 2023
0700661
refactor variable name
ankitsmt211 Nov 12, 2023
8e80ba0
refactor counter methods
ankitsmt211 Nov 12, 2023
20a2eb3
update record limit from 7 to 7.5k
ankitsmt211 Nov 12, 2023
fedb8c6
refactor classes to be final
ankitsmt211 Nov 12, 2023
53a5b72
log level from warn to debug on record limit
ankitsmt211 Nov 12, 2023
cdc511f
Merge branch 'develop' into feat/delete-last-hour-messages
ankitsmt211 Nov 14, 2023
5813ae3
auto trim routine and minor improvements
ankitsmt211 Nov 14, 2023
9a2c3da
add choices for duration, better UX
ankitsmt211 Nov 17, 2023
10d3664
add duration enum for constants and fix
ankitsmt211 Nov 25, 2023
ec27d05
writes should happen below limit
ankitsmt211 Dec 15, 2023
6f7f08d
refactoring to a better name for clarity
ankitsmt211 Dec 16, 2023
abe1e89
Merge branch 'develop' into feat/delete-last-hour-messages
ankitsmt211 Jan 27, 2024
9bd90cd
refactor better names for roles & replacing get(0) with getFirst()
ankitsmt211 Jan 27, 2024
671d92a
refactor enum Duration for clarity
ankitsmt211 Feb 18, 2024
1f6209e
add doc
ankitsmt211 Feb 18, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
new table to hold message history
  • Loading branch information
ankitsmt211 committed Nov 5, 2023
commit 1c12b9d7a9df56efba855bc056f9f49c8151ef96
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
CREATE TABLE message_history
tj-wazei marked this conversation as resolved.
Show resolved Hide resolved
(
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
sent_at TIMESTAMP NOT NULL,
guild_id BIGINT NOT NULL,
channel_id BIGINT NOT NULL,
message_id BIGINT NOT NULL,
author_id BIGINT NOT NULL,
)