This bot has nothing to do with perl at all.
- Python 97.6%
- Nix 1.5%
- Shell 0.9%
| src | send startup notification in DMs only | |
| work | init | |
| .gitignore | init | |
| flake.lock | Add flake to have a working dev environment | |
| flake.nix | add devShell | |
| install-bot.sh | init | |
| install-systemd.sh | init | |
| LICENSE.md | init | |
| perlbot.service | init | |
| pyproject.toml | version 0.4.0 | |
| README.md | update readme | |
| run.sh | fix run.sh rename | |
| update-bot.sh | add script for updating the bot | |
Perlbot
This bot have nothing to do with perl at all.
From version v0.2.0 onwards this bot is not compatiple with previous versions and needs a fresh setup
install
pip install https://codeberg.org/c-base/perlbot/archive/main.tar.gz
or
pip install .
usage
create the bot working dir, cd into it
(optional) create configuration file config.toml
# admins have additional commands: join,leave etc pp
perl_admins = [ "@botadmin:example.com", "@botadmin2:example.com" ]
# special ping, admin only, optional
broadcast_ping = "botarmy ping"
# special status, admin only , optional
broadcast_status = "botarmy status"
create credentials file
smalsetup <matrixid>
start the bot
python -m perlbot
Matrix: #botorium:c-base.org