Archived
1
0
Fork 0
This repository has been archived on 2024-04-26. You can view files and clone it, but cannot push or open issues or pull requests.
akari-bot/core/builtins/utils/__init__.py
2023-07-13 12:26:10 +08:00

34 lines
749 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import os
from config import Config
if not (confirm_command := Config('confirm_command')):
confirm_command = ["", "", "", "yes", "Yes", "YES", "y", "Y"]
if not (command_prefix := Config('command_prefix')):
command_prefix = ['~', ''] # 消息前缀
class EnableDirtyWordCheck:
status = False
class PrivateAssets:
path = os.path.abspath('.')
@classmethod
def set(cls, path):
path = os.path.abspath(path)
if not os.path.exists(path):
os.mkdir(path)
cls.path = path
class Secret:
list = []
@classmethod
def add(cls, secret):
cls.list.append(secret)
__all__ = ["confirm_command", "command_prefix", "EnableDirtyWordCheck", "PrivateAssets", "Secret"]