This is Nano tip bot for post-Musk Twitter/X designed around the pitiful API availability.
To use the tip bot you can head to https://bot.thenano.wiki to link your X account and deposit some Nano.
To make a tip simply reply to a tweet and mention @NanoTipperBot using the command !tip [amount]
You cannot specify the recipient because it would put such a massive strain on X's server to lookup the user ID that you would need to pay hundreds of dollars per month.
Note that this bot doesn't work on communites including The Nano Community because of API limitations.
- Setup Pippin Nano Wallet.
- Register an automated X bot account and developer account.
- Host the frontend https://github.com/dylan1951/nano-tipper-bot-svelte
- Ensure the frontend and backend share the same domain and are secured with HTTPS.
- Register the X OAuth callback url in the developer portal.
- Set up all environment variables specified in .env.example
- Start a chrome browser in remote debugging mode and login to the bot account.
npm install
npx prisma db push
npm run patch
npm run start
- Enter the websockets CDP url for your browser.
Feel free to offer any suggestions or feature requests in the issues page.