misskey-microblogger/run.py

19 lines
393 B
Python

import typing
import random
import json
from src.Config import Config
from src.Poster import Poster
def main():
config = Config()
# Don't do ANYTHING this time if the roll against the global activity percentage failed
if (not config.get_global_activity_roll()):
return False
for username in config.get_active_users():
Poster(username).autorun()
if __name__ == "__main__":
main()