this post was submitted on 02 Feb 2025
10 points (100.0% liked)
Programming
18127 readers
628 users here now
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Rules
- Follow the programming.dev instance rules
- Keep content related to programming in some way
- If you're posting long videos try to add in some form of tldr for those who don't want to watch videos
Wormhole
Follow the wormhole through a path of communities [email protected]
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Store the access token in an environment variable instead of a file. Not sure which language are you using but for my bot I have this Python code to retrieve the token which is stored in the MASTODON_TOKEN environment var.
I think I am storing it in Railway as well as a .env file. I gitignored .env file so it would be hidden Just in case for some reason railwat didn't get what I meant by storing the Mastodon credentials.
The main thing that I'm having trouble with now, is Mastodon GUI. Doesn't let me save what I do, for example, When I go and add the specific scopes of my bot, I hit Save, Mastodon, doesn't save it.
My dad did tell me something about maybe it's a database that's not working correctly When, I guess, a click event or something?
This is all on the mastodon.social instance.