Skip to content

Latest commit

 

History

History
51 lines (36 loc) · 1.03 KB

README.md

File metadata and controls

51 lines (36 loc) · 1.03 KB

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