The Pyborg Command Line App

pyborg

Pyborg is a markov chain bot for IRC (and other services [even at the same time with the same database]) that generates replies based on messages and it’s database

pyborg [OPTIONS] COMMAND [ARGS]...

Options

--version

output a version summary

--debug

control log level

--verbose, --silent

control log level

brain

Pyborg brain (pybrain.json) utils

pyborg brain [OPTIONS] COMMAND [ARGS]...

backup

Backup a specific brain

pyborg brain backup [OPTIONS] [TARGET_BRAIN]

Options

--output <output>

Arguments

TARGET_BRAIN

Optional argument

doctor

run diagnostics on a specific pyborg brain

pyborg brain doctor [OPTIONS] [TARGET_BRAIN]

Options

--one-two

Arguments

TARGET_BRAIN

Optional argument

graph

pyborg brain graph [OPTIONS] [TARGET_BRAIN]

Arguments

TARGET_BRAIN

Optional argument

import

move your brain to the new central location

pyborg brain import [OPTIONS] [TARGET_BRAIN]

Options

--tag <tag>

Arguments

TARGET_BRAIN

Optional argument

list

print out the pyborg brains (pybrain.json)s info

pyborg brain list [OPTIONS]

ls

shortcut for list

pyborg brain ls [OPTIONS]

stats

Get stats about a brain

pyborg brain stats [OPTIONS] [TARGET_BRAIN]

Arguments

TARGET_BRAIN

Optional argument

upgrade

Upgrade from a version 1.2 pyborg brain to 1.4 mono-json dict format

pyborg brain upgrade [OPTIONS] [TARGET_BRAIN]

Arguments

TARGET_BRAIN

Optional argument

discord

Run the discord client

pyborg discord [OPTIONS]

Options

--conf-file <conf_file>

filein

text file input module

pyborg filein [OPTIONS] INPUT_FILE

Options

--multiplex <multiplex>

Arguments

INPUT_FILE

Required argument

folder

where pyborg will look for brains and toml confs

pyborg folder [OPTIONS]

follow-twitter-user

follow a twitter user over the api

pyborg follow-twitter-user [OPTIONS] TARGET_USER

Options

--conf-file <conf_file>

Arguments

TARGET_USER

Required argument

help

Show this message and exit.

pyborg help [OPTIONS]

http

Run a server for mutliheaded (multiplex) pyborg

pyborg http [OPTIONS]

Options

--enable-notify <enable_notify>
--brain_name <brain_name>
--host <host>
--port <port>
--reloader <reloader>

irc

runs the irc2 module a slim, secure pyborg irc bot

pyborg irc [OPTIONS]

Options

--conf-file <conf_file>

linein

This is a commandline repl for interacting with pyborg locally

pyborg linein [OPTIONS]

Options

--multiplex <multiplex>

mastodon

Run the mastodon mod; run register and login first

pyborg mastodon [OPTIONS] COMMAND [ARGS]...

Options

--base-url <base_url>
--conf-file <conf_file>
--secret-folder <secret_folder>

login

login to your homeserver

pyborg mastodon login [OPTIONS] USERNAME

Options

--password <password>
--cred-file <cred_file>

Arguments

USERNAME

Required argument

register

register your bot’s account on the homeserver

pyborg mastodon register [OPTIONS] BOT_NAME

Options

--cred-file <cred_file>

Arguments

BOT_NAME

Required argument

reddit

Runs the reddit module

pyborg reddit [OPTIONS]

Options

--conf-file <conf_file>

set-log-level

configure mod_http’s log level after launch

use the levels from logging: (DEBUG, INFO, WARNING, ERROR, CRITICAL)

pyborg set-log-level [OPTIONS] LOG_LEVEL

Arguments

LOG_LEVEL

Required argument

tumblr

watch a tumblr tag for posts to respond to

pyborg tumblr [OPTIONS]

Options

--conf-file <conf_file>

twitter

pyborg twitter module

pyborg twitter [OPTIONS]

Options

--conf-file <conf_file>

utils

extra pyborg helper scripts

pyborg utils [OPTIONS] COMMAND [ARGS]...

http

http helper script

pyborg utils http [OPTIONS]

manage-discord

run administrative tasks on the bot

pyborg utils manage-discord [OPTIONS] COMMAND [ARGS]...
i-rm

offers to leave servers one-by-one

pyborg utils manage-discord i-rm [OPTIONS]
info

basic stats, # of users, current nickname, public stuff.

pyborg utils manage-discord info [OPTIONS] SERVER_ID_PARTIAL

Arguments

SERVER_ID_PARTIAL

Required argument

ls

list servers pyborg is on w/ an addressable hash or ID

pyborg utils manage-discord ls [OPTIONS]
rm

leave server matching SERVER_ID_PARTIAL

pyborg utils manage-discord rm [OPTIONS] SERVER_ID_PARTIAL

Arguments

SERVER_ID_PARTIAL

Required argument

systemd

put systemd unit files in current directory

pyborg utils systemd [OPTIONS]

version

output a version summary

pyborg version [OPTIONS]

yeet-config

create example toml configurations in pyborg setting folder

pyborg yeet-config [OPTIONS]