Proof that it is possible to have a Sopel bot say text sent from outside IRC.
The script to send a message to the socket assumes the default IP and port, and assumes
available. It should work on any *nix system, but it should be possible to do something similar on
Windows (pull requests welcome with e.g. a BAT file).
sockmsg.pyin your Sopel bot's
modulesdirectory (and add
TARGETvariable as desired, e.g.
sendsockmsg.shanywhere it's convenient, e.g. the current directory (
- (re)start Sopel
- Call e.g.
./sendsockmsg.sh test message through socket
Alternatively, create a long-lived connection to the listening socket and send a line whenever you want
the module to post a message (terminated by