From 5d72ab26c9ee072a3f2f36cb03d2efd2698c99a0 Mon Sep 17 00:00:00 2001 From: xfnw Date: Wed, 25 Nov 2020 11:12:29 -0500 Subject: [PATCH] installation guide --- INSTALL.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 INSTALL.md diff --git a/INSTALL.md b/INSTALL.md new file mode 100644 index 0000000..186b164 --- /dev/null +++ b/INSTALL.md @@ -0,0 +1,22 @@ +# installation + +- you need ircrobots, do `pip3 install ircrobots` +- copy `config.py.example` to `config.py` and edit it + +## systemd user unit +this is optional but if you want it to autostart +on boot and stuff, do this. + + edit `relay.service` with the correct path and stuff + +`mkdir -p ~/.config/systemd/user` and copy relay.service +to `~/.config/systemd/user`. + +- to linger: `loginctl enable-linger` +- to start on boot: `systemctl --user enable relay` +- to run it: `systemctl --user start relay` + +# run it +if you dont want systemd stuff you can just +`python3 bot.py` or `./bot.py` +