nelson-social / bots

Post Whitewater weather conditions and Avalance Info to https://nelson.social
0 stars 0 forks source link

Configure secret tokens for two bots #4

Closed keeth closed 1 year ago

keeth commented 1 year ago

I refactored the code to support multiple bots:

MASTODON_TOKEN=${{ secrets.WHITEWATER_MASTODON_TOKEN }} npm run post-status whitewater
MASTODON_TOKEN=${{ secrets.AVALANCHE_MASTODON_TOKEN }} npm run post-status avalanche

I think we just need rename the existing secret and add a second one for the avalanche bot.

Hope this makes sense, open to feedback.

@mattwynne you OK creating a second bot account on nelson.social?

mattwynne commented 1 year ago

ON IT!

mattwynne commented 1 year ago

I am happy to share the credentials for logging in as the bots to nelson.socal with you @keeth but they still use my email address. We could consider getting Till to set up a bots@nelson.social group email or something, probably premature for that right now though?

mattwynne commented 1 year ago

Done! It works!

https://github.com/nelson-social/whitewater-bot/actions/runs/3825372295/jobs/6508465826 https://nelson.social/@AvalancheBot/109621959870049922 https://nelson.social/@WhitewaterBot/109621959472233030

I'm gonna make make some tweaks to the workflow and set up the scheduling.