NIXBOT
Project description
NAME
SYNOPSIS
DESCRIPTION
NIXT 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, deferred exception handling to not crash on an error, etc.
NIXT 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.
NIXBOT 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.
NIXBOT is Public Domain.
INSTALL
installation is done with pipx
USAGE
use nixbot to control the program, default it does nothing
see list of commands
start console
start console and run irc and rss clients
list available modules
start daemon
start service
COMMANDS
here is a list of available commands
CONFIGURATION
irc
sasl
rss
opml
PROGRAMMING
nixbot has it’s modules in the package, so edit a file in nixbot/modules/<name>.py and add the following for hello world
def hello(event):
event.reply("hello world !!")
nixbot uses loading on demand of modules and has a tbl command to generate a table for this.
a md5sum can be added to verify the modules md5sums are matching.
put this value in nixbot/modules/__init__.py and nixbot can execute the hello command now.
Commands run in their own thread and the program borks on exit, output gets flushed on print so exceptions appear in the systemd logs. Modules can contain your own written python3 code, see the nixbot/modules directory for examples.
FILES
AUTHOR
COPYRIGHT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nixbot-174.tar.gz.
File metadata
- Download URL: nixbot-174.tar.gz
- Upload date:
- Size: 35.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
436bc8cd0e2f5cd2add31234c4e178058adb095e29aa90e1e265f22b50e827de
|
|
| MD5 |
f7c886eb20d8d743f44fc66dce2d09d9
|
|
| BLAKE2b-256 |
8fa1249b19f12cd76f6fb184d4f0a3821af4e00fe1a0051e36e0e1c928a8f893
|
File details
Details for the file nixbot-174-py3-none-any.whl.
File metadata
- Download URL: nixbot-174-py3-none-any.whl
- Upload date:
- Size: 43.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95214a8ab13bedc7614c322a4fd7b93e402683901ad48c7d08b66f6aeae3a84f
|
|
| MD5 |
b11f2ebfdc3474f45af6b8762ec8267c
|
|
| BLAKE2b-256 |
db985168ab10fead0be97f898a7b5f0fa73874f3801ebe98a11bf6bff23bcaa2
|