This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Documentation | |
DOCUMENTATION_MODE = "DOCUMENTATION" in sys.argv | |
if DOCUMENTATION_MODE: | |
doc_titles: Dict[str, list] = {} | |
def doc_category(cat: str, manual: Optional[bool] = False, path: Optional[str]=None): | |
""" | |
Used for marking under which category this should | |
be put when auto generating documentation. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import annotations | |
from contextlib import suppress | |
from enum import EnumMeta | |
import inspect | |
import os | |
import sys | |
import re | |
from typing import List | |
# Set current working directory to scripts folder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import framework as fw | |
servers = [ | |
fw.GUILD( | |
guild_id=32313213123123, | |
messages_to_send=[ | |
fw.TextMESSAGE(start_period=None, end_period=15, data="Hello World", channel_ids=[2313231233,132131231], mode="send", start_now=True), | |
fw.VoiceMESSAGE(start_period=None, end_period=30, data=fw.AUDIO("path_to_audio"), channel_ids=[23123123,123132131223], start_now=True) | |
] |