Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

CLI/IRC/XMPP bot you can use to display RSS feeds.

Project description

JSONBOT is CLI/IRC/XMPP bot you can use to display RSS feeds.

JSONBOT makes it possible to program your own module enabling your own commands and contains serveral modules that can be used to program bots.

JSONBOT has a MIT no-clause license.

download

clone the source:

hg clone https://bitbucket.org/bthate/jsonbot2
cd jsonbot2
sudo python3 setup.py install

another option is to download with pip3 and install globally:

pip3 install jsonbot --upgrade

irc

use the -i option to start an IRC bot and RSS poller:

jsonbot -z -i irc,rss -n jsonbot -c irc.freenode.net -j \#dunkbots

xmpp

use the -i xmpp option to start a XMPP bot and RSS poller:

jsonbot -i xmpp,rss --user monitor@localhost --room test@conference.localhost

users

you need to add a users origin to be able to give the bot commands, add a user with the meet command:

jsonbot meet user@server
user user@server created

to give the user a permission you can use the perm command:

jsonbot perm user@server oper
ok user@server

the default shell user is root@shell and gives access to all the commands that are available.

cli

jsonbot can be used as a command line shell program.

bart@okdan:~$ jsonbot version
JSONBOT 2.3 - CLI/IRC/XMPP bot you can use to display RSS feeds.

shell

starting JSONBOT without arguments starts a shell.

bart@okdan:~$ jsonbot
> ps
1    1s       Task(CLI.select)

> find log
0 wakker - 1y6d
1 test - 1y5d
2 brightest idea ever ls - 1y4d
3 joint 2 of the day - 1y4d
4 what else to think of ? - 1y4d
>

commands

available commands as of nov 2018 are:

announce                 # announce text to all bots in the fleet.
cmds                     # show list of commands.
cfg                      # show configuraton files.
ed                       # show running threads.
find                     # present a list of objects based on prompt input.
fleet                    # show bots in the fleet.
kill                     # kill a task.
l                        # show license.
load                     # load a module
log                      # log some text.
ls                       # show classnames.
meet                     # introduce a user.
more                     # show last 10 line from cache.
perm                     # assign permissions to an user.
perms                    # show permissions you have.
ps                       # show running tasks.
rm                       # remove an object from the store.
rmperm                   # remove a permission of a user.
save                     # save config files to store.
test                     # echo test message.
todo                     # enter something todo.
u                        # show user information
undel                    # undelete an object.
up                       # show uptime.
v                        # show version.

contact

you can email me or contact me on IRC/freenode/#dunkbots.

botfather on #dunkbots irc.freenode.net

Project details


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
jsonbot-2.3.tar.gz (4.6 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page