A place for all our bot adventures.
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 
ccl 3157234894 trying to fix git hooks and also sending some of the updates vor 10 Monaten
GlossBot added description for glossbot vor 3 Jahren
GreetBot added description for greetbot vor 3 Jahren
LogBot trying to fix git hooks and also sending some of the updates vor 10 Monaten
LogBot.old following camelcase style :) vor 3 Jahren
RECbot.wip small update vor 3 Jahren
SparkBot added description for sparkbot vor 3 Jahren
StreamBot following camelcase style :) vor 3 Jahren
TransitBot added description for transitbot vor 3 Jahren
WhisperBot 'WhisperBot/README.md' updaten vor 3 Jahren
echobot Add the rest of the xbotlib bots vor 3 Jahren
glossbot.xbotlib Add the rest of the xbotlib bots vor 3 Jahren
logsbot Add the rest of the xbotlib bots vor 3 Jahren
whisperbot.xbotlib 'whisperbot.xbotlib/README.md' updaten vor 3 Jahren
.gitignore Ignore those files vor 3 Jahren
README.md Update 'README.md' vor 11 Monaten
requirements.txt trying to fix git hooks and also sending some of the updates vor 10 Monaten

README.md

 _   _  _____        __  _____ ___    ____   ___ _____
| | | |/ _ \ \      / / |_   _/ _ \  | __ ) / _ \_   _|
| |_| | | | \ \ /\ / /    | || | | | |  _ \| | | || |
|  _  | |_| |\ V  V /     | || |_| | | |_) | |_| || |
|_| |_|\___/  \_/\_/      |_| \___/  |____/ \___/ |_|

status: experimental

Bots

The Varia XMPP botspace. These bots are written using slixmpp and sometimes also xbotlib.

Write your own

The idea is that you create a single python file and then using one of the above libraries, you write a single Python class which knows how to speak XMPP, join rooms, respond to commands etc. Probably the simplest place to start is by reading the xbotlib getting started guide.

Deploy it on the Varia server

Add a configuration entry to /etc/supervisor/conf.d/bots.conf like the following.

[program:whisperbot]
directory=/srv/gitea/clones/bots/whisperbot.xbotlib
user=bot
autostart=true
autorestart=true
environment=PATH="/srv/gitea/clones/bots/.venv/lib/python3.7/site-packages:%(ENV_PATH)s"
command=/srv/gitea/clones/bots/.venv/bin/python3 whisperbot.py --password <YOUR-PASSWORD>

Then systemctl restart supervisorctl and then check if it comes up with supervisorctl status bots:. Logs for all bots can be found in /var/log/supervisor/. Finally, when you git push your bot changes, a git hook will restart your bot.

Stop and start bots

For example logbot:

supervisorctl status bots:logbot

supervisorctl start bots:logbot

supervisorctl stop bots:logbot

supervisorctl restart bots:logbot