xtex
23ae1fb5f2
* build(deps): add matrix-nio * build(deps): update requirements.txt for matrix-nio * feat: add example config for matrix * feat: init matrix support * feat: do init sync to avoid receiving old messages * feat: store next sync batch with file * feat: parse matrix message * feat: check moderator permission * feat: redacting message * feat: toMessageChain for m.text and m.image * feat: drop m.notice messages * feat: sending messages * fix: power level fetching * fix: rich reply fallback stripping * style: less log * feat: guess image content type * fix: image upload * feat: sending audio * chore: add todo * chore: add todo * fix: use FinS.result to store room id As the spec, room_id is an opaque identifier, and at least all valid ASCII characters except '/' and ':' can be included in room_id. This means in some servers, '|' may be included in room_id. * fix: print RoomSendError * fix: public rooms with two user are regarded as DM * feat: resolving pm * fix: nio.ErrorResponse * feat: add post test * feat: pm post test * Revert "feat: pm post test" This reverts commit3688213c80
. * Revert "feat: add post test" This reverts commit259fcf54ca
. * feat: create TPM room * feat: send typing notifications * feat: leave empty room * feat: rich reply formatted fallback support * fix: import * fix: include body in formatted rich reply fallbacks * fix: escape line breaks in html * fix: <br/> tag * feat: improve matrix direct messaging * feat: parse m.emote as m.text * fix: command run blockingly * fix: message send error handle * fix: keep DM room * fix: reuse of DM rooms * feat: add error log * docs: add deploy guide for matrix * docs: add matrix to readme * docs: add more warning * style: remove explictly type declartion (poljar/matrix-nio#417) * feat: receive audio message * feat: standard rich-reply fallback for m.emote * chore: add matrix to bug report issues template
65 lines
1.8 KiB
Text
65 lines
1.8 KiB
Text
# https://toml.io/en/v1.0.0
|
||
# REMEMBER: TOML is not like Python. Do not use Python syntax here.
|
||
# Example: Boolean values in TOML must be lowercase.
|
||
# If you don't need some functions, please delete the corresponding keys.
|
||
|
||
[secret]
|
||
db_path = "mysql+pymysql://"
|
||
check_accessKeyId =
|
||
check_accessKeySecret =
|
||
web_render =
|
||
proxy =
|
||
botarcapi_url =
|
||
botarcapi_agent =
|
||
dc_token =
|
||
tg_token =
|
||
matrix_homeserver =
|
||
matrix_user =
|
||
matrix_token =
|
||
kook_token =
|
||
openai_api_key =
|
||
nl2c_model =
|
||
curseforge_api_key =
|
||
exchange_rate_api_key =
|
||
wolfram_alpha_appid =
|
||
|
||
[cfg]
|
||
base_superuser = "QQ|2596322644"
|
||
debug = false
|
||
cache_path = "./cache/"
|
||
command_prefix = ["~", "~"]
|
||
confirm_command = ["是", "对", "對", "yes", "Yes", "YES", "y", "Y"]
|
||
bug_report_url = "https://s.wd-ljt.com/botreportbug"
|
||
bug_report_targets =
|
||
donate_url = "https://afdian.net/@teahouse"
|
||
help_url = "https://bot.teahouse.team"
|
||
issue_url = "https://github.com/Teahouse-Studios/bot/issues/new/choose"
|
||
wiki_whitelist_url = "https://s.wd-ljt.com/botwhitelist"
|
||
rickroll_url = "https://wdf.ink/6OUp"
|
||
web_render_local =
|
||
qq_account = 2314163511
|
||
qq_host = "127.0.0.1:11451"
|
||
qq_invite_join_group_notice = true
|
||
qq_disable_temp_session = false
|
||
qq_enable_listening_self_message = false
|
||
allow_request_private_ip = false
|
||
allow_bot_auto_approve_group_invite = false
|
||
qq_join_group_application_link = "https://github.com/Teahouse-Studios/bot/issues/new?assignees=OasisAkari&labels=New&template=add_new_group.yaml&title=%5BNEW%5D%3A+"
|
||
slower_schedule = false
|
||
enable_dirty_check = true
|
||
enable_urlmanager = true
|
||
enable_tos = false
|
||
enable_analytics = true
|
||
enable_eval = true
|
||
enable_rickroll = true
|
||
coin_limit = 10000
|
||
coin_faceup_rate = 4994
|
||
coin_facedown_rate = 4994
|
||
dice_limit = 100
|
||
dice_roll_limit = 10
|
||
dice_mod_max = 10000
|
||
dice_mod_min = -10000
|
||
dice_output_cnt = 50
|
||
dice_output_len = 200
|
||
dice_detail_cnt = 5
|
||
dice_count_limit = 10
|