repositorypackage
0.0.0-20240109235257-e5993db4830a
Repository: https://github.com/memocash/tweet.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# README
Requirements
- Index server: https://github.com/memocash/index
- 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