mirror of
https://codeberg.org/vlw/misskey-microblogger.git
synced 2025-09-13 19:03:41 +02:00
This PR adds scripts for generating random users, and generating random relationships between these users. This PR also refactors config file loading and writing into a class. Reviewed-on: https://codeberg.org/vlw/misskey-microblogger/pulls/1 Co-authored-by: Victor Westerlund <victor.vesterlund@gmail.com> Co-committed-by: Victor Westerlund <victor.vesterlund@gmail.com>
19 lines
393 B
Python
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()
|