diff --git a/chan-like/.gitignore b/chan-like/.gitignore new file mode 100644 index 0000000..85d0bbc --- /dev/null +++ b/chan-like/.gitignore @@ -0,0 +1,2 @@ +bin/ +lib/ diff --git a/chan-like/pyvenv.cfg b/chan-like/pyvenv.cfg new file mode 100644 index 0000000..e0687f5 --- /dev/null +++ b/chan-like/pyvenv.cfg @@ -0,0 +1,8 @@ +home = /usr +implementation = CPython +version_info = 3.8.5.final.0 +virtualenv = 20.0.20 +include-system-site-packages = false +base-prefix = /usr +base-exec-prefix = /usr +base-executable = /usr/bin/python3 diff --git a/chan-like/readme.md b/chan-like/readme.md new file mode 100644 index 0000000..bbe2638 --- /dev/null +++ b/chan-like/readme.md @@ -0,0 +1,21 @@ +# Chan-Like Addon + +A simple plugin which can be used to give Freechat a more _chan-like_ experience where messages are not saved forever. + +This is basically another chronjob script that will execute every few minutes or so, removing old content unles otherwise specified. + + +## Options and what they do + +* time-out [VALUE] : sets an expiration timer for messages (on the order of days) + +Example : `--time-out 30` messages older than 30 days will be deletede + +* message-limit [VALUE] : sets the max number of messages allowed in each channel + +Example : `--message-limit 1000` after 1000 messages the oldest message will be removed to keep the amount of messages to around 1000. + +NOTE : this creates a new process if --no-poll is specified + +* --no-poll : Opt out of polling and listen for changes in the database +