misskey-microblogger-demo/.remove_api_keys.py

18 lines
No EOL
408 B
Python

import typing
from src.Config import Config
from src.User.User import User
REMOVED_MESSAGE = "<HIDDEN>"
# Hide API keys from user configs
# Run this before pushing updates to https://git.vlw.se/config/misskey-microblogger-demo
def main():
for username in Config().get_active_users():
user = User(username)
user.config["key"] = REMOVED_MESSAGE
user.save_config()
if __name__ == "__main__":
main()