IRC integration of UrLab
#Â build l'image
podman build -t lechebot .
# pour usage rapide:
# --rm le docker est supr au moment de le stop
podman run -d --rm --volume ./data:/lechebot/data lechebot
podman run -it --rm --volume ./data:/lechebot/data lechebot bash #Â run bash to manually start lechbot and choose comand line options
the data/ folder is shared with the container
$ git clone [email protected]:urlab/lechbot
$ cd lechbot
$ virtualenv -p python3.9 ve3
$ source ve3/bin/activate
$ pip install -r requirements.txt
Create a file called local_config.py (in the same directory as config.py), and edit config values as needed. In order to test the bot locally, you might be interested in runnning an instance of UrLab's Incubator.
to use the sudo
plugin you need to add a sudoers.json files in the data/ dir
sudoers.json:
{
"users": []
}
with the user names of the sudoers in the users array (you can allways add some later using the bot command or by modifying the file)
$ python lechbot.py [ --debug ]
For a minimal setup, add --local
so that lechbot won't try to poll from twitter or other distant APIs.
Il peut être nécessaire de mettre a jour yt-dlp pour que !motd fonctionne correctement
$ python lechbot.py --irc [ --debug ]
See the documentation's quickstart