- get a database, register a number and upload it
- git commit
- add your code to template.py and rename it
- replace lines 22 and 23 in the dockerfile with your stuff
- if you need any dependencies, add them to pyproject.toml and run
poetry lock
- create a fly app and replace/edit fly.toml
if you fly launch
, fly will prompt you to create a PostgreSQL database. if you do, you'll get a password. the fly app should "just work", but you need to connect to it locally to upload a datastore.
grab a number, currently at https://signal.me/#p/+12185009004
to save the captcha, you can run
git clone https://github.com/forestcontact/message-in-a-bottle
cd message-in-a-bottle
cp 00-signal-captcha.desktop /usr/share/applications/
cp save_signal_captcha /opt
sudo update-desktop-database
then go to https://signalcaptchas.org/registration/generate.html, solve the captcha, then go back and
signal-cli --config . --username <number> register --captcha $(cat /tmp/captcha)`
signal-cli --config . --username <number> verify <code>
poetry install
flyctl proxy 5432:15432 -a <fly app name for db> &
DATABASE_URL=postgres://postgres:<password>@localhost:15432 poetry run python -m forest.datastore upload --path . "testbot9000"
- clone https://github.com/mobilecoinofficial/full-service-cert-pinning and run ./create_app.sh
- append the contents of
<full service app name>.client_secrets
todev_secrets
and runcat dev_secrets | fly secrets import
- add
FULL_SERVICE_URL=https://<full service app name>.fly.dev/wallet
to fly.toml under [env] - message your bot
fsr create_account name mybot
(make sure you've set ADMIN= in secrets for this to work) - message your bot
eval return mc_util.b58_wrapper_to_b64_public_address(await self.mobster.get_my_address())
to get an address - message your bot
set_profile MyBot McMyBotFace <address from the last message>
(you can also attach a picture for the profile picture) - test sending a payment