atomitter

command module
v0.0.0-...-1b49813 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2022 License: AGPL-3.0 Imports: 11 Imported by: 0

README

Introduction

Atomitter

Atomitter is a Twitter bot that syncs an Atom/RSS/JSON feed to a twitter account.

Installation

Dependencies

  • go

Building

Just build using standard the golang toolchain:

git clone https://git.sr.ht/~thecashewtrader/atomitter
cd atomitter
go build .

Usage

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.

Configuration

The config file is stored in $XDG_CONFIG_HOME/atomitter/config.yaml.

  • consumer_key: Your Twitter Consumer Key
  • consumer_secret: Your Twitter Consumer Secret
  • token: Your Twitter Token
  • token_secret: Your Twitter Token Secret
  • feed_url: Link to the feed to sync
  • username: Twitter username of the account you wish to sync to
  • format: String describing how to format your tweet

Also see config.example.yaml.

Auto Sync

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

Limitations

Currently, Atomitter doesn't work properly for Twitter accounts with more than 200 tweets.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL