Update README.md formatting
Add test for getTweetTextWithFullURLs and getUntweetedArticles
Remove redundant dependencies
Atomitter is a Twitter bot that syncs an Atom/RSS/JSON feed to a twitter account.
go
Just build using standard the golang toolchain:
git clone https://git.sr.ht/~thecashewtrader/atomitter
cd atomitter
go build .
Obtain the config file and edit it:
mkdir -p ~/.config/atomitter
wget https://git.sr.ht/~thecashewtrader/atomitter/blob/main/config.example.yaml -O ~/.config/atomitter/config.yaml
Then, simply run atomitter
to sync.
The config file is stored in $XDG_CONFIG_HOME/atomitter/config.yaml
.
consumer_key
: Your Twitter Consumer Keyconsumer_secret
: Your Twitter Consumer Secrettoken
: Your Twitter Tokentoken_secret
: Your Twitter Token Secretfeed_url
: Link to the feed to syncusername
: Twitter username of the account you wish to sync toformat
: String describing how to format your tweetAlso see config.example.yaml.
You can use cronjobs to automatically sync your feed after a certain time. For example, to sync your feed once every day:
0 0 * * * atomitter
Currently, Atomitter doesn't work properly for Twitter accounts with more than 200 tweets.