-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #47 from kcn3388/main
fix missing translate api config
- Loading branch information
Showing
1 changed file
with
8 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,16 @@ | ||
from typing import List | ||
from meme_generator.config import meme_config | ||
|
||
meme_command_start: str = "" # 命令前缀 | ||
memes_prompt_params_error: bool = True # 是否在图片/文字数量不符或参数解析错误时提示(若没有设置命令前缀不建议开启,否则极易误触发) | ||
memes_check_resources_on_startup: bool = True # 是否在启动时检查 `meme-generator` 资源 | ||
memes_use_sender_when_no_image: bool = True # 在表情需要至少1张图且没有输入图片时,是否使用发送者的头像(谨慎使用,容易误触发) | ||
memes_use_default_when_no_text: bool = True # 在表情需要至少1段文字且没有输入文字时,是否使用默认文字(谨慎使用,容易误触发) | ||
meme_disabled_list: List[str] = [] # 禁用的表情包列表,填写表情的 `key` | ||
|
||
baidu_trans_appid: str = "" | ||
baidu_trans_apikey: str = "" | ||
|
||
meme_config.translate.baidu_trans_appid = baidu_trans_appid | ||
meme_config.translate.baidu_trans_apikey = baidu_trans_apikey | ||
meme_config.dump() |