A memo.cash --> twitter.com post bridge
Memo.cash has implemented this natively. This would simply be a way to run this locally and trustlessly.
https://twitter.com/Reset_Jett/status/1161812334144307200 https://memo.cash/post/5224263ac3219c71fcb98b645446623f416934cf4eb7ca2c978fe6cdf1403a19
Python (3.7 recommended) (Download here: https://www.python.org/downloads/)
pip, though that should be included in python (Download here: https://pip.pypa.io/en/stable/installing/)
Clone / download this repo
git clone https://github.com/JettScythe/MemoBirb.git
To do this you will need to create a dev app w/ twitter (https://developer.twitter.com/en/apps/create) - keep in mind the bot will only post statuses. Apply only the needed permissions.
Once the app is created, navigate to the app --> Keys & Tokens.
There you will find an "API Key", "API Secret Key", "Access Token" & "Access Token Secret".
Now go to "credentials.py" in your favourite code editor. There you will find the following:
ACCESS_TOKEN='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
ACCESS_SECRET='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
CONSUMER_KEY='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
CONSUMER_SECRET='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
Replace 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' for each value with the values twitter gave you
Now go to memobirb.py in your favourite code editor - on line 40 you will find query_bitsocket:
query_bitsocket({
"v": 3,
"q": {
"db": ["u"],
"find": {
"in.e.a": "qxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"out.h1": "6d02"
}
},
"r": {
"f": ".[] | .out[] | select(.b0.op? == 106) | .s2"
}
}, bitsocket_handler)
Replace ""qxxxxxxxxxxxxxxxxxxxxxxxxxxx"" on line 45 with your memo.cash cashaddr WITHOUT the 'bitcoincash:' prefix.
save all changes
In your terminal:
Create a Python environment
Move to memobirb folder in terminal and run:
python3 -m venv memobirb
source memobirb/bin/activate
Make sure pip is up-to-date:
pip install --upgrade pip
Make sure requirements are met:
pip install -r requirements.txt
pip install twitter
deploy with
python memobirb.py
Special thanks to the guys in https://t.me/fountainheadcash // https://bitdb.bch.sx/