forked from vlw/misskey-microblogger
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>
52 lines
No EOL
864 B
Python
52 lines
No EOL
864 B
Python
from enum import Enum
|
|
|
|
class Errors(Enum):
|
|
WORD_LIST_TOO_LONG = 0
|
|
WORD_LIST_HAS_DUPLICATES = 1
|
|
|
|
class Ansi(Enum):
|
|
RED = "\033[31m"
|
|
GREEN = "\033[32m"
|
|
WHITE = "\033[37m"
|
|
RESET = "\033[0m"
|
|
|
|
# //
|
|
|
|
class RelationshipType(Enum):
|
|
PARTNER = "partner"
|
|
FRIEND = "friends"
|
|
NEUTRAL = "neutral"
|
|
ENEMY = "enemies"
|
|
|
|
class Intent(Enum):
|
|
POST = "posts"
|
|
REPLY = "replies"
|
|
REACT = "reacts"
|
|
|
|
class Dictionaries(Enum):
|
|
EMOJI = "emoji"
|
|
COMMON = "common"
|
|
CONTROL = "control"
|
|
|
|
class CommonWords(Enum):
|
|
GLUE = "glue"
|
|
WORD = "words"
|
|
|
|
class ControlWords(Enum):
|
|
TONE = "tone"
|
|
MOOD = "mood"
|
|
TYPE = "type"
|
|
|
|
class NoteTones(Enum):
|
|
FORMAL = "formal"
|
|
INFORMAL = "informal"
|
|
|
|
class NoteMoods(Enum):
|
|
FUNNY = "funny"
|
|
DECENT = "decent"
|
|
ANNOYED = "annoyed"
|
|
|
|
class NoteTypes(Enum):
|
|
QUESTION = "question"
|
|
EXAGGERATED = "exaggerated"
|
|
STATEMENT = "statement" |