(cls, prefix: str, value: TRIE_VALUE)
| 79 | |
| 80 | @classmethod |
| 81 | def add_prefix(cls, prefix: str, value: TRIE_VALUE) -> None: |
| 82 | if prefix in cls.prefix: |
| 83 | logger.warning(f'Duplicated prefix rule "{prefix}"') |
| 84 | return |
| 85 | cls.prefix[prefix] = value |
| 86 | |
| 87 | @classmethod |
| 88 | def get_value(cls, bot: Bot, event: Event, state: T_State) -> CMD_RESULT: |
no outgoing calls