Running with Systemd
One way of running your robot is to use a systemd unit file on a systemd-managed Linux host:
- Copy
resources/robot.serviceto/etc/systemd/system/<botname>.serviceand edit with values for your system; you'll need to create a local user, and a directory for your robot that the user can write to - Reload
systemdwithsystemctl daemon-reload - Enable the service with
systemctl enable <botname> - Place your robot's
.envin the robot's home directory, mode0400, owned by the robot user; you can leaveGOPHER_PROTOCOLcommented out, since the value should be set in the<botname>.servicefile - Start the service:
systemctl start <botname>
That's it! Your robot should start and connect to your team chat.