]>
description | none |
last change | Tue, 27 Feb 2024 23:12:11 +0000 (00:12 +0100) |
URL | https://git.somenet.org/pub/jan/mattermost-bot.git |
git remote set-url origin ssh://git@git.somenet.org:2/pub/jan/mattermost-bot.git | |
git@git.somenet.org:/pub/jan/mattermost-bot.git |
Started out as a simple means to lock channels into "read-only" mode by creating outgoing webhooks and deleting every incomming message. + This code is long gone/rebased away.
Currently this bot's uses range from fun /threads
/order
to something helpful /join-all
and to moderative features like /ta-wipe-channel
or /mod-del
and displays dialogs.
periodically run some cronjobs, like these:
*/5 * * * * (XDGRUNTIMEDIR=/run/user/1002 systemctl --user kill -s SIGUSR1 somebot.service) &> /dev/null
59 11 * * * (cd /srv/mattermost/mattermost-bot; python3 -u commandstatsprinter.py | python3 -m mattermost.stdin2channel http://localhost:8065/api user pw channel 'AUTODELETE-DAY
#commandusage #mmstats\n\n' '\n
'; rm /tmp/somebotcommand_stats.json) &> /dev/null
7 years ago | InitialCommit | | commit | shortlog | log |
2 months ago | master | shortlog | log | tree |