Skip to main content

objects daemon

Project description

NAME

OBJD - objects daemon

SYNOPSIS

objdctl <cmd> [key=val] [key==val]
objd

DESCRIPTION

OBJD 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 also
copy/paste the service file and run it under systemd for 24/7 presence
in a IRC channel.

OBJD uses OBJR, containing all the python3 code to program a unix cli
program, such as disk perisistence for configuration files, event handler
to handle the client/server connection, code to introspect modules for
commands, deferred exception handling to not crash on an error, a parser
to parse commandline options and values, etc.

OBJD uses OBJX, an module that allows for easy json save//load
to/from disk of objects. 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.

OBJD is Public Domain.

USAGE

without any argument the program starts a daemon

$ objd
$


use the objctl program to manage objd

CONFIGURATION

the cfg command is used for configuration of the IRC bot

$ objdctl cfg
channel=#objd commands=True nick=objd port=6667 server=localhost

irc

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

sasl

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

rss

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

COMMANDS

$ objdctl cmd
cfg,cmd,dne,dpl,err,flt,log,mod,mre,nme,pwd,rem,req,res,rss,tdo,thr,tmr


cmd - commands
cfg - irc configuration
dlt - remove a user
dpl - sets display items
fnd - find objects
log - log some text
met - add a user
mre - displays cached output
pwd - sasl nickserv name/pass
rem - removes a rss feed
rss - add a feed
thr - show the running threads

SYSTEMD

save the following it in /etc/systems/systemd/objd.service and
replace "<user>" with the user running pipx
[Unit]
Description=objects daemon
Requires=network-online.target
After=network-online.target

[Service]
Type=simple
User=<user>
Group=<user>
WorkingDirectory=/home/<user>/.objd
ExecStart=/home/<user>/.local/pipx/venvs/objd/bin/objd
RemainAfterExit=yes

[Install]
WantedBy=default.target
then run this::

$ pipx ensurepath
$ mkdir ~/.objd
$ sudo systemctl enable objd --now

default channel/server is #objd on localhost

FILES

~/.objd
~/.local/bin/objdctl
~/.local/bin/objd
~/.local/pipx/venvs/objd/

AUTHOR

Bart Thate <bthate@dds.nl>

COPYRIGHT

OBJD 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

objd-13.tar.gz (16.7 kB view details)

Uploaded Source

File details

Details for the file objd-13.tar.gz.

File metadata

  • Download URL: objd-13.tar.gz
  • Upload date:
  • Size: 16.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for objd-13.tar.gz
Algorithm Hash digest
SHA256 65ba5dce2339ce8cc236a0fd358a8a9c47bbd88705ad03840adeb5bd5e5abd43
MD5 7cc1f701ddaf2a72daa4976f391bce3d
BLAKE2b-256 5f59821bf9c2c255ac00cc75b1c1f6e6a9a1717b16816958a80dcaa5a200f1d7

See more details on using hashes here.

Supported by

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