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/config/config.toml.example

66 lines
1.8 KiB
Text
Raw Normal View History

2023-07-14 17:02:01 +00:00
# https://toml.io/en/v1.0.0
2023-07-15 09:35:54 +00:00
# REMEMBER: TOML is not like Python. Do not use Python syntax here.
2023-07-14 17:02:01 +00:00
# Example: Boolean values in TOML must be lowercase.
2023-07-17 03:49:41 +00:00
# If you don't need some functions, please delete the corresponding keys.
2023-07-14 17:02:01 +00:00
[secret]
db_path = "mysql+pymysql://"
2023-07-05 16:23:07 +00:00
check_accessKeyId =
check_accessKeySecret =
web_render =
2023-07-29 13:30:26 +00:00
proxy =
botarcapi_url =
botarcapi_agent =
dc_token =
tg_token =
feat: partial matrix support (#680) * 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 commit 3688213c802562b7f27ecf8fe88269d911036d60. * Revert "feat: add post test" This reverts commit 259fcf54ca92a6d20ada99ddcda7fcc8ded63675. * 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
2023-07-30 09:41:01 +00:00
matrix_homeserver =
matrix_user =
matrix_token =
2023-07-07 17:30:31 +00:00
kook_token =
openai_api_key =
nl2c_model =
curseforge_api_key =
exchange_rate_api_key =
2023-07-23 08:22:30 +00:00
wolfram_alpha_appid =
[cfg]
base_superuser = "QQ|2596322644"
debug = false
cache_path = "./cache/"
2023-07-04 16:52:00 +00:00
command_prefix = ["~", ""]
confirm_command = ["是", "对", "對", "yes", "Yes", "YES", "y", "Y"]
bug_report_url = "https://s.wd-ljt.com/botreportbug"
2023-07-23 08:22:30 +00:00
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"
2023-07-14 07:59:01 +00:00
rickroll_url = "https://wdf.ink/6OUp"
2023-07-13 04:26:10 +00:00
web_render_local =
qq_account = 2314163511
2023-07-07 17:30:31 +00:00
qq_host = "127.0.0.1:11451"
2023-07-23 08:22:30 +00:00
qq_invite_join_group_notice = true
qq_disable_temp_session = false
qq_enable_listening_self_message = false
allow_request_private_ip = false
2023-07-29 16:26:34 +00:00
allow_bot_auto_approve_group_invite = false
2023-07-29 16:24:35 +00:00
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