WildPHP / irc-bot

A simple and modular PHP IRC bot
MIT License
84 stars 24 forks source link

Create a (shell/bash?) start script for the bot #24

Open Amunak opened 9 years ago

Amunak commented 9 years ago

The bot needs a start script that:

We don't need all of that, but a loop that can at least tell apart a !restart or crash/error/whatever and !quit would be really helpful.

We could also provide some init scripts or systemd unit files, but I don't think it's necessary.

NanoSector commented 7 years ago

Possibly we can use this: https://github.com/reactphp/child-process for a PHP script. Systemd unit will be coming up in a bit. Although I'd personally prefer it if the system service manager did this and we didn't implement such thing on our own.

NanoSector commented 7 years ago

Systemd service added as per https://github.com/WildPHP/Wild-IRC-Bot/commit/612878e880990aa1ffea1d22c14ffe5d54341b52

NanoSector commented 7 years ago

I honestly think having a system service manager like systemd handle this is way more reliable than doing it ourselves. I'll leave this open for a while longer.

ivptr commented 3 years ago

The other solution is: https://github.com/eggheads/eggdrop/blob/develop/scripts/botchk https://github.com/eggheads/eggdrop/blob/develop/scripts/autobotchk