Skip to content

BryantD/microtrace

Repository files navigation

microtrace

Micro = microblog (Twitter, Mastodon) and trace = tracery. See, it's easy.

This used to be just my Twitter Blades in the Dark bot but when I got off Twitter I went the rest of the way towards generalizing it. You can find the output from one bot using this at https://botsin.space/@doskvolscores.

The old version of this is available at the branch blades-bot.

Usage

microtrace.py [-h] --grammar GRAMMAR [--maxlen MAXLEN] [--print]
                     [--toot] [--tweet] --config CONFIG

Tracery-based microblogging bot

options:
  -h, --help         show this help message and exit
  --grammar GRAMMAR  JSON grammar
  --maxlen MAXLEN    Maximum message length
  --print            Print
  --toot             Toot
  --tweet            Tweet
  --config CONFIG    Config file

Config

The configuration file is a TOML file, as follows:

[twitter]
consumer_key = "XXX"
consumer_secret = "XXX"
access_token = "XXX"
access_token_secret = "XXX"

[mastodon]
access_token = "XXX"
base_url = "XXX"

If you're not using it for one of the services, you can leave the appropriate section out.

Contributions

About

Microblogging bot for tracery grammars.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages