freechat/chan-like
2020-12-15 14:22:29 -08:00
..
.gitignore initial docs and environment setup for a chan style messages management system 2020-08-22 19:47:50 -07:00
channer.py better note about configs and added support for config comments 2020-12-15 14:22:29 -08:00
pyvenv.cfg initial docs and environment setup for a chan style messages management system 2020-08-22 19:47:50 -07:00
readme.md better note about configs and added support for config comments 2020-12-15 14:22:29 -08:00

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

-h --help : Shows a help message then exits

-m MAX_AGE_DAYS --max-age-days MAX_AGE_DAYS : Sets how old messages are allowed to be to avoid deletion(in days)

Example -m 7 deletes messages older than 7 days.

-f FILE_ENV --file-env FILE_ENV : Required path to config file. See example below.

# Lines starting with '#' are ignored as comments
# No spaces between the keyname and '=' sign and value on the right
# '"' marks are also not required
# Keys the script doesn't care about are ignored
DATABASE_URL=mysql://user-account-to-use-the-db:supersecretpassword123@db.host.provider.io:3306/dbname-example

# Below are all the required keys for the script to work, the rest are ignored

DATABASE_NAME=dbname-example
DATABASE_PASS=supersecretpassword123
DATABASE_USER=user-account-to-use-the-db
DATABASE_HOST=db.host.provider.io
DATABASE_PORT=3306