python_meme_bot/effects/__init__.py (view raw)
1
2from typing import Callable, Dict, Tuple
3from .functions import ttbt_effect, bt_effect, splash_effect, wot_effect, text_effect
4from .checks import ttbt_check, tt_check, splash_check, wot_check
5
6HandlerTuple = Tuple[Callable, Callable]
7
8effectsDict: Dict[str, HandlerTuple] = {
9 # "effect_name": (effect_check, effect_fn)
10 "ttbt": (ttbt_check, ttbt_effect),
11 "tt": (tt_check, ttbt_effect),
12 "bt": (tt_check, bt_effect),
13 "splash": (splash_check, splash_effect),
14 "wot": (wot_check, wot_effect),
15 "text": (wot_check, text_effect),
16}