2021-10-14 15:29:45 +00:00
|
|
|
|
import os
|
2022-01-14 09:51:17 +00:00
|
|
|
|
|
2021-07-30 18:06:04 +00:00
|
|
|
|
confirm_command = ["是", "对", '确定', '是吧', '大概是',
|
2023-06-09 10:39:39 +00:00
|
|
|
|
'也许', '可能', '对的', '是的', '是呢', '对呢', '嗯', '嗯呢', '对啊', '是啊',
|
|
|
|
|
'吼啊', '资瓷', '是呗', '也许吧', '对呗', '应该', '是呢', '是哦', '没错',
|
|
|
|
|
"對", '確定', '對的', '對啊', '對呢', '對唄', '資瓷', '是唄', '也許', '也許吧', '應該', '沒錯',
|
|
|
|
|
'yes', 'y', 'yeah', 'yep', 'ok', 'okay', 'YES', 'Y', 'OK', 'Yes', 'Yeah', 'Yep', 'Okay',
|
2023-06-02 16:53:02 +00:00
|
|
|
|
'⭐', '√']
|
2021-08-19 12:17:48 +00:00
|
|
|
|
|
2021-08-23 12:44:31 +00:00
|
|
|
|
command_prefix = ['~', '~'] # 消息前缀
|
|
|
|
|
|
2021-10-11 14:45:28 +00:00
|
|
|
|
|
|
|
|
|
class EnableDirtyWordCheck:
|
|
|
|
|
status = False
|
|
|
|
|
|
|
|
|
|
|
2021-10-14 15:29:45 +00:00
|
|
|
|
class PrivateAssets:
|
|
|
|
|
path = os.path.abspath('.')
|
|
|
|
|
|
2023-06-09 10:39:39 +00:00
|
|
|
|
@classmethod
|
|
|
|
|
def set(cls, path):
|
2021-10-14 15:29:45 +00:00
|
|
|
|
path = os.path.abspath(path)
|
|
|
|
|
if not os.path.exists(path):
|
|
|
|
|
os.mkdir(path)
|
2023-06-09 10:39:39 +00:00
|
|
|
|
cls.path = path
|
2021-10-14 15:29:45 +00:00
|
|
|
|
|
|
|
|
|
|
2021-12-31 14:44:34 +00:00
|
|
|
|
class Secret:
|
|
|
|
|
list = []
|
|
|
|
|
|
2023-06-09 10:39:39 +00:00
|
|
|
|
@classmethod
|
|
|
|
|
def add(cls, secret):
|
|
|
|
|
cls.list.append(secret)
|
2021-12-31 14:44:34 +00:00
|
|
|
|
|
|
|
|
|
|
2022-07-03 06:05:40 +00:00
|
|
|
|
__all__ = ["confirm_command", "command_prefix", "EnableDirtyWordCheck", "PrivateAssets", "Secret"]
|