tweet

command module
v0.0.0-...-e5993db Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

README

Requirements

  1. Index server: https://github.com/memocash/index
  2. Twitter API key: https://developer.twitter.com/en/docs/basics/authentication/guides/access-tokens.html

Example Config

Put in ./config.yaml:

BOT_SEED: hotel obvious agent lecture gadget evil jealous keen fragile before damp clarify
TWITTER_CREDS:
  USER_NAME: TwitterUser
  PASSWORD: password1234

Build

go build

Transfer Tweet History

Must fund address first

# ./tweet transfertweets <private_key> <twitter_handle>
./tweet transfertweets KyE5L74NaxjFvSdgLthaozgsudui1KVCj3DnXkZfcMxaR4uXLsE8 elonmusk

Listen for New Tweets

# ./tweet getnewtweets <private_key> <twitter_handle>
./tweet getnewtweets KyE5L74NaxjFvSdgLthaozgsudui1KVCj3DnXkZfcMxaR4uXLsE8 elonmusk

Mirror Bot

./tweet bot run

Then send memos with at least 5,000 sats in funds to bot address to control bot. You'll need more if you use the --history flag. Some examples:

CREATE TWITTER elonmusk
CREATE TWITTER elonmusk --history

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
bot
cmd
bot
db
obj

Jump to

Keyboard shortcuts

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