From e60573abb5619dc6c8997650a632be56ac755adf Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Fri, 2 Feb 2018 15:41:40 +0200 Subject: [PATCH] piraatit/silta: quality documentation --- irc/piraatit/silta/crontab | 12 ++++++++++++ irc/piraatit/silta/discord-irc | 3 +++ irc/piraatit/silta/limnoria3 | 11 +++++++++++ irc/piraatit/silta/root | 21 +++++++++++++++++++++ irc/piraatit/silta/teleirc | 6 ++++++ 5 files changed, 53 insertions(+) create mode 100644 irc/piraatit/silta/crontab create mode 100644 irc/piraatit/silta/discord-irc create mode 100644 irc/piraatit/silta/limnoria3 create mode 100644 irc/piraatit/silta/root create mode 100644 irc/piraatit/silta/teleirc diff --git a/irc/piraatit/silta/crontab b/irc/piraatit/silta/crontab new file mode 100644 index 0000000..8742126 --- /dev/null +++ b/irc/piraatit/silta/crontab @@ -0,0 +1,12 @@ +# TeleIRC sometimes stops working by itself, so I am restarting it twice a +# day automatically as it seems to be enough for it to fix issues. +0 8 * * * systemctl restart telepirateirc --quiet +0 20 * * * systemctl restart telepirateirc --quiet + +# Discord-IRC is a lot more unreliable than TeleIRC, but it seems to work +# enough well (=no one notices if it's broken) in case it's restarted four +# times a day. +0 1 * * * systemctl restart discordpirateirc --quiet +0 8 * * * systemctl restart discordpirateirc --quiet +0 13 * * * systemctl restart discordpirateirc --quiet +0 20 * * * systemctl restart discordpirateirc --quiet diff --git a/irc/piraatit/silta/discord-irc b/irc/piraatit/silta/discord-irc new file mode 100644 index 0000000..18a7d1a --- /dev/null +++ b/irc/piraatit/silta/discord-irc @@ -0,0 +1,3 @@ +discord-irc/ - the git repo, tracking the latest tag +discordpirateirc.start - startup script to save from headache +discordpirateirc.json - the config file diff --git a/irc/piraatit/silta/limnoria3 b/irc/piraatit/silta/limnoria3 new file mode 100644 index 0000000..79be1db --- /dev/null +++ b/irc/piraatit/silta/limnoria3 @@ -0,0 +1,11 @@ +Limnoria/ - Limnoria's git repo, tracking the latest tag. + https://github.com/ProgVal/Limnoria +Supybot-plugins/ - Directories symlinked into Limnoria/plugins/* + https://github.com/ProgVal/Supybot-plugins + Mainly LinkRelay is wanted from here. + +Upkeep: in both directories "pip3 install -r requirements.txt --user --upgrade" +Afterwards in Limnoria/ "python3 setup.py install --user --upgrade" + +Euforia/ - ]o['s configs. NOTHING SHOULD BE TOUCHED THERE! +PROTIP: `tail -f Euforia/logs/messages.log` diff --git a/irc/piraatit/silta/root b/irc/piraatit/silta/root new file mode 100644 index 0000000..0f42b2c --- /dev/null +++ b/irc/piraatit/silta/root @@ -0,0 +1,21 @@ +## Bots + +/home/... + +teleirc - TeleIRCs for PirateIRC & freenode. T4 +limnoria2 - Python2 version of Limnoria, mainly Kunsido on PirateIRC2 + (meetingology/meeting bot) +limnoria3 - ]o[ Python3 version of Limnoria. +discordirc - Discord-IRC (D6) at PirateIRC. + +Systemd units: +telepirateirc.service - TeleIRC of PirateIRC, -vvv logging +limnoria3.service - ]o[ at freenode, PirateIRC, IRCnet and Euforia at + piraatit.slack.com +discordpirateirc.service - Discord IRC at PirateIRC (D6) +telefreenode.service - TBD +limnoria.service - TBD + +Automatic restart at cron as ugly hack for things being broken: +telepirateirc discordpirateirc +Also see "crontab -l" diff --git a/irc/piraatit/silta/teleirc b/irc/piraatit/silta/teleirc new file mode 100644 index 0000000..ae7a254 --- /dev/null +++ b/irc/piraatit/silta/teleirc @@ -0,0 +1,6 @@ +teleirc/ - https://github.com/FruitieX/TeleIRC/ . Mainly used for going in and + "npm install". It's tracking develop branch as it's lazy with tagging + See /root/README.mikaela for systemd! +telepirateirc/ - files of PirateIRC, only config.js should be touched and maybe + files/ be cleaned sometimes. +telefreenode/ - files of TeleIRC at freenode, mainly used by SailfishOS.