Skip to main content

bot in reverse !

Project description

NAME


tobot - bot in reverse !

SYNOPSIS


tobot <cmd> [key=val] [key==val]
tobot -cvaw [init=mod1,mod2]
tobot -d
tobot -s

DESCRIPTION

TOB has all you need to program a unix cli program, such as disk perisistence for configuration files, event handler to handle the client/server connection, easy programming of your own commands, etc.

TOB contains python3 code to program objects in a functional way. it provides an “clean namespace” Object class that only has dunder methods, so the namespace is not cluttered with method names. This makes storing and reading to/from json possible.

TOB is a python3 IRC bot, it can connect to IRC, fetch and display RSS feeds, take todo notes, keep a shopping list and log text. You can run it under systemd for 24/7 presence in a IRC channel.

TOB is Public Domain.


INSTALL

installation is done with pipx


$ pipx install tobot
$ pipx ensurepath

<new terminal>

$ tobot srv > tob.service
$ sudo mv tobot.service /etc/systemd/system/
$ sudo systemctl enable tobot --now

joins #tobot on localhost

USAGE

use tobot to control the program, default it does nothing


$ tobot
$

see list of commands


$ tobot cmd
cfg,dpl,exp,imp,mre,nme,pwd,rem,res,rss,syn

CONFIGURATION

irc


$ tobot cfg server=<server>
$ tobot cfg channel=<channel>
$ tobot cfg nick=<nick>

sasl


$ tobot pwd <nsvnick> <nspass>
$ tobot cfg password=<frompwd>

rss


$ tobot rss <url>
$ tobot dpl <url> <item1,item2>
$ tobot rem <url>
$ tobot nme <url> <name>

opml


$ tobot exp
$ tobot imp <filename>

COMMANDS


cfg - irc configuration
cmd - commands
dpl - sets display items
exp - export opml (stdout)
imp - import opml
mre - display cached output
pwd - sasl nickserv name/pass
rem - removes a rss feed
res - restore deleted feeds
rss - add a feed
syn - sync rss feeds
ver - show version

FILES


~/.tobot
~/.local/bin/tobot
~/.local/pipx/venvs/tobot/*

AUTHOR


Bart Thate <bthate@dds.nl>

COPYRIGHT


tobot is Public Domain.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tobot-1.tar.gz (36.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tobot-1-py3-none-any.whl (46.4 kB view details)

Uploaded Python 3

File details

Details for the file tobot-1.tar.gz.

File metadata

  • Download URL: tobot-1.tar.gz
  • Upload date:
  • Size: 36.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for tobot-1.tar.gz
Algorithm Hash digest
SHA256 f1044ec1ad01b493477124794f2944443b2a0164c5115ff1025324b00d5cd95f
MD5 d5c0afe05c5c70820967a5606c3bf5e0
BLAKE2b-256 722b79cf627fd3fdc42f37892153ed5748eb5bf41e9d90d6bba7d89a41be5d7f

See more details on using hashes here.

File details

Details for the file tobot-1-py3-none-any.whl.

File metadata

  • Download URL: tobot-1-py3-none-any.whl
  • Upload date:
  • Size: 46.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for tobot-1-py3-none-any.whl
Algorithm Hash digest
SHA256 bdbde1ed16f29ce46b160a41b31d388e3a2a27d2164d8f545149af0ed6192a57
MD5 4855f0027b9d5cffaf7c5eaee2686bb5
BLAKE2b-256 3f795250f6db72bbc3887da8b1ca4342e67c03ed6e2f67e743b5131a795291bf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page