From 07e045a97ec99a55637d327e1d34cd932863d0b2 Mon Sep 17 00:00:00 2001 From: snowykami Date: Fri, 6 Sep 2024 20:43:24 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20docs=20from=20@=20LiteyukiStud?= =?UTF-8?q?io/LiteyukiBot@dad9482d7a203fd28488dab5922033a78aa58a02=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 404.html | 4 +- assets/{app.DOXQtjkq.js => app.DbUbZo6b.js} | 2 +- assets/chunks/@localSearchIndexen.CT3W_mh6.js | 1 - assets/chunks/@localSearchIndexen.DRcj1hkO.js | 1 + .../chunks/@localSearchIndexroot.Bun9D1Sr.js | 1 - .../chunks/@localSearchIndexroot.J2Co3lhu.js | 1 + ...BzBe6oi1.js => ContributorBar.DSe5HslA.js} | 2 +- ...qBXiSn.js => VPLocalSearchBox.C-L9VQon.js} | 2 +- .../{theme.pz_Nliu9.js => theme.CVtOlEkl.js} | 4 +- ...bE.js => dev_api_bot_index.md.CygawBD3.js} | 36 ++++++++-------- ... => dev_api_bot_index.md.CygawBD3.lean.js} | 2 +- assets/dev_api_bot_lifespan.md.DBf_PC3G.js | 1 + ... dev_api_bot_lifespan.md.DBf_PC3G.lean.js} | 2 +- assets/dev_api_bot_lifespan.md.cXpYfBFa.js | 1 - ...js => dev_api_comm_channel.md.B_Q8RkLg.js} | 26 ++++++------ ... dev_api_comm_channel.md.B_Q8RkLg.lean.js} | 2 +- assets/dev_api_comm_event.md.0WEOopJJ.js | 1 - assets/dev_api_comm_event.md.Dkw9vL8j.js | 1 + ...=> dev_api_comm_event.md.Dkw9vL8j.lean.js} | 2 +- assets/dev_api_comm_rpc.md.CATS97wW.js | 1 - assets/dev_api_comm_rpc.md.ZF5gW_b7.js | 1 + ...s => dev_api_comm_rpc.md.ZF5gW_b7.lean.js} | 2 +- .../dev_api_comm_socks_channel.md.D0z-3box.js | 1 + ...pi_comm_socks_channel.md.D0z-3box.lean.js} | 2 +- .../dev_api_comm_socks_channel.md.DowR8ySw.js | 1 - ...js => dev_api_comm_storage.md.DlCQ-bAW.js} | 30 ++++++------- ... dev_api_comm_storage.md.DlCQ-bAW.lean.js} | 2 +- ...WZGxB.js => dev_api_config.md.BWciqFj4.js} | 16 +++---- ....js => dev_api_config.md.BWciqFj4.lean.js} | 2 +- ...js => dev_api_core_manager.md.B3hq0Rpu.js} | 18 ++++---- ... dev_api_core_manager.md.B3hq0Rpu.lean.js} | 2 +- ...js => dev_api_dev_observer.md.DXfnQgLO.js} | 16 +++---- ... dev_api_dev_observer.md.DXfnQgLO.lean.js} | 2 +- ...x.js => dev_api_dev_plugin.md.Cops7KZu.js} | 4 +- ...=> dev_api_dev_plugin.md.Cops7KZu.lean.js} | 2 +- ...CJtELCL9.js => dev_api_log.md.B0RBm2Ui.js} | 6 +-- ...ean.js => dev_api_log.md.B0RBm2Ui.lean.js} | 2 +- ...s => dev_api_message_event.md.DyDwsc6d.js} | 6 +-- ...dev_api_message_event.md.DyDwsc6d.lean.js} | 2 +- ...=> dev_api_message_matcher.md.DVuQfqJD.js} | 8 ++-- ...v_api_message_matcher.md.DVuQfqJD.lean.js} | 2 +- ...o.js => dev_api_message_on.md.CApMkdr1.js} | 8 ++-- ...=> dev_api_message_on.md.CApMkdr1.lean.js} | 2 +- assets/dev_api_message_rule.md.D55CYU4N.js | 1 - assets/dev_api_message_rule.md.DtsqYM0_.js | 1 + ... dev_api_message_rule.md.DtsqYM0_.lean.js} | 2 +- ...hZ0jbQ.js => dev_api_mkdoc.md.BQNdAtbl.js} | 14 +++---- ...n.js => dev_api_mkdoc.md.BQNdAtbl.lean.js} | 2 +- assets/dev_api_plugin_index.md.CcmFWY5K.js | 1 - assets/dev_api_plugin_index.md.DyFjlTCa.js | 1 + ... dev_api_plugin_index.md.DyFjlTCa.lean.js} | 2 +- ....js => dev_api_plugin_load.md.CqVkk0P5.js} | 6 +-- ...> dev_api_plugin_load.md.CqVkk0P5.lean.js} | 2 +- ...js => dev_api_plugin_model.md.BmVr2u82.js} | 2 +- ... dev_api_plugin_model.md.BmVr2u82.lean.js} | 2 +- .../dev_api_plugins_liteecho.md.a-DHFJ66.js | 1 - .../dev_api_plugins_liteecho.md.sryx6SuS.js | 1 + ..._api_plugins_liteecho.md.sryx6SuS.lean.js} | 2 +- ...plugins_plugin_loader_index.md.DVvGETw-.js | 1 + ...s_plugin_loader_index.md.DVvGETw-.lean.js} | 2 +- ...plugins_plugin_loader_index.md.VShWijpV.js | 1 - ...CrA2Tn.js => dev_api_utils.md.wryzX8vr.js} | 12 +++--- ...n.js => dev_api_utils.md.wryzX8vr.lean.js} | 2 +- ...d.CeOBWODY.js => dev_guide.md.S84qIxk3.js} | 2 +- ....lean.js => dev_guide.md.S84qIxk3.lean.js} | 2 +- ...js => en_dev_api_bot_index.md.C4r8HhEl.js} | 36 ++++++++-------- ... en_dev_api_bot_index.md.C4r8HhEl.lean.js} | 2 +- assets/en_dev_api_bot_lifespan.md.B-nofctY.js | 1 + ..._dev_api_bot_lifespan.md.B-nofctY.lean.js} | 2 +- assets/en_dev_api_bot_lifespan.md.B5dt163D.js | 1 - ...=> en_dev_api_comm_channel.md.VoA9irwY.js} | 26 ++++++------ ..._dev_api_comm_channel.md.VoA9irwY.lean.js} | 2 +- assets/en_dev_api_comm_event.md.Crpo-bJ4.js | 1 + ...en_dev_api_comm_event.md.Crpo-bJ4.lean.js} | 2 +- assets/en_dev_api_comm_event.md.DVEQ_riJ.js | 1 - assets/en_dev_api_comm_rpc.md.CY-ENZCj.js | 1 - assets/en_dev_api_comm_rpc.md.DKVp72_P.js | 1 + ...> en_dev_api_comm_rpc.md.DKVp72_P.lean.js} | 2 +- ..._dev_api_comm_socks_channel.md.B8_s4Hv_.js | 1 + ...pi_comm_socks_channel.md.B8_s4Hv_.lean.js} | 2 +- ..._dev_api_comm_socks_channel.md.CndQIApl.js | 1 - ...=> en_dev_api_comm_storage.md.WX6gT40z.js} | 30 ++++++------- ..._dev_api_comm_storage.md.WX6gT40z.lean.js} | 2 +- ...Cl.js => en_dev_api_config.md.CRNFMcJd.js} | 16 +++---- ... => en_dev_api_config.md.CRNFMcJd.lean.js} | 2 +- ...=> en_dev_api_core_manager.md.D7QE1GyX.js} | 18 ++++---- ..._dev_api_core_manager.md.D7QE1GyX.lean.js} | 2 +- ...=> en_dev_api_dev_observer.md.DAh-d3XU.js} | 16 +++---- ..._dev_api_dev_observer.md.DAh-d3XU.lean.js} | 2 +- ...s => en_dev_api_dev_plugin.md.ByOqvpeD.js} | 4 +- ...en_dev_api_dev_plugin.md.ByOqvpeD.lean.js} | 2 +- ...xjPic.js => en_dev_api_log.md.t5U3-0Tg.js} | 6 +-- ....js => en_dev_api_log.md.t5U3-0Tg.lean.js} | 2 +- ...> en_dev_api_message_event.md.C6I96y2L.js} | 6 +-- ...dev_api_message_event.md.C6I96y2L.lean.js} | 2 +- ...en_dev_api_message_matcher.md.CtCEbUVJ.js} | 8 ++-- ...v_api_message_matcher.md.CtCEbUVJ.lean.js} | 2 +- ...s => en_dev_api_message_on.md.DOPTBR4O.js} | 8 ++-- ...en_dev_api_message_on.md.DOPTBR4O.lean.js} | 2 +- assets/en_dev_api_message_rule.md.BBaFECzV.js | 1 + ..._dev_api_message_rule.md.BBaFECzV.lean.js} | 2 +- assets/en_dev_api_message_rule.md.v7qMjTeZ.js | 1 - ...5pU.js => en_dev_api_mkdoc.md.B0odpxJC.js} | 14 +++---- ...s => en_dev_api_mkdoc.md.B0odpxJC.lean.js} | 2 +- assets/en_dev_api_plugin_index.md.BlDLlzQ8.js | 1 - assets/en_dev_api_plugin_index.md.ibr3u-4e.js | 1 + ..._dev_api_plugin_index.md.ibr3u-4e.lean.js} | 2 +- ... => en_dev_api_plugin_load.md.BqElTQmm.js} | 6 +-- ...n_dev_api_plugin_load.md.BqElTQmm.lean.js} | 2 +- ...=> en_dev_api_plugin_model.md.C8mVVzkp.js} | 2 +- ..._dev_api_plugin_model.md.C8mVVzkp.lean.js} | 2 +- ...en_dev_api_plugins_liteecho.md.BkpA_Gke.js | 1 + ..._api_plugins_liteecho.md.BkpA_Gke.lean.js} | 2 +- ...en_dev_api_plugins_liteecho.md.Bq_UeUyc.js | 1 - ...plugins_plugin_loader_index.md.Dyg-8Oyz.js | 1 - ...plugins_plugin_loader_index.md.cG7vDNwD.js | 1 + ...s_plugin_loader_index.md.cG7vDNwD.lean.js} | 2 +- ...DZV.js => en_dev_api_utils.md.DKuaapxu.js} | 12 +++--- ...s => en_dev_api_utils.md.DKuaapxu.lean.js} | 2 +- ...76-pPPo.js => en_dev_guide.md.DMm2-_b5.js} | 2 +- ...an.js => en_dev_guide.md.DMm2-_b5.lean.js} | 2 +- deploy/config.html | 6 +-- deploy/fandq.html | 6 +-- deploy/install.html | 6 +-- dev/api/bot/index.html | 42 +++++++++---------- dev/api/bot/lifespan.html | 36 ++++++++-------- dev/api/comm/channel.html | 32 +++++++------- dev/api/comm/event.html | 10 ++--- dev/api/comm/index.html | 6 +-- dev/api/comm/rpc.html | 12 +++--- dev/api/comm/socks_channel.html | 16 +++---- dev/api/comm/storage.html | 36 ++++++++-------- dev/api/config.html | 22 +++++----- dev/api/core/index.html | 6 +-- dev/api/core/manager.html | 24 +++++------ dev/api/dev/index.html | 6 +-- dev/api/dev/observer.html | 22 +++++----- dev/api/dev/plugin.html | 10 ++--- dev/api/exception.html | 6 +-- dev/api/index.html | 6 +-- dev/api/log.html | 12 +++--- dev/api/message/event.html | 12 +++--- dev/api/message/index.html | 6 +-- dev/api/message/matcher.html | 14 +++---- dev/api/message/on.html | 14 +++---- dev/api/message/rule.html | 20 ++++----- dev/api/message/session.html | 6 +-- dev/api/mkdoc.html | 20 ++++----- dev/api/plugin/index.html | 10 ++--- dev/api/plugin/load.html | 14 +++---- dev/api/plugin/manager.html | 6 +-- dev/api/plugin/model.html | 10 ++--- dev/api/plugins/index.html | 6 +-- dev/api/plugins/liteecho.html | 10 ++--- dev/api/plugins/plugin_loader/index.html | 10 ++--- dev/api/utils.html | 18 ++++---- dev/comm.html | 6 +-- dev/guide.html | 10 ++--- dev/lyfunc.html | 6 +-- dev/plugin.html | 6 +-- dev/resource.html | 6 +-- en/deploy/config.html | 6 +-- en/deploy/fandq.html | 6 +-- en/deploy/install.html | 6 +-- en/dev/api/bot/index.html | 42 +++++++++---------- en/dev/api/bot/lifespan.html | 36 ++++++++-------- en/dev/api/comm/channel.html | 32 +++++++------- en/dev/api/comm/event.html | 10 ++--- en/dev/api/comm/index.html | 6 +-- en/dev/api/comm/rpc.html | 12 +++--- en/dev/api/comm/socks_channel.html | 16 +++---- en/dev/api/comm/storage.html | 36 ++++++++-------- en/dev/api/config.html | 22 +++++----- en/dev/api/core/index.html | 6 +-- en/dev/api/core/manager.html | 24 +++++------ en/dev/api/dev/index.html | 6 +-- en/dev/api/dev/observer.html | 22 +++++----- en/dev/api/dev/plugin.html | 10 ++--- en/dev/api/exception.html | 6 +-- en/dev/api/index.html | 6 +-- en/dev/api/log.html | 12 +++--- en/dev/api/message/event.html | 12 +++--- en/dev/api/message/index.html | 6 +-- en/dev/api/message/matcher.html | 14 +++---- en/dev/api/message/on.html | 14 +++---- en/dev/api/message/rule.html | 20 ++++----- en/dev/api/message/session.html | 6 +-- en/dev/api/mkdoc.html | 20 ++++----- en/dev/api/plugin/index.html | 10 ++--- en/dev/api/plugin/load.html | 14 +++---- en/dev/api/plugin/manager.html | 6 +-- en/dev/api/plugin/model.html | 10 ++--- en/dev/api/plugins/index.html | 6 +-- en/dev/api/plugins/liteecho.html | 10 ++--- en/dev/api/plugins/plugin_loader/index.html | 10 ++--- en/dev/api/utils.html | 18 ++++---- en/dev/comm.html | 6 +-- en/dev/guide.html | 10 ++--- en/dev/lyfunc.html | 6 +-- en/dev/plugin.html | 6 +-- en/dev/resource.html | 6 +-- en/index.html | 6 +-- en/store/plugin.html | 6 +-- en/store/resource.html | 6 +-- en/usage/agreement.html | 6 +-- en/usage/basic.html | 6 +-- en/usage/extra.html | 6 +-- hashmap.json | 2 +- index.html | 6 +-- store/plugin.html | 6 +-- store/resource.html | 6 +-- usage/agreement.html | 6 +-- usage/basic.html | 6 +-- usage/extra.html | 6 +-- 214 files changed, 852 insertions(+), 852 deletions(-) rename assets/{app.DOXQtjkq.js => app.DbUbZo6b.js} (95%) delete mode 100644 assets/chunks/@localSearchIndexen.CT3W_mh6.js create mode 100644 assets/chunks/@localSearchIndexen.DRcj1hkO.js delete mode 100644 assets/chunks/@localSearchIndexroot.Bun9D1Sr.js create mode 100644 assets/chunks/@localSearchIndexroot.J2Co3lhu.js rename assets/chunks/{ContributorBar.BzBe6oi1.js => ContributorBar.DSe5HslA.js} (88%) rename assets/chunks/{VPLocalSearchBox.C7qBXiSn.js => VPLocalSearchBox.C-L9VQon.js} (99%) rename assets/chunks/{theme.pz_Nliu9.js => theme.CVtOlEkl.js} (99%) rename assets/{dev_api_bot_index.md.DNY8cUbE.js => dev_api_bot_index.md.CygawBD3.js} (56%) rename assets/{dev_api_bot_index.md.DNY8cUbE.lean.js => dev_api_bot_index.md.CygawBD3.lean.js} (68%) create mode 100644 assets/dev_api_bot_lifespan.md.DBf_PC3G.js rename assets/{dev_api_bot_lifespan.md.cXpYfBFa.lean.js => dev_api_bot_lifespan.md.DBf_PC3G.lean.js} (86%) delete mode 100644 assets/dev_api_bot_lifespan.md.cXpYfBFa.js rename assets/{dev_api_comm_channel.md.Rby8KuoW.js => dev_api_comm_channel.md.B_Q8RkLg.js} (68%) rename assets/{dev_api_comm_channel.md.Rby8KuoW.lean.js => dev_api_comm_channel.md.B_Q8RkLg.lean.js} (86%) delete mode 100644 assets/dev_api_comm_event.md.0WEOopJJ.js create mode 100644 assets/dev_api_comm_event.md.Dkw9vL8j.js rename assets/{dev_api_comm_event.md.0WEOopJJ.lean.js => dev_api_comm_event.md.Dkw9vL8j.lean.js} (86%) delete mode 100644 assets/dev_api_comm_rpc.md.CATS97wW.js create mode 100644 assets/dev_api_comm_rpc.md.ZF5gW_b7.js rename assets/{dev_api_comm_rpc.md.CATS97wW.lean.js => dev_api_comm_rpc.md.ZF5gW_b7.lean.js} (70%) create mode 100644 assets/dev_api_comm_socks_channel.md.D0z-3box.js rename assets/{dev_api_comm_socks_channel.md.DowR8ySw.lean.js => dev_api_comm_socks_channel.md.D0z-3box.lean.js} (87%) delete mode 100644 assets/dev_api_comm_socks_channel.md.DowR8ySw.js rename assets/{dev_api_comm_storage.md.BTq8RCp9.js => dev_api_comm_storage.md.DlCQ-bAW.js} (64%) rename assets/{dev_api_comm_storage.md.BTq8RCp9.lean.js => dev_api_comm_storage.md.DlCQ-bAW.lean.js} (73%) rename assets/{dev_api_config.md.DBrWZGxB.js => dev_api_config.md.BWciqFj4.js} (64%) rename assets/{dev_api_config.md.DBrWZGxB.lean.js => dev_api_config.md.BWciqFj4.lean.js} (75%) rename assets/{dev_api_core_manager.md.CEfbZ5pK.js => dev_api_core_manager.md.B3hq0Rpu.js} (64%) rename assets/{dev_api_core_manager.md.CEfbZ5pK.lean.js => dev_api_core_manager.md.B3hq0Rpu.lean.js} (86%) rename assets/{dev_api_dev_observer.md.1UR7dS3y.js => dev_api_dev_observer.md.DXfnQgLO.js} (56%) rename assets/{dev_api_dev_observer.md.1UR7dS3y.lean.js => dev_api_dev_observer.md.DXfnQgLO.lean.js} (86%) rename assets/{dev_api_dev_plugin.md.C_CkUgwx.js => dev_api_dev_plugin.md.Cops7KZu.js} (61%) rename assets/{dev_api_dev_plugin.md.C_CkUgwx.lean.js => dev_api_dev_plugin.md.Cops7KZu.lean.js} (86%) rename assets/{dev_api_log.md.CJtELCL9.js => dev_api_log.md.B0RBm2Ui.js} (82%) rename assets/{dev_api_log.md.CJtELCL9.lean.js => dev_api_log.md.B0RBm2Ui.lean.js} (59%) rename assets/{dev_api_message_event.md.z4kIykti.js => dev_api_message_event.md.DyDwsc6d.js} (59%) rename assets/{dev_api_message_event.md.z4kIykti.lean.js => dev_api_message_event.md.DyDwsc6d.lean.js} (86%) rename assets/{dev_api_message_matcher.md.Dl6noJmI.js => dev_api_message_matcher.md.DVuQfqJD.js} (53%) rename assets/{dev_api_message_matcher.md.Dl6noJmI.lean.js => dev_api_message_matcher.md.DVuQfqJD.lean.js} (86%) rename assets/{dev_api_message_on.md.C1h6vNQo.js => dev_api_message_on.md.CApMkdr1.js} (58%) rename assets/{dev_api_message_on.md.C1h6vNQo.lean.js => dev_api_message_on.md.CApMkdr1.lean.js} (68%) delete mode 100644 assets/dev_api_message_rule.md.D55CYU4N.js create mode 100644 assets/dev_api_message_rule.md.DtsqYM0_.js rename assets/{dev_api_message_rule.md.D55CYU4N.lean.js => dev_api_message_rule.md.DtsqYM0_.lean.js} (86%) rename assets/{dev_api_mkdoc.md.KHhZ0jbQ.js => dev_api_mkdoc.md.BQNdAtbl.js} (89%) rename assets/{dev_api_mkdoc.md.KHhZ0jbQ.lean.js => dev_api_mkdoc.md.BQNdAtbl.lean.js} (85%) delete mode 100644 assets/dev_api_plugin_index.md.CcmFWY5K.js create mode 100644 assets/dev_api_plugin_index.md.DyFjlTCa.js rename assets/{dev_api_plugin_index.md.CcmFWY5K.lean.js => dev_api_plugin_index.md.DyFjlTCa.lean.js} (86%) rename assets/{dev_api_plugin_load.md.CssacMr6.js => dev_api_plugin_load.md.CqVkk0P5.js} (85%) rename assets/{dev_api_plugin_load.md.CssacMr6.lean.js => dev_api_plugin_load.md.CqVkk0P5.lean.js} (90%) rename assets/{dev_api_plugin_model.md.CSS29TEc.js => dev_api_plugin_model.md.BmVr2u82.js} (61%) rename assets/{dev_api_plugin_model.md.CSS29TEc.lean.js => dev_api_plugin_model.md.BmVr2u82.lean.js} (86%) delete mode 100644 assets/dev_api_plugins_liteecho.md.a-DHFJ66.js create mode 100644 assets/dev_api_plugins_liteecho.md.sryx6SuS.js rename assets/{dev_api_plugins_liteecho.md.a-DHFJ66.lean.js => dev_api_plugins_liteecho.md.sryx6SuS.lean.js} (87%) create mode 100644 assets/dev_api_plugins_plugin_loader_index.md.DVvGETw-.js rename assets/{dev_api_plugins_plugin_loader_index.md.VShWijpV.lean.js => dev_api_plugins_plugin_loader_index.md.DVvGETw-.lean.js} (88%) delete mode 100644 assets/dev_api_plugins_plugin_loader_index.md.VShWijpV.js rename assets/{dev_api_utils.md.BCCrA2Tn.js => dev_api_utils.md.wryzX8vr.js} (58%) rename assets/{dev_api_utils.md.BCCrA2Tn.lean.js => dev_api_utils.md.wryzX8vr.lean.js} (85%) rename assets/{dev_guide.md.CeOBWODY.js => dev_guide.md.S84qIxk3.js} (97%) rename assets/{dev_guide.md.CeOBWODY.lean.js => dev_guide.md.S84qIxk3.lean.js} (75%) rename assets/{en_dev_api_bot_index.md.Etpbg95G.js => en_dev_api_bot_index.md.C4r8HhEl.js} (55%) rename assets/{en_dev_api_bot_index.md.Etpbg95G.lean.js => en_dev_api_bot_index.md.C4r8HhEl.lean.js} (67%) create mode 100644 assets/en_dev_api_bot_lifespan.md.B-nofctY.js rename assets/{en_dev_api_bot_lifespan.md.B5dt163D.lean.js => en_dev_api_bot_lifespan.md.B-nofctY.lean.js} (86%) delete mode 100644 assets/en_dev_api_bot_lifespan.md.B5dt163D.js rename assets/{en_dev_api_comm_channel.md.Db8NECOS.js => en_dev_api_comm_channel.md.VoA9irwY.js} (68%) rename assets/{en_dev_api_comm_channel.md.Db8NECOS.lean.js => en_dev_api_comm_channel.md.VoA9irwY.lean.js} (86%) create mode 100644 assets/en_dev_api_comm_event.md.Crpo-bJ4.js rename assets/{en_dev_api_comm_event.md.DVEQ_riJ.lean.js => en_dev_api_comm_event.md.Crpo-bJ4.lean.js} (73%) delete mode 100644 assets/en_dev_api_comm_event.md.DVEQ_riJ.js delete mode 100644 assets/en_dev_api_comm_rpc.md.CY-ENZCj.js create mode 100644 assets/en_dev_api_comm_rpc.md.DKVp72_P.js rename assets/{en_dev_api_comm_rpc.md.CY-ENZCj.lean.js => en_dev_api_comm_rpc.md.DKVp72_P.lean.js} (69%) create mode 100644 assets/en_dev_api_comm_socks_channel.md.B8_s4Hv_.js rename assets/{en_dev_api_comm_socks_channel.md.CndQIApl.lean.js => en_dev_api_comm_socks_channel.md.B8_s4Hv_.lean.js} (87%) delete mode 100644 assets/en_dev_api_comm_socks_channel.md.CndQIApl.js rename assets/{en_dev_api_comm_storage.md.CBNLmX3O.js => en_dev_api_comm_storage.md.WX6gT40z.js} (63%) rename assets/{en_dev_api_comm_storage.md.CBNLmX3O.lean.js => en_dev_api_comm_storage.md.WX6gT40z.lean.js} (86%) rename assets/{en_dev_api_config.md.Dm7JCHCl.js => en_dev_api_config.md.CRNFMcJd.js} (64%) rename assets/{en_dev_api_config.md.Dm7JCHCl.lean.js => en_dev_api_config.md.CRNFMcJd.lean.js} (75%) rename assets/{en_dev_api_core_manager.md.BEvIQjQG.js => en_dev_api_core_manager.md.D7QE1GyX.js} (61%) rename assets/{en_dev_api_core_manager.md.BEvIQjQG.lean.js => en_dev_api_core_manager.md.D7QE1GyX.lean.js} (86%) rename assets/{en_dev_api_dev_observer.md.B50F8CO1.js => en_dev_api_dev_observer.md.DAh-d3XU.js} (53%) rename assets/{en_dev_api_dev_observer.md.B50F8CO1.lean.js => en_dev_api_dev_observer.md.DAh-d3XU.lean.js} (86%) rename assets/{en_dev_api_dev_plugin.md.CGOTYIDu.js => en_dev_api_dev_plugin.md.ByOqvpeD.js} (61%) rename assets/{en_dev_api_dev_plugin.md.CGOTYIDu.lean.js => en_dev_api_dev_plugin.md.ByOqvpeD.lean.js} (86%) rename assets/{en_dev_api_log.md.DR6xjPic.js => en_dev_api_log.md.t5U3-0Tg.js} (82%) rename assets/{en_dev_api_log.md.DR6xjPic.lean.js => en_dev_api_log.md.t5U3-0Tg.lean.js} (57%) rename assets/{en_dev_api_message_event.md.DPY-2dlG.js => en_dev_api_message_event.md.C6I96y2L.js} (60%) rename assets/{en_dev_api_message_event.md.DPY-2dlG.lean.js => en_dev_api_message_event.md.C6I96y2L.lean.js} (87%) rename assets/{en_dev_api_message_matcher.md.EXm6yebY.js => en_dev_api_message_matcher.md.CtCEbUVJ.js} (53%) rename assets/{en_dev_api_message_matcher.md.EXm6yebY.lean.js => en_dev_api_message_matcher.md.CtCEbUVJ.lean.js} (87%) rename assets/{en_dev_api_message_on.md.DHqvXPYl.js => en_dev_api_message_on.md.DOPTBR4O.js} (53%) rename assets/{en_dev_api_message_on.md.DHqvXPYl.lean.js => en_dev_api_message_on.md.DOPTBR4O.lean.js} (66%) create mode 100644 assets/en_dev_api_message_rule.md.BBaFECzV.js rename assets/{en_dev_api_message_rule.md.v7qMjTeZ.lean.js => en_dev_api_message_rule.md.BBaFECzV.lean.js} (86%) delete mode 100644 assets/en_dev_api_message_rule.md.v7qMjTeZ.js rename assets/{en_dev_api_mkdoc.md.DyhS85pU.js => en_dev_api_mkdoc.md.B0odpxJC.js} (89%) rename assets/{en_dev_api_mkdoc.md.DyhS85pU.lean.js => en_dev_api_mkdoc.md.B0odpxJC.lean.js} (85%) delete mode 100644 assets/en_dev_api_plugin_index.md.BlDLlzQ8.js create mode 100644 assets/en_dev_api_plugin_index.md.ibr3u-4e.js rename assets/{en_dev_api_plugin_index.md.BlDLlzQ8.lean.js => en_dev_api_plugin_index.md.ibr3u-4e.lean.js} (86%) rename assets/{en_dev_api_plugin_load.md.CNTMTSZw.js => en_dev_api_plugin_load.md.BqElTQmm.js} (84%) rename assets/{en_dev_api_plugin_load.md.CNTMTSZw.lean.js => en_dev_api_plugin_load.md.BqElTQmm.lean.js} (90%) rename assets/{en_dev_api_plugin_model.md.hMsXQnst.js => en_dev_api_plugin_model.md.C8mVVzkp.js} (62%) rename assets/{en_dev_api_plugin_model.md.hMsXQnst.lean.js => en_dev_api_plugin_model.md.C8mVVzkp.lean.js} (86%) create mode 100644 assets/en_dev_api_plugins_liteecho.md.BkpA_Gke.js rename assets/{en_dev_api_plugins_liteecho.md.Bq_UeUyc.lean.js => en_dev_api_plugins_liteecho.md.BkpA_Gke.lean.js} (87%) delete mode 100644 assets/en_dev_api_plugins_liteecho.md.Bq_UeUyc.js delete mode 100644 assets/en_dev_api_plugins_plugin_loader_index.md.Dyg-8Oyz.js create mode 100644 assets/en_dev_api_plugins_plugin_loader_index.md.cG7vDNwD.js rename assets/{en_dev_api_plugins_plugin_loader_index.md.Dyg-8Oyz.lean.js => en_dev_api_plugins_plugin_loader_index.md.cG7vDNwD.lean.js} (88%) rename assets/{en_dev_api_utils.md.pu8aZDZV.js => en_dev_api_utils.md.DKuaapxu.js} (59%) rename assets/{en_dev_api_utils.md.pu8aZDZV.lean.js => en_dev_api_utils.md.DKuaapxu.lean.js} (85%) rename assets/{en_dev_guide.md.C76-pPPo.js => en_dev_guide.md.DMm2-_b5.js} (98%) rename assets/{en_dev_guide.md.C76-pPPo.lean.js => en_dev_guide.md.DMm2-_b5.lean.js} (76%) diff --git a/404.html b/404.html index f74cbfdf..2d6962d5 100644 --- a/404.html +++ b/404.html @@ -8,7 +8,7 @@ - + @@ -17,7 +17,7 @@
- + \ No newline at end of file diff --git a/assets/app.DOXQtjkq.js b/assets/app.DbUbZo6b.js similarity index 95% rename from assets/app.DOXQtjkq.js rename to assets/app.DbUbZo6b.js index 8c857a08..50841787 100644 --- a/assets/app.DOXQtjkq.js +++ b/assets/app.DbUbZo6b.js @@ -1 +1 @@ -import{R as p}from"./chunks/theme.pz_Nliu9.js";import{U as o,aa as u,ab as l,ac as c,ad as f,ae as d,af as m,ag as h,ah as g,ai as A,aj as y,d as P,u as v,y as w,x as C,ak as R,al as b,am as E,an as S}from"./chunks/framework.C4_mTacX.js";function i(e){if(e.extends){const a=i(e.extends);return{...a,...e,async enhanceApp(t){a.enhanceApp&&await a.enhanceApp(t),e.enhanceApp&&await e.enhanceApp(t)}}}return e}const s=i(p),T=P({name:"VitePressApp",setup(){const{site:e,lang:a,dir:t}=v();return w(()=>{C(()=>{document.documentElement.lang=a.value,document.documentElement.dir=t.value})}),e.value.router.prefetchLinks&&R(),b(),E(),s.setup&&s.setup(),()=>S(s.Layout)}});async function j(){globalThis.__VITEPRESS__=!0;const e=D(),a=x();a.provide(l,e);const t=c(e.route);return a.provide(f,t),a.component("Content",d),a.component("ClientOnly",m),Object.defineProperties(a.config.globalProperties,{$frontmatter:{get(){return t.frontmatter.value}},$params:{get(){return t.page.value.params}}}),s.enhanceApp&&await s.enhanceApp({app:a,router:e,siteData:h}),{app:a,router:e,data:t}}function x(){return g(T)}function D(){let e=o,a;return A(t=>{let n=y(t),r=null;return n&&(e&&(a=n),(e||a===n)&&(n=n.replace(/\.js$/,".lean.js")),r=import(n)),o&&(e=!1),r},s.NotFound)}o&&j().then(({app:e,router:a,data:t})=>{a.go().then(()=>{u(a.route,t.site),e.mount("#app")})});export{j as createApp}; +import{R as p}from"./chunks/theme.CVtOlEkl.js";import{U as o,aa as u,ab as l,ac as c,ad as f,ae as d,af as m,ag as h,ah as g,ai as A,aj as y,d as P,u as v,y as w,x as C,ak as R,al as b,am as E,an as S}from"./chunks/framework.C4_mTacX.js";function i(e){if(e.extends){const a=i(e.extends);return{...a,...e,async enhanceApp(t){a.enhanceApp&&await a.enhanceApp(t),e.enhanceApp&&await e.enhanceApp(t)}}}return e}const s=i(p),T=P({name:"VitePressApp",setup(){const{site:e,lang:a,dir:t}=v();return w(()=>{C(()=>{document.documentElement.lang=a.value,document.documentElement.dir=t.value})}),e.value.router.prefetchLinks&&R(),b(),E(),s.setup&&s.setup(),()=>S(s.Layout)}});async function j(){globalThis.__VITEPRESS__=!0;const e=D(),a=x();a.provide(l,e);const t=c(e.route);return a.provide(f,t),a.component("Content",d),a.component("ClientOnly",m),Object.defineProperties(a.config.globalProperties,{$frontmatter:{get(){return t.frontmatter.value}},$params:{get(){return t.page.value.params}}}),s.enhanceApp&&await s.enhanceApp({app:a,router:e,siteData:h}),{app:a,router:e,data:t}}function x(){return g(T)}function D(){let e=o,a;return A(t=>{let n=y(t),r=null;return n&&(e&&(a=n),(e||a===n)&&(n=n.replace(/\.js$/,".lean.js")),r=import(n)),o&&(e=!1),r},s.NotFound)}o&&j().then(({app:e,router:a,data:t})=>{a.go().then(()=>{u(a.route,t.site),e.mount("#app")})});export{j as createApp}; diff --git a/assets/chunks/@localSearchIndexen.CT3W_mh6.js b/assets/chunks/@localSearchIndexen.CT3W_mh6.js deleted file mode 100644 index 4507c487..00000000 --- a/assets/chunks/@localSearchIndexen.CT3W_mh6.js +++ /dev/null @@ -1 +0,0 @@ -const e=`{"documentCount":305,"nextId":305,"documentIds":{"0":"/en/deploy/config.html#configurations","1":"/en/deploy/config.html#basic-configuration","2":"/en/deploy/config.html#other-configurations","3":"/en/deploy/config.html#example-configuration-of-onebot-implementation-side-connected-to-nonebot","4":"/en/deploy/config.html#other","5":"/en/deploy/fandq.html#faq","6":"/en/deploy/fandq.html#frequently-asked-questions","7":"/en/deploy/fandq.html#other-questions","8":"/en/deploy/fandq.html#recommended-solution-qq","9":"/en/deploy/fandq.html#recommended-solution-minecraft","10":"/en/deploy/fandq.html#acknowledgements","11":"/en/deploy/install.html#install","12":"/en/deploy/install.html#normal-installation","13":"/en/deploy/install.html#run-with-docker","14":"/en/deploy/install.html#use-trss-script","15":"/en/deploy/install.html#device-requirements","16":"/en/deploy/install.html#for-other-questions-please-refer-to-faq","17":"/en/dev/api/bot/#module-liteyuki-bot","18":"/en/dev/api/bot/#class-liteyukibot","19":"/en/dev/api/bot/#func-init-self-kwargs-none","20":"/en/dev/api/bot/#func-run-self","21":"/en/dev/api/bot/#async-func-keep-alive-self","22":"/en/dev/api/bot/#func-restart-self-delay-int-0","23":"/en/dev/api/bot/#func-restart-process-self-name-optional-str-none","24":"/en/dev/api/bot/#func-init-self-args-kwargs","25":"/en/dev/api/bot/#func-init-logger-self","26":"/en/dev/api/bot/#func-stop-self","27":"/en/dev/api/bot/#func-on-before-start-self-func-lifespan-func-lifespan-func","28":"/en/dev/api/bot/#func-on-after-start-self-func-lifespan-func","29":"/en/dev/api/bot/#func-on-after-shutdown-self-func-lifespan-func","30":"/en/dev/api/bot/#func-on-before-process-shutdown-self-func-process-lifespan-func","31":"/en/dev/api/bot/#func-on-before-process-restart-self-func-process-lifespan-func-process-lifespan-func","32":"/en/dev/api/bot/#func-on-after-restart-self-func-lifespan-func","33":"/en/dev/api/bot/#func-get-bot-liteyukibot","34":"/en/dev/api/bot/#func-get-config-key-str-default-any-none-any","35":"/en/dev/api/bot/#func-get-config-with-compat-key-str-compat-keys-tuple-str-default-any-none-any","36":"/en/dev/api/bot/lifespan.html#module-liteyuki-bot-lifespan","37":"/en/dev/api/bot/lifespan.html#var-sync-lifespan-func","38":"/en/dev/api/bot/lifespan.html#var-async-lifespan-func","39":"/en/dev/api/bot/lifespan.html#var-lifespan-func","40":"/en/dev/api/bot/lifespan.html#var-sync-process-lifespan-func","41":"/en/dev/api/bot/lifespan.html#var-async-process-lifespan-func","42":"/en/dev/api/bot/lifespan.html#var-process-lifespan-func","43":"/en/dev/api/bot/lifespan.html#class-lifespan","44":"/en/dev/api/bot/lifespan.html#func-init-self-none","45":"/en/dev/api/bot/lifespan.html#async-func-run-funcs-funcs-sequence-lifespan-func-process-lifespan-func-args-kwargs-none","46":"/en/dev/api/bot/lifespan.html#func-on-before-start-self-func-lifespan-func-lifespan-func","47":"/en/dev/api/bot/lifespan.html#func-on-after-start-self-func-lifespan-func-lifespan-func","48":"/en/dev/api/bot/lifespan.html#func-on-before-process-shutdown-self-func-process-lifespan-func-process-lifespan-func","49":"/en/dev/api/bot/lifespan.html#func-on-after-shutdown-self-func-lifespan-func-lifespan-func","50":"/en/dev/api/bot/lifespan.html#func-on-before-process-restart-self-func-process-lifespan-func-process-lifespan-func","51":"/en/dev/api/bot/lifespan.html#func-on-after-restart-self-func-lifespan-func-lifespan-func","52":"/en/dev/api/bot/lifespan.html#async-func-before-start-self-none","53":"/en/dev/api/bot/lifespan.html#async-func-after-start-self-none","54":"/en/dev/api/bot/lifespan.html#async-func-before-process-shutdown-self-args-kwargs-none","55":"/en/dev/api/bot/lifespan.html#async-func-after-shutdown-self-none","56":"/en/dev/api/bot/lifespan.html#async-func-before-process-restart-self-args-kwargs-none","57":"/en/dev/api/bot/lifespan.html#async-func-after-restart-self-none","58":"/en/dev/api/comm/channel.html#module-liteyuki-comm-channel","59":"/en/dev/api/comm/channel.html#var-sync-on-receive-func","60":"/en/dev/api/comm/channel.html#var-async-on-receive-func","61":"/en/dev/api/comm/channel.html#var-on-receive-func","62":"/en/dev/api/comm/channel.html#var-sync-filter-func","63":"/en/dev/api/comm/channel.html#var-async-filter-func","64":"/en/dev/api/comm/channel.html#var-filter-func","65":"/en/dev/api/comm/channel.html#class-channel-generic-t","66":"/en/dev/api/comm/channel.html#func-init-self-name-str-type-check-optional-bool-none","67":"/en/dev/api/comm/channel.html#func-send-self-data-t","68":"/en/dev/api/comm/channel.html#func-receive-self-t","69":"/en/dev/api/comm/channel.html#async-func-async-receive-self-t","70":"/en/dev/api/comm/channel.html#func-on-receive-self-filter-func-optional-filter-func-none-callable-callable-t-any-callable-t-any","71":"/en/dev/api/comm/channel.html#var-active-channel","72":"/en/dev/api/comm/channel.html#var-passive-channel","73":"/en/dev/api/comm/channel.html#var-publish-channel","74":"/en/dev/api/comm/channel.html#var-channel-deliver-active-channel","75":"/en/dev/api/comm/channel.html#var-channel-deliver-passive-channel","76":"/en/dev/api/comm/channel.html#func-set-channel-name-str-channel-channel","77":"/en/dev/api/comm/channel.html#func-set-channels-channels-dict-str-channel","78":"/en/dev/api/comm/channel.html#func-get-channel-name-str-channel","79":"/en/dev/api/comm/channel.html#func-get-channels-dict-str-channel","80":"/en/dev/api/comm/channel.html#var-channel-deliver-active-channel-1","81":"/en/dev/api/comm/channel.html#var-channel-deliver-passive-channel-1","82":"/en/dev/api/comm/channel.html#func-on-set-channel-data-tuple-str-dict-str-any","83":"/en/dev/api/comm/channel.html#func-on-get-channel-data-tuple-str-dict-str-any","84":"/en/dev/api/comm/channel.html#func-on-get-channels-data-tuple-str-dict-str-any","85":"/en/dev/api/comm/event.html#module-liteyuki-comm-event","86":"/en/dev/api/comm/event.html#class-event","87":"/en/dev/api/comm/event.html#func-init-self-name-str-data-dict-str-any","88":"/en/dev/api/comm/#module-liteyuki-comm","89":"/en/dev/api/comm/rpc.html#module-liteyuki-comm-rpc","90":"/en/dev/api/comm/rpc.html#class-rpc","91":"/en/dev/api/comm/rpc.html#func-init-self-on-calling-on-calling-func-none","92":"/en/dev/api/comm/rpc.html#func-call-self-args-tuple-kwargs-dict-any","93":"/en/dev/api/comm/socks_channel.html#module-liteyuki-comm-socks-channel","94":"/en/dev/api/comm/socks_channel.html#class-sockschannel","95":"/en/dev/api/comm/socks_channel.html#func-init-self-name-str","96":"/en/dev/api/comm/socks_channel.html#func-send-self-data","97":"/en/dev/api/comm/socks_channel.html#func-receive-self","98":"/en/dev/api/comm/socks_channel.html#func-close-self","99":"/en/dev/api/comm/storage.html#module-liteyuki-comm-storage","100":"/en/dev/api/comm/storage.html#var-on-main-subscriber-receive-funcs","101":"/en/dev/api/comm/storage.html#var-on-sub-subscriber-receive-funcs","102":"/en/dev/api/comm/storage.html#class-keyvaluestore","103":"/en/dev/api/comm/storage.html#func-init-self","104":"/en/dev/api/comm/storage.html#func-set-self-key-str-value-any-none","105":"/en/dev/api/comm/storage.html#func-get-self-key-str-default-optional-any-none-optional-any","106":"/en/dev/api/comm/storage.html#func-delete-self-key-str-ignore-key-error-bool-true-none","107":"/en/dev/api/comm/storage.html#func-get-all-self-dict-str-any","108":"/en/dev/api/comm/storage.html#func-publish-self-channel-str-data-any-none","109":"/en/dev/api/comm/storage.html#func-on-subscriber-receive-self-channel-str-callable-on-receive-func-on-receive-func","110":"/en/dev/api/comm/storage.html#async-func-run-subscriber-receive-funcs-channel-str-data-any","111":"/en/dev/api/comm/storage.html#async-func-start-receive-loop-self","112":"/en/dev/api/comm/storage.html#class-globalkeyvaluestore","113":"/en/dev/api/comm/storage.html#func-get-instance-cls","114":"/en/dev/api/comm/storage.html#attr-instance-none","115":"/en/dev/api/comm/storage.html#attr-lock-threading-lock","116":"/en/dev/api/comm/storage.html#var-shared-memory","117":"/en/dev/api/comm/storage.html#var-ref-count","118":"/en/dev/api/comm/storage.html#func-on-get-data-tuple-str-dict-str-any","119":"/en/dev/api/comm/storage.html#func-on-set-data-tuple-str-dict-str-any","120":"/en/dev/api/comm/storage.html#func-on-delete-data-tuple-str-dict-str-any","121":"/en/dev/api/comm/storage.html#func-on-get-all-data-tuple-str-dict-str-any","122":"/en/dev/api/core/#module-liteyuki-core","123":"/en/dev/api/config.html#module-liteyuki-config","124":"/en/dev/api/config.html#func-flat-config-config-dict-str-any-dict-str-any","125":"/en/dev/api/config.html#func-load-from-yaml-file-str-dict-str-any","126":"/en/dev/api/config.html#func-load-from-json-file-str-dict-str-any","127":"/en/dev/api/config.html#func-load-from-toml-file-str-dict-str-any","128":"/en/dev/api/config.html#func-load-from-files-files-str-no-warning-bool-false-dict-str-any","129":"/en/dev/api/config.html#func-load-configs-from-dirs-directories-str-no-waring-bool-false-dict-str-any","130":"/en/dev/api/config.html#func-load-config-in-default-no-waring-bool-false-dict-str-any","131":"/en/dev/api/core/manager.html#module-liteyuki-core-manager","132":"/en/dev/api/core/manager.html#class-channeldeliver","133":"/en/dev/api/core/manager.html#func-init-self-active-channel-any-passive-channel-any-channel-deliver-active-channel-channel-any-channel-deliver-passive-channel-tuple-str-dict-publish-channel-tuple-str-any","134":"/en/dev/api/core/manager.html#class-processmanager","135":"/en/dev/api/core/manager.html#func-init-self-lifespan-lifespan","136":"/en/dev/api/core/manager.html#func-start-all-self","137":"/en/dev/api/core/manager.html#func-add-target-self-name-str-target-target-func-args-tuple-kwargs-none","138":"/en/dev/api/core/manager.html#func-join-all-self","139":"/en/dev/api/core/manager.html#func-terminate-self-name-str","140":"/en/dev/api/core/manager.html#func-terminate-all-self","141":"/en/dev/api/core/manager.html#func-is-process-alive-self-name-str-bool","142":"/en/dev/api/dev/observer.html#module-liteyuki-dev-observer","143":"/en/dev/api/dev/observer.html#var-callback-func","144":"/en/dev/api/dev/observer.html#var-filter-func","145":"/en/dev/api/dev/observer.html#func-debounce-wait","146":"/en/dev/api/dev/observer.html#class-codemodifiedhandler-filesystemeventhandler","147":"/en/dev/api/dev/observer.html#func-on-modified-self-event","148":"/en/dev/api/dev/observer.html#func-on-created-self-event","149":"/en/dev/api/dev/observer.html#func-on-deleted-self-event","150":"/en/dev/api/dev/observer.html#func-on-moved-self-event","151":"/en/dev/api/dev/observer.html#func-on-any-event-self-event","152":"/en/dev/api/dev/observer.html#func-on-file-system-event-directories-tuple-str-recursive-bool-true-event-filter-filter-func-none-callable-callback-func-callback-func","153":"/en/dev/api/dev/plugin.html#module-liteyuki-dev-plugin","154":"/en/dev/api/dev/plugin.html#func-run-plugins-module-path-str-path","155":"/en/dev/api/dev/#module-liteyuki-dev","156":"/en/dev/api/exception.html#module-liteyuki-exception","157":"/en/dev/api/exception.html#class-liteyukiexception-baseexception","158":"/en/dev/api/#module-liteyuki","159":"/en/dev/api/#var-version","160":"/en/dev/api/log.html#module-liteyuki-log","161":"/en/dev/api/log.html#func-get-format-level-str-str","162":"/en/dev/api/log.html#func-init-log-config-dict","163":"/en/dev/api/message/event.html#module-liteyuki-message-event","164":"/en/dev/api/message/event.html#class-messageevent","165":"/en/dev/api/message/event.html#func-init-self-bot-id-str-message-list-dict-str-any-str-message-type-str-raw-message-str-session-id-str-user-id-str-session-type-str-receive-channel-optional-channel-messageevent-none-data-optional-dict-str-any-none","166":"/en/dev/api/message/event.html#func-reply-self-message-str-dict-str-any","167":"/en/dev/api/message/#module-liteyuki-message","168":"/en/dev/api/message/matcher.html#module-liteyuki-message-matcher","169":"/en/dev/api/message/matcher.html#class-matcher","170":"/en/dev/api/message/matcher.html#func-init-self-rule-rule-priority-int-block-bool","171":"/en/dev/api/message/matcher.html#func-handle-self-callable-eventhandler-eventhandler","172":"/en/dev/api/message/matcher.html#async-func-run-self-event-messageevent-none","173":"/en/dev/api/message/on.html#module-liteyuki-message-on","174":"/en/dev/api/message/on.html#func-add-matcher-matcher-matcher","175":"/en/dev/api/message/on.html#func-on-message-rule-rule-empty-rule-priority-int-0-block-bool-false-matcher","176":"/en/dev/api/message/on.html#func-on-keywords-keywords-list-str-rule-empty-rule-priority-int-0-block-bool-false-matcher","177":"/en/dev/api/message/session.html#module-liteyuki-message-session","178":"/en/dev/api/message/rule.html#module-liteyuki-message-rule","179":"/en/dev/api/message/rule.html#var-rulehandlerfunc","180":"/en/dev/api/message/rule.html#class-rule","181":"/en/dev/api/message/rule.html#func-init-self-handler-rulehandlerfunc","182":"/en/dev/api/message/rule.html#func-self-other-rule-rule","183":"/en/dev/api/message/rule.html#func-self-other-rule-rule-1","184":"/en/dev/api/message/rule.html#async-func-self-event-messageevent-bool","185":"/en/dev/api/message/rule.html#async-func-empty-rule-event-messageevent-bool","186":"/en/dev/api/message/rule.html#async-func-is-su-rule-event-messageevent-bool","187":"/en/dev/api/mkdoc.html#module-liteyuki-mkdoc","188":"/en/dev/api/mkdoc.html#class-deftype-enum","189":"/en/dev/api/mkdoc.html#attr-function-function","190":"/en/dev/api/mkdoc.html#attr-method-method","191":"/en/dev/api/mkdoc.html#attr-static-method-staticmethod","192":"/en/dev/api/mkdoc.html#attr-class-method-classmethod","193":"/en/dev/api/mkdoc.html#attr-property-property","194":"/en/dev/api/mkdoc.html#class-functioninfo-basemodel","195":"/en/dev/api/mkdoc.html#attr-name-str-no-default","196":"/en/dev/api/mkdoc.html#attr-args-list-tuple-str-str-no-default","197":"/en/dev/api/mkdoc.html#attr-return-type-str-no-default","198":"/en/dev/api/mkdoc.html#attr-docstring-str-no-default","199":"/en/dev/api/mkdoc.html#attr-source-code-str","200":"/en/dev/api/mkdoc.html#attr-type-deftype-no-default","201":"/en/dev/api/mkdoc.html#attr-is-async-bool-no-default","202":"/en/dev/api/mkdoc.html#class-attributeinfo-basemodel","203":"/en/dev/api/mkdoc.html#attr-name-str-no-default-1","204":"/en/dev/api/mkdoc.html#attr-type-str-no-default","205":"/en/dev/api/mkdoc.html#attr-value-any-none","206":"/en/dev/api/mkdoc.html#attr-docstring-str","207":"/en/dev/api/mkdoc.html#class-classinfo-basemodel","208":"/en/dev/api/mkdoc.html#attr-name-str-no-default-2","209":"/en/dev/api/mkdoc.html#attr-docstring-str-no-default-1","210":"/en/dev/api/mkdoc.html#attr-methods-list-functioninfo-no-default","211":"/en/dev/api/mkdoc.html#attr-attributes-list-attributeinfo-no-default","212":"/en/dev/api/mkdoc.html#attr-inherit-list-str-no-default","213":"/en/dev/api/mkdoc.html#class-moduleinfo-basemodel","214":"/en/dev/api/mkdoc.html#attr-module-path-str-no-default","215":"/en/dev/api/mkdoc.html#attr-functions-list-functioninfo-no-default","216":"/en/dev/api/mkdoc.html#attr-classes-list-classinfo-no-default","217":"/en/dev/api/mkdoc.html#attr-attributes-list-attributeinfo-no-default-1","218":"/en/dev/api/mkdoc.html#attr-docstring-str-no-default-2","219":"/en/dev/api/mkdoc.html#func-get-relative-path-base-path-str-target-path-str-str","220":"/en/dev/api/mkdoc.html#func-write-to-files-file-data-dict-str-str","221":"/en/dev/api/mkdoc.html#func-get-file-list-module-folder-str","222":"/en/dev/api/mkdoc.html#func-get-module-info-normal-file-path-str-ignore-private-bool-true-moduleinfo","223":"/en/dev/api/mkdoc.html#func-generate-markdown-module-info-moduleinfo-front-matter-none-lang-str-zh-cn-str","224":"/en/dev/api/mkdoc.html#func-generate-docs-module-folder-str-output-dir-str-with-top-bool-false-lang-str-zh-cn-ignored-paths-none","225":"/en/dev/api/mkdoc.html#var-no-module-name-pyfile-path","226":"/en/dev/api/plugin/#module-liteyuki-plugin","227":"/en/dev/api/plugin/#func-get-loaded-plugins-dict-str-plugin","228":"/en/dev/api/plugin/manager.html#module-liteyuki-plugin-manager","229":"/en/dev/api/plugin/load.html#module-liteyuki-plugin-load","230":"/en/dev/api/plugin/load.html#func-load-plugin-module-path-str-path-optional-plugin","231":"/en/dev/api/plugin/load.html#func-load-plugins-plugin-dir-str-ignore-warning-bool-true-set-plugin","232":"/en/dev/api/plugin/load.html#func-format-display-name-display-name-str-plugin-type-plugintype-str","233":"/en/dev/api/plugin/model.html#module-liteyuki-plugin-model","234":"/en/dev/api/plugin/model.html#class-plugintype-enum","235":"/en/dev/api/plugin/model.html#attr-application-application","236":"/en/dev/api/plugin/model.html#attr-service-service","237":"/en/dev/api/plugin/model.html#attr-module-module","238":"/en/dev/api/plugin/model.html#attr-unclassified-unclassified","239":"/en/dev/api/plugin/model.html#attr-test-test","240":"/en/dev/api/plugin/model.html#class-pluginmetadata-basemodel","241":"/en/dev/api/plugin/model.html#attr-name-str-no-default","242":"/en/dev/api/plugin/model.html#attr-description-str","243":"/en/dev/api/plugin/model.html#attr-usage-str","244":"/en/dev/api/plugin/model.html#attr-type-plugintype-plugintype-unclassified","245":"/en/dev/api/plugin/model.html#attr-author-str","246":"/en/dev/api/plugin/model.html#attr-homepage-str","247":"/en/dev/api/plugin/model.html#attr-extra-dict-str-any","248":"/en/dev/api/plugin/model.html#class-plugin-basemodel","249":"/en/dev/api/plugin/model.html#func-hash-self","250":"/en/dev/api/plugin/model.html#attr-model-config-arbitrary-types-allowed-true","251":"/en/dev/api/plugin/model.html#attr-name-str-no-default-1","252":"/en/dev/api/plugin/model.html#attr-module-moduletype-no-default","253":"/en/dev/api/plugin/model.html#attr-module-name-str-no-default","254":"/en/dev/api/plugin/model.html#attr-metadata-optional-pluginmetadata-none","255":"/en/dev/api/plugins/#module-liteyuki-plugins","256":"/en/dev/api/plugins/liteecho.html#module-liteyuki-plugins-liteecho","257":"/en/dev/api/plugins/liteecho.html#async-func-liteecho-event-messageevent","258":"/en/dev/api/plugins/plugin_loader/#module-liteyuki-plugins-plugin-loader","259":"/en/dev/api/plugins/plugin_loader/#func-default-plugins-loader","260":"/en/dev/comm.html#channel-communication","261":"/en/dev/comm.html#introduction","262":"/en/dev/comm.html#example","263":"/en/dev/comm.html#共享内存通信","264":"/en/dev/comm.html#简介","265":"/en/dev/comm.html#示例","266":"/en/dev/api/utils.html#module-liteyuki-utils","267":"/en/dev/api/utils.html#func-is-coroutine-callable-call-callable-any-bool","268":"/en/dev/api/utils.html#func-run-coroutine-coro-coroutine","269":"/en/dev/api/utils.html#func-run-coroutine-in-thread-coro-coroutine","270":"/en/dev/api/utils.html#func-path-to-module-name-path-path-str","271":"/en/dev/api/utils.html#func-async-wrapper-func-callable-any-callable-coroutine","272":"/en/dev/guide.html#development-guide","273":"/en/dev/guide.html#how-to-develop","274":"/en/dev/guide.html#suggestions","275":"/en/dev/guide.html#project-structure","276":"/en/dev/guide.html#standardization","277":"/en/dev/guide.html#finally","278":"/en/dev/lyfunc.html#轻雪函数","279":"/en/dev/lyfunc.html#函数文件","280":"/en/dev/lyfunc.html#命令文档","281":"/en/dev/lyfunc.html#示例","282":"/en/dev/lyfunc.html#api","283":"/en/dev/lyfunc.html#结束关键字","284":"/en/dev/plugin.html#简介","285":"/en/dev/plugin.html#开始","286":"/en/dev/plugin.html#创建插件","287":"/en/dev/plugin.html#编写逻辑部分","288":"/en/dev/plugin.html#加载插件","289":"/en/dev/plugin.html#方法1","290":"/en/dev/plugin.html#方法2","291":"/en/dev/resource.html#简介","292":"/en/dev/resource.html#加载资源包","293":"/en/usage/basic.html#基础插件","294":"/en/usage/basic.html#轻雪命令liteyuki-command","295":"/en/usage/basic.html#命令别名","296":"/en/usage/basic.html#插件-包管理器-liteyuki-pacman","297":"/en/usage/basic.html#命令别名-1","298":"/en/usage/basic.html#用户管理liteyuki-user","299":"/en/usage/agreement.html#用户协议","300":"/en/usage/extra.html#功能插件命令","301":"/en/usage/extra.html#轻雪天气liteyuki-weather","302":"/en/usage/extra.html#命令别名","303":"/en/usage/extra.html#统计信息liteyuki-statistics","304":"/en/usage/extra.html#命令别名-1"},"fieldIds":{"title":0,"titles":1,"text":2},"fieldLength":{"0":[1,1,50],"1":[2,1,82],"2":[2,1,67],"3":[9,1,71],"4":[1,1,21],"5":[1,1,1],"6":[3,1,172],"7":[2,1,18],"8":[4,1,31],"9":[4,1,25],"10":[1,1,14],"11":[1,1,1],"12":[2,1,59],"13":[3,1,57],"14":[3,1,18],"15":[2,1,83],"16":[6,3,1],"17":[3,1,1],"18":[2,3,1],"19":[6,5,60],"20":[4,5,31],"21":[6,5,33],"22":[8,5,62],"23":[10,5,38],"24":[6,5,19],"25":[5,5,16],"26":[4,5,18],"27":[8,5,22],"28":[8,5,21],"29":[8,5,22],"30":[10,5,24],"31":[10,5,25],"32":[8,5,22],"33":[5,3,37],"34":[10,3,29],"35":[14,3,48],"36":[4,1,24],"37":[4,4,8],"38":[4,4,9],"39":[3,4,11],"40":[5,4,9],"41":[5,4,10],"42":[4,4,12],"43":[2,4,1],"44":[5,6,34],"45":[13,6,41],"46":[8,6,23],"47":[8,6,23],"48":[10,6,25],"49":[8,6,23],"50":[10,6,25],"51":[8,6,23],"52":[7,6,23],"53":[7,6,23],"54":[10,6,26],"55":[7,6,24],"56":[10,6,26],"57":[7,6,24],"58":[4,1,3],"59":[5,4,9],"60":[5,4,10],"61":[4,4,12],"62":[4,4,9],"63":[4,4,11],"64":[3,4,11],"65":[5,4,1],"66":[12,9,74],"67":[6,9,47],"68":[5,9,32],"69":[6,9,31],"70":[15,9,66],"71":[3,4,9],"72":[3,4,9],"73":[3,4,15],"74":[4,4,11],"75":[4,4,12],"76":[7,4,43],"77":[7,4,22],"78":[7,4,34],"79":[8,4,33],"80":[4,4,9],"81":[4,4,17],"82":[10,4,27],"83":[10,4,30],"84":[10,4,29],"85":[4,1,2],"86":[2,4,1],"87":[9,6,16],"88":[3,1,8],"89":[4,1,4],"90":[2,4,1],"91":[10,6,17],"92":[9,6,20],"93":[5,1,2],"94":[2,5,1],"95":[6,7,23],"96":[5,7,16],"97":[4,7,16],"98":[4,7,13],"99":[4,1,4],"100":[6,4,12],"101":[6,4,12],"102":[2,4,1],"103":[4,6,33],"104":[9,6,34],"105":[12,6,40],"106":[12,6,45],"107":[9,6,33],"108":[9,6,24],"109":[13,6,54],"110":[11,6,31],"111":[7,6,45],"112":[2,4,2],"113":[5,6,21],"114":[4,6,1],"115":[6,6,1],"116":[3,4,9],"117":[3,4,17],"118":[9,4,31],"119":[9,4,29],"120":[9,4,29],"121":[10,4,29],"122":[3,1,1],"123":[3,1,14],"124":[8,3,41],"125":[10,3,38],"126":[10,3,37],"127":[10,3,37],"128":[14,3,46],"129":[16,3,52],"130":[15,3,37],"131":[4,1,24],"132":[2,4,1],"133":[14,6,21],"134":[2,4,1],"135":[6,6,20],"136":[5,6,31],"137":[14,6,51],"138":[5,6,16],"139":[6,6,34],"140":[5,6,15],"141":[9,6,30],"142":[4,1,5],"143":[3,4,9],"144":[3,4,9],"145":[4,4,28],"146":[4,4,3],"147":[6,8,19],"148":[6,8,12],"149":[6,8,12],"150":[6,8,12],"151":[6,8,12],"152":[20,4,54],"153":[4,1,24],"154":[9,4,33],"155":[3,1,2],"156":[3,1,2],"157":[4,3,1],"158":[2,1,10],"159":[3,2,7],"160":[3,1,24],"161":[6,3,20],"162":[6,3,49],"163":[4,1,24],"164":[2,4,1],"165":[24,6,35],"166":[9,6,37],"167":[3,1,24],"168":[4,1,24],"169":[2,4,1],"170":[10,6,28],"171":[7,6,23],"172":[8,6,33],"173":[4,1,24],"174":[5,4,24],"175":[15,4,21],"176":[16,4,32],"177":[4,1,24],"178":[4,1,24],"179":[2,4,11],"180":[2,4,1],"181":[6,6,13],"182":[7,6,21],"183":[7,6,22],"184":[8,6,23],"185":[8,4,19],"186":[9,4,24],"187":[3,1,24],"188":[4,3,1],"189":[5,7,1],"190":[5,7,1],"191":[6,7,1],"192":[6,7,1],"193":[5,7,1],"194":[4,3,1],"195":[6,7,1],"196":[8,7,1],"197":[7,7,1],"198":[6,7,1],"199":[6,7,1],"200":[6,7,1],"201":[7,7,1],"202":[4,3,1],"203":[6,7,1],"204":[6,7,1],"205":[5,7,1],"206":[5,7,1],"207":[4,3,1],"208":[6,7,1],"209":[6,7,1],"210":[7,7,1],"211":[7,7,1],"212":[7,7,1],"213":[4,3,1],"214":[7,7,1],"215":[7,7,1],"216":[7,7,1],"217":[7,7,1],"218":[6,7,1],"219":[8,3,23],"220":[9,3,39],"221":[8,3,30],"222":[15,3,145],"223":[15,3,97],"224":[20,3,97],"225":[6,3,10],"226":[3,1,1],"227":[9,3,20],"228":[4,1,24],"229":[4,1,24],"230":[12,4,78],"231":[15,4,61],"232":[9,4,40],"233":[4,1,24],"234":[4,4,1],"235":[5,8,1],"236":[5,8,1],"237":[5,8,1],"238":[5,8,1],"239":[5,8,1],"240":[4,4,1],"241":[6,8,1],"242":[5,8,1],"243":[5,8,1],"244":[5,8,1],"245":[5,8,1],"246":[5,8,1],"247":[7,8,1],"248":[4,4,1],"249":[3,8,13],"250":[9,8,1],"251":[6,8,1],"252":[6,8,1],"253":[7,8,1],"254":[6,8,1],"255":[3,1,15],"256":[4,1,30],"257":[6,4,23],"258":[5,1,24],"259":[5,5,24],"260":[2,1,1],"261":[1,2,46],"262":[1,2,105],"263":[1,2,1],"264":[1,3,9],"265":[1,3,18],"266":[3,1,5],"267":[9,3,33],"268":[6,3,45],"269":[8,3,23],"270":[8,3,41],"271":[8,3,28],"272":[2,1,1],"273":[3,2,67],"274":[1,5,34],"275":[2,2,60],"276":[1,2,141],"277":[1,2,23],"278":[1,1,9],"279":[1,1,25],"280":[1,1,33],"281":[1,2,26],"282":[1,1,7],"283":[1,1,18],"284":[1,1,4],"285":[1,1,1],"286":[1,2,42],"287":[1,2,58],"288":[1,2,1],"289":[1,3,6],"290":[1,3,25],"291":[1,1,31],"292":[1,1,56],"293":[1,1,16],"294":[2,1,86],"295":[1,3,30],"296":[4,1,53],"297":[1,5,38],"298":[2,1,20],"299":[1,1,28],"300":[1,1,1],"301":[2,1,30],"302":[1,3,8],"303":[2,1,35],"304":[1,3,17]},"averageFieldLength":[5.645901639344265,4.17049180327869,22.127868852459027],"storedFields":{"0":{"title":"Configurations","titles":[]},"1":{"title":"Basic Configuration","titles":["Configurations"]},"2":{"title":"Other configurations","titles":["Configurations"]},"3":{"title":"Example: Configuration of OneBot implementation side connected to NoneBot","titles":["Configurations"]},"4":{"title":"Other","titles":["Configurations"]},"5":{"title":"FAQ","titles":[]},"6":{"title":"Frequently Asked Questions","titles":["FAQ"]},"7":{"title":"Other questions","titles":["FAQ"]},"8":{"title":"Recommended Solution(QQ)","titles":["FAQ"]},"9":{"title":"Recommended Solution(Minecraft)","titles":["FAQ"]},"10":{"title":"Acknowledgements","titles":["FAQ"]},"11":{"title":"Install","titles":[]},"12":{"title":"Normal Installation","titles":["Install"]},"13":{"title":"Run with Docker","titles":["Install"]},"14":{"title":"Use TRSS Script","titles":["Install"]},"15":{"title":"Device Requirements","titles":["Install"]},"16":{"title":"For other questions, please refer to","titles":["Install","Device Requirements"]},"17":{"title":"Module liteyuki.bot","titles":[]},"18":{"title":"class LiteyukiBot","titles":["Module liteyuki.bot"]},"19":{"title":"func __init__(self, **kwargs) -> None","titles":["Module liteyuki.bot","class LiteyukiBot"]},"20":{"title":"func run(self)","titles":["Module liteyuki.bot","class LiteyukiBot"]},"21":{"title":"async func keep_alive(self)","titles":["Module liteyuki.bot","class LiteyukiBot"]},"22":{"title":"func restart(self, delay: int = 0)","titles":["Module liteyuki.bot","class LiteyukiBot"]},"23":{"title":"func restart_process(self, name: Optional[str] = None)","titles":["Module liteyuki.bot","class LiteyukiBot"]},"24":{"title":"func init(self, *args, **kwargs)","titles":["Module liteyuki.bot","class LiteyukiBot"]},"25":{"title":"func init_logger(self)","titles":["Module liteyuki.bot","class LiteyukiBot"]},"26":{"title":"func stop(self)","titles":["Module liteyuki.bot","class LiteyukiBot"]},"27":{"title":"func on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC","titles":["Module liteyuki.bot","class LiteyukiBot"]},"28":{"title":"func on_after_start(self, func: LIFESPAN_FUNC)","titles":["Module liteyuki.bot","class LiteyukiBot"]},"29":{"title":"func on_after_shutdown(self, func: LIFESPAN_FUNC)","titles":["Module liteyuki.bot","class LiteyukiBot"]},"30":{"title":"func on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC)","titles":["Module liteyuki.bot","class LiteyukiBot"]},"31":{"title":"func on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC","titles":["Module liteyuki.bot","class LiteyukiBot"]},"32":{"title":"func on_after_restart(self, func: LIFESPAN_FUNC)","titles":["Module liteyuki.bot","class LiteyukiBot"]},"33":{"title":"func get_bot() -> LiteyukiBot","titles":["Module liteyuki.bot"]},"34":{"title":"func get_config(key: str, default: Any = None) -> Any","titles":["Module liteyuki.bot"]},"35":{"title":"func get_config_with_compat(key: str, compat_keys: tuple[str], default: Any = None) -> Any","titles":["Module liteyuki.bot"]},"36":{"title":"Module liteyuki.bot.lifespan","titles":[]},"37":{"title":"var SYNC_LIFESPAN_FUNC","titles":["Module liteyuki.bot.lifespan"]},"38":{"title":"var ASYNC_LIFESPAN_FUNC","titles":["Module liteyuki.bot.lifespan"]},"39":{"title":"var LIFESPAN_FUNC","titles":["Module liteyuki.bot.lifespan"]},"40":{"title":"var SYNC_PROCESS_LIFESPAN_FUNC","titles":["Module liteyuki.bot.lifespan"]},"41":{"title":"var ASYNC_PROCESS_LIFESPAN_FUNC","titles":["Module liteyuki.bot.lifespan"]},"42":{"title":"var PROCESS_LIFESPAN_FUNC","titles":["Module liteyuki.bot.lifespan"]},"43":{"title":"class Lifespan","titles":["Module liteyuki.bot.lifespan"]},"44":{"title":"func __init__(self) -> None","titles":["Module liteyuki.bot.lifespan","class Lifespan"]},"45":{"title":"async func run_funcs(funcs: Sequence[LIFESPAN_FUNC | PROCESS_LIFESPAN_FUNC], *args, **kwargs) -> None","titles":["Module liteyuki.bot.lifespan","class Lifespan"]},"46":{"title":"func on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC","titles":["Module liteyuki.bot.lifespan","class Lifespan"]},"47":{"title":"func on_after_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC","titles":["Module liteyuki.bot.lifespan","class Lifespan"]},"48":{"title":"func on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC","titles":["Module liteyuki.bot.lifespan","class Lifespan"]},"49":{"title":"func on_after_shutdown(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC","titles":["Module liteyuki.bot.lifespan","class Lifespan"]},"50":{"title":"func on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC","titles":["Module liteyuki.bot.lifespan","class Lifespan"]},"51":{"title":"func on_after_restart(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC","titles":["Module liteyuki.bot.lifespan","class Lifespan"]},"52":{"title":"async func before_start(self) -> None","titles":["Module liteyuki.bot.lifespan","class Lifespan"]},"53":{"title":"async func after_start(self) -> None","titles":["Module liteyuki.bot.lifespan","class Lifespan"]},"54":{"title":"async func before_process_shutdown(self, *args, **kwargs) -> None","titles":["Module liteyuki.bot.lifespan","class Lifespan"]},"55":{"title":"async func after_shutdown(self) -> None","titles":["Module liteyuki.bot.lifespan","class Lifespan"]},"56":{"title":"async func before_process_restart(self, *args, **kwargs) -> None","titles":["Module liteyuki.bot.lifespan","class Lifespan"]},"57":{"title":"async func after_restart(self) -> None","titles":["Module liteyuki.bot.lifespan","class Lifespan"]},"58":{"title":"Module liteyuki.comm.channel","titles":[]},"59":{"title":"var SYNC_ON_RECEIVE_FUNC","titles":["Module liteyuki.comm.channel"]},"60":{"title":"var ASYNC_ON_RECEIVE_FUNC","titles":["Module liteyuki.comm.channel"]},"61":{"title":"var ON_RECEIVE_FUNC","titles":["Module liteyuki.comm.channel"]},"62":{"title":"var SYNC_FILTER_FUNC","titles":["Module liteyuki.comm.channel"]},"63":{"title":"var ASYNC_FILTER_FUNC","titles":["Module liteyuki.comm.channel"]},"64":{"title":"var FILTER_FUNC","titles":["Module liteyuki.comm.channel"]},"65":{"title":"class Channel(Generic[T])","titles":["Module liteyuki.comm.channel"]},"66":{"title":"func __init__(self, name: str, type_check: Optional[bool] = None)","titles":["Module liteyuki.comm.channel","class Channel(Generic[T])"]},"67":{"title":"func send(self, data: T)","titles":["Module liteyuki.comm.channel","class Channel(Generic[T])"]},"68":{"title":"func receive(self) -> T","titles":["Module liteyuki.comm.channel","class Channel(Generic[T])"]},"69":{"title":"async func async_receive(self) -> T","titles":["Module liteyuki.comm.channel","class Channel(Generic[T])"]},"70":{"title":"func on_receive(self, filter_func: Optional[FILTER_FUNC] = None) -> Callable[[Callable[[T], Any]], Callable[[T], Any]]","titles":["Module liteyuki.comm.channel","class Channel(Generic[T])"]},"71":{"title":"var active_channel","titles":["Module liteyuki.comm.channel"]},"72":{"title":"var passive_channel","titles":["Module liteyuki.comm.channel"]},"73":{"title":"var publish_channel","titles":["Module liteyuki.comm.channel"]},"74":{"title":"var channel_deliver_active_channel","titles":["Module liteyuki.comm.channel"]},"75":{"title":"var channel_deliver_passive_channel","titles":["Module liteyuki.comm.channel"]},"76":{"title":"func set_channel(name: str, channel: Channel)","titles":["Module liteyuki.comm.channel"]},"77":{"title":"func set_channels(channels: dict[str, Channel])","titles":["Module liteyuki.comm.channel"]},"78":{"title":"func get_channel(name: str) -> Channel","titles":["Module liteyuki.comm.channel"]},"79":{"title":"func get_channels() -> dict[str, Channel]","titles":["Module liteyuki.comm.channel"]},"80":{"title":"var channel_deliver_active_channel","titles":["Module liteyuki.comm.channel"]},"81":{"title":"var channel_deliver_passive_channel","titles":["Module liteyuki.comm.channel"]},"82":{"title":"func on_set_channel(data: tuple[str, dict[str, Any]])","titles":["Module liteyuki.comm.channel"]},"83":{"title":"func on_get_channel(data: tuple[str, dict[str, Any]])","titles":["Module liteyuki.comm.channel"]},"84":{"title":"func on_get_channels(data: tuple[str, dict[str, Any]])","titles":["Module liteyuki.comm.channel"]},"85":{"title":"Module liteyuki.comm.event","titles":[]},"86":{"title":"class Event","titles":["Module liteyuki.comm.event"]},"87":{"title":"func __init__(self, name: str, data: dict[str, Any])","titles":["Module liteyuki.comm.event","class Event"]},"88":{"title":"Module liteyuki.comm","titles":[]},"89":{"title":"Module liteyuki.comm.rpc","titles":[]},"90":{"title":"class RPC","titles":["Module liteyuki.comm.rpc"]},"91":{"title":"func __init__(self, on_calling: ON_CALLING_FUNC) -> None","titles":["Module liteyuki.comm.rpc","class RPC"]},"92":{"title":"func call(self, args: tuple, kwargs: dict) -> Any","titles":["Module liteyuki.comm.rpc","class RPC"]},"93":{"title":"Module liteyuki.comm.socks_channel","titles":[]},"94":{"title":"class SocksChannel","titles":["Module liteyuki.comm.socks_channel"]},"95":{"title":"func __init__(self, name: str)","titles":["Module liteyuki.comm.socks_channel","class SocksChannel"]},"96":{"title":"func send(self, data)","titles":["Module liteyuki.comm.socks_channel","class SocksChannel"]},"97":{"title":"func receive(self)","titles":["Module liteyuki.comm.socks_channel","class SocksChannel"]},"98":{"title":"func close(self)","titles":["Module liteyuki.comm.socks_channel","class SocksChannel"]},"99":{"title":"Module liteyuki.comm.storage","titles":[]},"100":{"title":"var _on_main_subscriber_receive_funcs","titles":["Module liteyuki.comm.storage"]},"101":{"title":"var _on_sub_subscriber_receive_funcs","titles":["Module liteyuki.comm.storage"]},"102":{"title":"class KeyValueStore","titles":["Module liteyuki.comm.storage"]},"103":{"title":"func __init__(self)","titles":["Module liteyuki.comm.storage","class KeyValueStore"]},"104":{"title":"func set(self, key: str, value: Any) -> None","titles":["Module liteyuki.comm.storage","class KeyValueStore"]},"105":{"title":"func get(self, key: str, default: Optional[Any] = None) -> Optional[Any]","titles":["Module liteyuki.comm.storage","class KeyValueStore"]},"106":{"title":"func delete(self, key: str, ignore_key_error: bool = True) -> None","titles":["Module liteyuki.comm.storage","class KeyValueStore"]},"107":{"title":"func get_all(self) -> dict[str, Any]","titles":["Module liteyuki.comm.storage","class KeyValueStore"]},"108":{"title":"func publish(self, channel_: str, data: Any) -> None","titles":["Module liteyuki.comm.storage","class KeyValueStore"]},"109":{"title":"func on_subscriber_receive(self, channel_: str) -> Callable[[ON_RECEIVE_FUNC], ON_RECEIVE_FUNC]","titles":["Module liteyuki.comm.storage","class KeyValueStore"]},"110":{"title":"async func run_subscriber_receive_funcs(channel_: str, data: Any)","titles":["Module liteyuki.comm.storage","class KeyValueStore"]},"111":{"title":"async func start_receive_loop(self)","titles":["Module liteyuki.comm.storage","class KeyValueStore"]},"112":{"title":"class GlobalKeyValueStore","titles":["Module liteyuki.comm.storage"]},"113":{"title":"func get_instance(cls)","titles":["Module liteyuki.comm.storage","class GlobalKeyValueStore"]},"114":{"title":"attr _instance = None","titles":["Module liteyuki.comm.storage","class GlobalKeyValueStore"]},"115":{"title":"attr _lock = threading.Lock()","titles":["Module liteyuki.comm.storage","class GlobalKeyValueStore"]},"116":{"title":"var shared_memory","titles":["Module liteyuki.comm.storage"]},"117":{"title":"var _ref_count","titles":["Module liteyuki.comm.storage"]},"118":{"title":"func on_get(data: tuple[str, dict[str, Any]])","titles":["Module liteyuki.comm.storage"]},"119":{"title":"func on_set(data: tuple[str, dict[str, Any]])","titles":["Module liteyuki.comm.storage"]},"120":{"title":"func on_delete(data: tuple[str, dict[str, Any]])","titles":["Module liteyuki.comm.storage"]},"121":{"title":"func on_get_all(data: tuple[str, dict[str, Any]])","titles":["Module liteyuki.comm.storage"]},"122":{"title":"Module liteyuki.core","titles":[]},"123":{"title":"Module liteyuki.config","titles":[]},"124":{"title":"func flat_config(config: dict[str, Any]) -> dict[str, Any]","titles":["Module liteyuki.config"]},"125":{"title":"func load_from_yaml(file_: str) -> dict[str, Any]","titles":["Module liteyuki.config"]},"126":{"title":"func load_from_json(file_: str) -> dict[str, Any]","titles":["Module liteyuki.config"]},"127":{"title":"func load_from_toml(file_: str) -> dict[str, Any]","titles":["Module liteyuki.config"]},"128":{"title":"func load_from_files(*files: str, *, no_warning: bool = False) -> dict[str, Any]","titles":["Module liteyuki.config"]},"129":{"title":"func load_configs_from_dirs(*directories: str, *, no_waring: bool = False) -> dict[str, Any]","titles":["Module liteyuki.config"]},"130":{"title":"func load_config_in_default(no_waring: bool = False) -> dict[str, Any]","titles":["Module liteyuki.config"]},"131":{"title":"Module liteyuki.core.manager","titles":[]},"132":{"title":"class ChannelDeliver","titles":["Module liteyuki.core.manager"]},"133":{"title":"func __init__(self, active: Channel[Any], passive: Channel[Any], channel_deliver_active: Channel[Channel[Any]], channel_deliver_passive: Channel[tuple[str, dict]], publish: Channel[tuple[str, Any]])","titles":["Module liteyuki.core.manager","class ChannelDeliver"]},"134":{"title":"class ProcessManager","titles":["Module liteyuki.core.manager"]},"135":{"title":"func __init__(self, lifespan: Lifespan)","titles":["Module liteyuki.core.manager","class ProcessManager"]},"136":{"title":"func start_all(self)","titles":["Module liteyuki.core.manager","class ProcessManager"]},"137":{"title":"func add_target(self, name: str, target: TARGET_FUNC, args: tuple = (), kwargs = None)","titles":["Module liteyuki.core.manager","class ProcessManager"]},"138":{"title":"func join_all(self)","titles":["Module liteyuki.core.manager","class ProcessManager"]},"139":{"title":"func terminate(self, name: str)","titles":["Module liteyuki.core.manager","class ProcessManager"]},"140":{"title":"func terminate_all(self)","titles":["Module liteyuki.core.manager","class ProcessManager"]},"141":{"title":"func is_process_alive(self, name: str) -> bool","titles":["Module liteyuki.core.manager","class ProcessManager"]},"142":{"title":"Module liteyuki.dev.observer","titles":[]},"143":{"title":"var CALLBACK_FUNC","titles":["Module liteyuki.dev.observer"]},"144":{"title":"var FILTER_FUNC","titles":["Module liteyuki.dev.observer"]},"145":{"title":"func debounce(wait)","titles":["Module liteyuki.dev.observer"]},"146":{"title":"class CodeModifiedHandler(FileSystemEventHandler)","titles":["Module liteyuki.dev.observer"]},"147":{"title":"func on_modified(self, event)","titles":["Module liteyuki.dev.observer","class CodeModifiedHandler(FileSystemEventHandler)"]},"148":{"title":"func on_created(self, event)","titles":["Module liteyuki.dev.observer","class CodeModifiedHandler(FileSystemEventHandler)"]},"149":{"title":"func on_deleted(self, event)","titles":["Module liteyuki.dev.observer","class CodeModifiedHandler(FileSystemEventHandler)"]},"150":{"title":"func on_moved(self, event)","titles":["Module liteyuki.dev.observer","class CodeModifiedHandler(FileSystemEventHandler)"]},"151":{"title":"func on_any_event(self, event)","titles":["Module liteyuki.dev.observer","class CodeModifiedHandler(FileSystemEventHandler)"]},"152":{"title":"func on_file_system_event(directories: tuple[str], recursive: bool = True, event_filter: FILTER_FUNC = None) -> Callable[[CALLBACK_FUNC], CALLBACK_FUNC]","titles":["Module liteyuki.dev.observer"]},"153":{"title":"Module liteyuki.dev.plugin","titles":[]},"154":{"title":"func run_plugins(*module_path: str | Path)","titles":["Module liteyuki.dev.plugin"]},"155":{"title":"Module liteyuki.dev","titles":[]},"156":{"title":"Module liteyuki.exception","titles":[]},"157":{"title":"class LiteyukiException(BaseException)","titles":["Module liteyuki.exception"]},"158":{"title":"Module liteyuki","titles":[]},"159":{"title":"var __version__","titles":["Module liteyuki"]},"160":{"title":"Module liteyuki.log","titles":[]},"161":{"title":"func get_format(level: str) -> str","titles":["Module liteyuki.log"]},"162":{"title":"func init_log(config: dict)","titles":["Module liteyuki.log"]},"163":{"title":"Module liteyuki.message.event","titles":[]},"164":{"title":"class MessageEvent","titles":["Module liteyuki.message.event"]},"165":{"title":"func __init__(self, bot_id: str, message: list[dict[str, Any]] | str, message_type: str, raw_message: str, session_id: str, user_id: str, session_type: str, receive_channel: Optional[Channel[MessageEvent]] = None, data: Optional[dict[str, Any]] = None)","titles":["Module liteyuki.message.event","class MessageEvent"]},"166":{"title":"func reply(self, message: str | dict[str, Any])","titles":["Module liteyuki.message.event","class MessageEvent"]},"167":{"title":"Module liteyuki.message","titles":[]},"168":{"title":"Module liteyuki.message.matcher","titles":[]},"169":{"title":"class Matcher","titles":["Module liteyuki.message.matcher"]},"170":{"title":"func __init__(self, rule: Rule, priority: int, block: bool)","titles":["Module liteyuki.message.matcher","class Matcher"]},"171":{"title":"func handle(self) -> Callable[[EventHandler], EventHandler]","titles":["Module liteyuki.message.matcher","class Matcher"]},"172":{"title":"async func run(self, event: MessageEvent) -> None","titles":["Module liteyuki.message.matcher","class Matcher"]},"173":{"title":"Module liteyuki.message.on","titles":[]},"174":{"title":"func add_matcher(matcher: Matcher)","titles":["Module liteyuki.message.on"]},"175":{"title":"func on_message(rule: Rule = empty_rule, priority: int = 0, block: bool = False) -> Matcher","titles":["Module liteyuki.message.on"]},"176":{"title":"func on_keywords(keywords: list[str], rule = empty_rule, priority: int = 0, block: bool = False) -> Matcher","titles":["Module liteyuki.message.on"]},"177":{"title":"Module liteyuki.message.session","titles":[]},"178":{"title":"Module liteyuki.message.rule","titles":[]},"179":{"title":"var RuleHandlerFunc","titles":["Module liteyuki.message.rule"]},"180":{"title":"class Rule","titles":["Module liteyuki.message.rule"]},"181":{"title":"func __init__(self, handler: RuleHandlerFunc)","titles":["Module liteyuki.message.rule","class Rule"]},"182":{"title":"func self | other: Rule => Rule","titles":["Module liteyuki.message.rule","class Rule"]},"183":{"title":"func self & other: Rule => Rule","titles":["Module liteyuki.message.rule","class Rule"]},"184":{"title":"async func self () event: MessageEvent => bool","titles":["Module liteyuki.message.rule","class Rule"]},"185":{"title":"async func empty_rule(event: MessageEvent) -> bool","titles":["Module liteyuki.message.rule"]},"186":{"title":"async func is_su_rule(event: MessageEvent) -> bool","titles":["Module liteyuki.message.rule"]},"187":{"title":"Module liteyuki.mkdoc","titles":[]},"188":{"title":"class DefType(Enum)","titles":["Module liteyuki.mkdoc"]},"189":{"title":"attr FUNCTION = 'function'","titles":["Module liteyuki.mkdoc","class DefType(Enum)"]},"190":{"title":"attr METHOD = 'method'","titles":["Module liteyuki.mkdoc","class DefType(Enum)"]},"191":{"title":"attr STATIC_METHOD = 'staticmethod'","titles":["Module liteyuki.mkdoc","class DefType(Enum)"]},"192":{"title":"attr CLASS_METHOD = 'classmethod'","titles":["Module liteyuki.mkdoc","class DefType(Enum)"]},"193":{"title":"attr PROPERTY = 'property'","titles":["Module liteyuki.mkdoc","class DefType(Enum)"]},"194":{"title":"class FunctionInfo(BaseModel)","titles":["Module liteyuki.mkdoc"]},"195":{"title":"attr name: str = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class FunctionInfo(BaseModel)"]},"196":{"title":"attr args: list[tuple[str, str]] = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class FunctionInfo(BaseModel)"]},"197":{"title":"attr return_type: str = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class FunctionInfo(BaseModel)"]},"198":{"title":"attr docstring: str = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class FunctionInfo(BaseModel)"]},"199":{"title":"attr source_code: str = ''","titles":["Module liteyuki.mkdoc","class FunctionInfo(BaseModel)"]},"200":{"title":"attr type: DefType = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class FunctionInfo(BaseModel)"]},"201":{"title":"attr is_async: bool = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class FunctionInfo(BaseModel)"]},"202":{"title":"class AttributeInfo(BaseModel)","titles":["Module liteyuki.mkdoc"]},"203":{"title":"attr name: str = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class AttributeInfo(BaseModel)"]},"204":{"title":"attr type: str = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class AttributeInfo(BaseModel)"]},"205":{"title":"attr value: Any = None","titles":["Module liteyuki.mkdoc","class AttributeInfo(BaseModel)"]},"206":{"title":"attr docstring: str = ''","titles":["Module liteyuki.mkdoc","class AttributeInfo(BaseModel)"]},"207":{"title":"class ClassInfo(BaseModel)","titles":["Module liteyuki.mkdoc"]},"208":{"title":"attr name: str = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class ClassInfo(BaseModel)"]},"209":{"title":"attr docstring: str = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class ClassInfo(BaseModel)"]},"210":{"title":"attr methods: list[FunctionInfo] = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class ClassInfo(BaseModel)"]},"211":{"title":"attr attributes: list[AttributeInfo] = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class ClassInfo(BaseModel)"]},"212":{"title":"attr inherit: list[str] = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class ClassInfo(BaseModel)"]},"213":{"title":"class ModuleInfo(BaseModel)","titles":["Module liteyuki.mkdoc"]},"214":{"title":"attr module_path: str = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class ModuleInfo(BaseModel)"]},"215":{"title":"attr functions: list[FunctionInfo] = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class ModuleInfo(BaseModel)"]},"216":{"title":"attr classes: list[ClassInfo] = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class ModuleInfo(BaseModel)"]},"217":{"title":"attr attributes: list[AttributeInfo] = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class ModuleInfo(BaseModel)"]},"218":{"title":"attr docstring: str = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class ModuleInfo(BaseModel)"]},"219":{"title":"func get_relative_path(base_path: str, target_path: str) -> str","titles":["Module liteyuki.mkdoc"]},"220":{"title":"func write_to_files(file_data: dict[str, str])","titles":["Module liteyuki.mkdoc"]},"221":{"title":"func get_file_list(module_folder: str)","titles":["Module liteyuki.mkdoc"]},"222":{"title":"func get_module_info_normal(file_path: str, ignore_private: bool = True) -> ModuleInfo","titles":["Module liteyuki.mkdoc"]},"223":{"title":"func generate_markdown(module_info: ModuleInfo, front_matter = None, lang: str = 'zh-CN') -> str","titles":["Module liteyuki.mkdoc"]},"224":{"title":"func generate_docs(module_folder: str, output_dir: str, with_top: bool = False, lang: str = 'zh-CN', ignored_paths = None)","titles":["Module liteyuki.mkdoc"]},"225":{"title":"var no_module_name_pyfile_path","titles":["Module liteyuki.mkdoc"]},"226":{"title":"Module liteyuki.plugin","titles":[]},"227":{"title":"func get_loaded_plugins() -> dict[str, Plugin]","titles":["Module liteyuki.plugin"]},"228":{"title":"Module liteyuki.plugin.manager","titles":[]},"229":{"title":"Module liteyuki.plugin.load","titles":[]},"230":{"title":"func load_plugin(module_path: str | Path) -> Optional[Plugin]","titles":["Module liteyuki.plugin.load"]},"231":{"title":"func load_plugins(*plugin_dir: str, *, ignore_warning: bool = True) -> set[Plugin]","titles":["Module liteyuki.plugin.load"]},"232":{"title":"func format_display_name(display_name: str, plugin_type: PluginType) -> str","titles":["Module liteyuki.plugin.load"]},"233":{"title":"Module liteyuki.plugin.model","titles":[]},"234":{"title":"class PluginType(Enum)","titles":["Module liteyuki.plugin.model"]},"235":{"title":"attr APPLICATION = 'application'","titles":["Module liteyuki.plugin.model","class PluginType(Enum)"]},"236":{"title":"attr SERVICE = 'service'","titles":["Module liteyuki.plugin.model","class PluginType(Enum)"]},"237":{"title":"attr MODULE = 'module'","titles":["Module liteyuki.plugin.model","class PluginType(Enum)"]},"238":{"title":"attr UNCLASSIFIED = 'unclassified'","titles":["Module liteyuki.plugin.model","class PluginType(Enum)"]},"239":{"title":"attr TEST = 'test'","titles":["Module liteyuki.plugin.model","class PluginType(Enum)"]},"240":{"title":"class PluginMetadata(BaseModel)","titles":["Module liteyuki.plugin.model"]},"241":{"title":"attr name: str = NO_DEFAULT","titles":["Module liteyuki.plugin.model","class PluginMetadata(BaseModel)"]},"242":{"title":"attr description: str = ''","titles":["Module liteyuki.plugin.model","class PluginMetadata(BaseModel)"]},"243":{"title":"attr usage: str = ''","titles":["Module liteyuki.plugin.model","class PluginMetadata(BaseModel)"]},"244":{"title":"attr type: PluginType = PluginType.UNCLASSIFIED","titles":["Module liteyuki.plugin.model","class PluginMetadata(BaseModel)"]},"245":{"title":"attr author: str = ''","titles":["Module liteyuki.plugin.model","class PluginMetadata(BaseModel)"]},"246":{"title":"attr homepage: str = ''","titles":["Module liteyuki.plugin.model","class PluginMetadata(BaseModel)"]},"247":{"title":"attr extra: dict[str, Any] = {}","titles":["Module liteyuki.plugin.model","class PluginMetadata(BaseModel)"]},"248":{"title":"class Plugin(BaseModel)","titles":["Module liteyuki.plugin.model"]},"249":{"title":"func hash self","titles":["Module liteyuki.plugin.model","class Plugin(BaseModel)"]},"250":{"title":"attr model_config = {'arbitrary_types_allowed': True}","titles":["Module liteyuki.plugin.model","class Plugin(BaseModel)"]},"251":{"title":"attr name: str = NO_DEFAULT","titles":["Module liteyuki.plugin.model","class Plugin(BaseModel)"]},"252":{"title":"attr module: ModuleType = NO_DEFAULT","titles":["Module liteyuki.plugin.model","class Plugin(BaseModel)"]},"253":{"title":"attr module_name: str = NO_DEFAULT","titles":["Module liteyuki.plugin.model","class Plugin(BaseModel)"]},"254":{"title":"attr metadata: Optional[PluginMetadata] = None","titles":["Module liteyuki.plugin.model","class Plugin(BaseModel)"]},"255":{"title":"Module liteyuki.plugins","titles":[]},"256":{"title":"Module liteyuki.plugins.liteecho","titles":[]},"257":{"title":"async func liteecho(event: MessageEvent)","titles":["Module liteyuki.plugins.liteecho"]},"258":{"title":"Module liteyuki.plugins.plugin_loader","titles":[]},"259":{"title":"func default_plugins_loader()","titles":["Module liteyuki.plugins.plugin_loader"]},"260":{"title":"Channel Communication","titles":[]},"261":{"title":"Introduction","titles":["Channel Communication"]},"262":{"title":"Example","titles":["Channel Communication"]},"263":{"title":"共享内存通信","titles":["Channel Communication"]},"264":{"title":"简介","titles":["Channel Communication","共享内存通信"]},"265":{"title":"示例","titles":["Channel Communication","共享内存通信"]},"266":{"title":"Module liteyuki.utils","titles":[]},"267":{"title":"func is_coroutine_callable(call: Callable[..., Any]) -> bool","titles":["Module liteyuki.utils"]},"268":{"title":"func run_coroutine(*coro: Coroutine)","titles":["Module liteyuki.utils"]},"269":{"title":"func run_coroutine_in_thread(*coro: Coroutine)","titles":["Module liteyuki.utils"]},"270":{"title":"func path_to_module_name(path: Path) -> str","titles":["Module liteyuki.utils"]},"271":{"title":"func async_wrapper(func: Callable[..., Any]) -> Callable[..., Coroutine]","titles":["Module liteyuki.utils"]},"272":{"title":"Development Guide","titles":[]},"273":{"title":"How to Develop","titles":["Development Guide"]},"274":{"title":"Suggestions","titles":["Development Guide","How to Develop"]},"275":{"title":"Project Structure","titles":["Development Guide"]},"276":{"title":"Standardization","titles":["Development Guide"]},"277":{"title":"Finally","titles":["Development Guide"]},"278":{"title":"轻雪函数","titles":[]},"279":{"title":"函数文件","titles":["轻雪函数"]},"280":{"title":"命令文档","titles":["轻雪函数"]},"281":{"title":"示例","titles":["轻雪函数","命令文档"]},"282":{"title":"API","titles":["轻雪函数"]},"283":{"title":"结束关键字","titles":["轻雪函数"]},"284":{"title":"简介","titles":[]},"285":{"title":"开始","titles":["简介"]},"286":{"title":"创建插件","titles":["简介","开始"]},"287":{"title":"编写逻辑部分","titles":["简介","开始"]},"288":{"title":"加载插件","titles":["简介","开始"]},"289":{"title":"方法1","titles":["简介","开始","加载插件"]},"290":{"title":"方法2","titles":["简介","开始","加载插件"]},"291":{"title":"简介","titles":[]},"292":{"title":"加载资源包","titles":["简介"]},"293":{"title":"基础插件","titles":[]},"294":{"title":"轻雪命令liteyuki_command","titles":["基础插件"]},"295":{"title":"命令别名","titles":["基础插件","轻雪命令liteyuki_command"]},"296":{"title":"插件/包管理器 liteyuki_pacman","titles":["基础插件"]},"297":{"title":"命令别名","titles":["基础插件","插件/包管理器 liteyuki_pacman"]},"298":{"title":"用户管理liteyuki_user","titles":["基础插件"]},"299":{"title":"用户协议","titles":[]},"300":{"title":"功能插件命令","titles":[]},"301":{"title":"轻雪天气liteyuki_weather","titles":["功能插件命令"]},"302":{"title":"命令别名","titles":["功能插件命令","轻雪天气liteyuki_weather"]},"303":{"title":"统计信息liteyuki_statistics","titles":["功能插件命令"]},"304":{"title":"命令别名","titles":["功能插件命令","统计信息liteyuki_statistics"]}},"dirtCount":0,"index":[["或",{"2":{"303":2}}],["或插件路径",{"2":{"230":1}}],["当前bot",{"2":{"303":1}}],["当前群聊",{"2":{"303":1}}],["当前会话启用",{"2":{"296":1}}],["秒",{"2":{"303":2}}],["小时",{"2":{"303":2}}],["天",{"2":{"303":2}}],["天气",{"2":{"301":1,"302":1}}],["格式",{"2":{"303":1}}],["格式为onebot",{"2":{"294":1}}],["统计时间范围为duration",{"2":{"303":1}}],["统计周期为period",{"2":{"303":1}}],["统计信息",{"2":{"303":1}}],["统计信息liteyuki",{"0":{"303":1},"1":{"304":1}}],["功能",{"2":{"303":1}}],["功能插件命令",{"0":{"300":1},"1":{"301":1,"302":1,"303":1,"304":1}}],["绑定城市",{"2":{"302":1}}],["绑定查询城市",{"2":{"301":1}}],["个人全局生效",{"2":{"301":1}}],["个人信息",{"2":{"298":1}}],["海淀",{"2":{"301":1}}],["北京",{"2":{"301":1}}],["支持中英文",{"2":{"301":2}}],["支持中英文城市名",{"2":{"301":1}}],["支持多个关键词查询",{"2":{"301":1}}],["支持绑定城市",{"2":{"301":1}}],["支持单行注释",{"2":{"279":1}}],["且通过安全的方式传输到轻雪的服务器",{"2":{"299":1}}],["且通道标识为",{"2":{"262":1}}],["系统信息及python信息",{"2":{"299":1}}],["内存",{"2":{"299":1}}],["内存共享是线程安全的",{"2":{"264":1}}],["内存共享使得代码编写更加简洁",{"2":{"264":1}}],["分钟",{"2":{"303":2}}],["分发",{"2":{"299":1}}],["分工明确",{"2":{"123":1}}],["修改",{"2":{"299":1}}],["修改优先级",{"2":{"296":1}}],["本项目不会收集用户的任何隐私信息",{"2":{"299":1}}],["本项目遵循mit协议",{"2":{"299":1}}],["本模块用于实现rpc",{"2":{"89":1}}],["本模块用于轻雪主进程和子进程之间的通信的事件类",{"2":{"85":1}}],["本模块定义了一个通用的通道类",{"2":{"58":1}}],["受限于nonebot2钩子函数的依赖注入参数",{"2":{"297":1}}],["帮助",{"2":{"297":1}}],["列表",{"2":{"297":1}}],["列出所有资源包",{"2":{"296":1}}],["列出所有插件",{"2":{"296":1}}],["更改",{"2":{"297":1}}],["更新",{"2":{"297":1}}],["更新插件商店索引",{"2":{"296":1}}],["更新轻雪",{"2":{"294":1,"295":1}}],["全局停用",{"2":{"297":1}}],["全局启用",{"2":{"296":1,"297":1}}],["搜索",{"2":{"297":1}}],["卸载",{"2":{"297":2}}],["卸载资源包",{"2":{"296":1}}],["卸载插件",{"2":{"296":1}}],["私聊所有人可用",{"2":{"296":2}}],["包管理器",{"0":{"296":1},"1":{"297":1}}],["包括子task",{"2":{"280":1}}],["切换图片模式",{"2":{"295":1}}],["状态",{"2":{"295":1}}],["别名",{"2":{"295":1,"297":1,"298":1,"302":1,"304":1}}],["所有人",{"2":{"294":1,"296":1,"298":3}}],["所以在编写lyfunction时也要注意异步的调用",{"2":{"283":1}}],["群聊",{"2":{"295":1}}],["群聊仅群主",{"2":{"294":1,"296":2}}],["群号",{"2":{"294":1}}],["管理员",{"2":{"294":1,"296":2}}],["停用插件",{"2":{"296":2}}],["停用",{"2":{"295":1,"297":1}}],["停用机器人",{"2":{"294":1}}],["停止后钩子",{"2":{"55":1}}],["停止前钩子",{"2":{"54":1}}],["停止",{"2":{"44":1}}],["停止轻雪",{"2":{"23":1,"26":1}}],["该功能需要commit",{"2":{"294":1}}],["该模块封装通道实现",{"2":{"264":1}}],["该模块用于存放一些开发工具",{"2":{"155":1}}],["该模块用于常用配置文件的加载",{"2":{"123":1}}],["该模块用于轻雪主进程和nonebot子进程之间的通信",{"2":{"88":1}}],["推荐私聊使用",{"2":{"294":1}}],["推荐在编写html时同时更改对应js代码",{"2":{"291":1}}],["查询目标地实时天气",{"2":{"301":1}}],["查询实时天气",{"2":{"301":1}}],["查询",{"2":{"295":1,"298":1}}],["查询配置项",{"2":{"294":1}}],["查看用户信息菜单",{"2":{"298":1}}],["查看插件帮助",{"2":{"296":1}}],["查看轻雪文档",{"2":{"294":1}}],["查看统计信息和状态",{"2":{"294":1}}],["查看当前bot",{"2":{"294":1}}],["和风天气的天气key",{"2":{"301":1}}],["和",{"2":{"294":1}}],["和10是不一样的",{"2":{"294":1}}],["和config目录下的所有配置文件",{"2":{"130":1}}],["输入值会被执行以转换为正确的类型",{"2":{"294":1}}],["输出",{"2":{"279":1}}],["输出文件夹",{"2":{"224":1}}],["输出文件",{"2":{"220":1}}],["版本",{"2":{"294":1}}],["❌",{"2":{"294":11}}],["超级用户可用",{"2":{"294":1,"296":2}}],["超级用户",{"2":{"294":10,"296":10}}],["重载",{"2":{"297":1}}],["重载所有资源包",{"2":{"296":1}}],["重载资源",{"2":{"295":1}}],["重载轻雪",{"2":{"294":1}}],["重启轻雪",{"2":{"295":1}}],["重启轻雪即可加载插件",{"2":{"289":1}}],["重启轻雪本体",{"2":{"22":1}}],["重启后钩子",{"2":{"57":1}}],["重启前钩子",{"2":{"56":1}}],["重启",{"2":{"44":1}}],["举例",{"2":{"294":1}}],["权限",{"2":{"294":1,"296":2,"298":1}}],["说明",{"2":{"294":1,"296":2,"298":1}}],["~代替",{"2":{"293":1}}],["~可以使用插件",{"2":{"293":1}}],["安装插件",{"2":{"296":1}}],["安装",{"2":{"293":1,"297":1}}],["安装的插件",{"2":{"230":1}}],["命令",{"2":{"294":1,"295":1,"296":2,"297":1,"298":2,"301":1,"302":1,"303":1,"304":1}}],["命令别名",{"0":{"295":1,"297":1,"302":1,"304":1},"2":{"293":1,"298":1}}],["命令文档",{"0":{"280":1},"1":{"281":1}}],["为可选参数",{"2":{"293":1}}],["为必填参数",{"2":{"293":1}}],["为子进程重启时调用",{"2":{"31":1}}],["为子进程停止时调用",{"2":{"30":1}}],["同时用户也应该自行选择可用的资源包",{"2":{"292":1}}],["同步接收数据",{"2":{"68":1}}],["同步接收函数",{"2":{"59":1}}],["同步过滤函数",{"2":{"62":1}}],["同步进程生命周期函数",{"2":{"40":1}}],["同步生命周期函数",{"2":{"37":1}}],["第三方资源包开发者需要注意版本兼容性",{"2":{"292":1}}],["对于主动推送的插件不生效",{"2":{"297":1}}],["对于不同资源包的不同文件",{"2":{"292":1}}],["对外启动方法",{"2":{"136":1}}],["└─",{"2":{"292":1}}],["└───",{"2":{"292":1}}],["└─resource",{"2":{"292":2}}],["├─templates",{"2":{"292":1}}],["├─metadata",{"2":{"292":2}}],["正常的路径应该是这样的",{"2":{"292":1}}],["只需要将其解压到根目录resources目录下即可",{"2":{"292":1}}],["zip格式压缩的",{"2":{"292":1}}],["zh",{"0":{"223":1,"224":1},"2":{"2":1,"223":2,"224":1,"275":1}}],["以上内容仅用于项目的优化",{"2":{"299":1}}],["以避免出现无法预料的问题",{"2":{"291":1}}],["以下我们会编写一个简单的插件",{"2":{"287":1}}],["错位等无法预料的事情发生",{"2":{"291":1}}],["异常",{"2":{"291":1}}],["异步任务结束关键字",{"2":{"283":1}}],["异步等待",{"2":{"280":1}}],["异步包装器",{"2":{"271":1}}],["异步接收数据",{"2":{"69":1}}],["异步接收函数",{"2":{"60":1}}],["异步过滤函数",{"2":{"63":1}}],["异步进程生命周期函数",{"2":{"41":1}}],["异步生命周期函数",{"2":{"38":1}}],["请阅读插件主页的说明",{"2":{"297":1}}],["请确保您所编写的html代码能被bot解析",{"2":{"291":1}}],["请注意",{"2":{"291":1}}],["请不要将需要动态加载的内容写入配置文件",{"2":{"123":1}}],["欢迎各位投稿资源包到轻雪资源商店",{"2":{"291":1}}],["部分异常信息",{"2":{"299":1}}],["部分内容制作需要一点点前端基础",{"2":{"291":1}}],["部分来源于",{"2":{"266":1}}],["讲起打包成一个新的资源包",{"2":{"291":1}}],["仅需按照原有路径进行文件替换即可",{"2":{"291":1}}],["那么加载b包后",{"2":{"292":1}}],["那么你能够很快就上手",{"2":{"291":1}}],["那么当前所有函数包的task都会被截停销毁",{"2":{"283":1}}],["如果你接触过minecraft的资源包",{"2":{"291":1}}],["如果你想同时输出多行内容可以尝试换行符",{"2":{"279":1}}],["资源",{"2":{"291":1}}],["资源包管理",{"2":{"296":1}}],["资源包的结构会随着轻雪的更新而有变动",{"2":{"292":1}}],["资源包的制作很简单",{"2":{"291":1}}],["资源包加载遵循一个优先级",{"2":{"292":1}}],["资源包描述",{"2":{"292":1}}],["资源包名称",{"2":{"292":1}}],["资源包通常是以",{"2":{"292":1}}],["资源包",{"2":{"291":1,"297":1}}],["它允许你一定程度上自定义轻雪的外观",{"2":{"291":1}}],["它允许你在轻雪中运行一些自定义的由数据驱动的命令",{"2":{"278":1}}],["字体包",{"2":{"291":1}}],["字符串",{"2":{"223":1}}],["亦可根据用途称为主题包",{"2":{"291":1}}],["保存后轻雪会自动重载nonebot进程",{"2":{"290":1}}],["保持轻雪运行",{"2":{"21":1}}],["我们在src",{"2":{"290":1}}],["然后运行python",{"2":{"290":1}}],["方法2",{"0":{"290":1}}],["方法1",{"0":{"289":1}}],["用户协议",{"0":{"299":1}}],["用户管理liteyuki",{"0":{"298":1}}],["用observer的on",{"2":{"287":1}}],["用于统计bot接收到的消息",{"2":{"303":1}}],["用于开发nonebot时进行文件系统变更重载",{"2":{"287":1}}],["用于结束当前已完成function的执行",{"2":{"283":1}}],["用于存放内置插件",{"2":{"255":1}}],["用于获取和唯一标识",{"2":{"137":1}}],["用于进程间通信",{"2":{"58":1}}],["排除的文件扩展名",{"2":{"287":1}}],["因此插件主要是一些后台任务或者与聊天机器人的通信",{"2":{"287":1}}],["定义插件元数据",{"2":{"286":1}}],["定义变量",{"2":{"280":1}}],["导入轻雪bot和日志",{"2":{"287":1}}],["导入文件系统事件",{"2":{"287":1}}],["导入文件系统观察器",{"2":{"287":1}}],["导入文件夹下多个插件",{"2":{"231":1}}],["导入逻辑部分",{"2":{"286":1}}],["即后加载的资源包会覆盖前面的资源包",{"2":{"292":1}}],["即可创建一个插件",{"2":{"286":1}}],["即不等待",{"2":{"280":1}}],["首先创建一个文件夹",{"2":{"286":1}}],["开始",{"0":{"285":1},"1":{"286":1,"287":1,"288":1,"289":1,"290":1}}],["编写逻辑部分",{"0":{"287":1}}],["编写轻雪函数推荐你使用vs",{"2":{"283":1}}],["编辑时的语法高亮可采取shell格式",{"2":{"279":1}}],["有一个task任务没有完成而await被执行了",{"2":{"283":1}}],["的情况是效率提升的关键",{"2":{"283":1}}],["单线程走到底",{"2":{"283":1}}],["单位s",{"2":{"280":1}}],["避免出现",{"2":{"283":1}}],["由于liteyukibot基于异步运行",{"2":{"283":1}}],["结束关键字",{"0":{"283":1}}],["结束函数关键字",{"2":{"280":1}}],["理论上所有基于onebotv11的api都可调用",{"2":{"282":1}}],["则该文件夹不会被识别为资源包",{"2":{"292":1}}],["则需要删除await",{"2":{"281":1}}],["则传入泛型默认开启",{"2":{"66":1}}],["无需手动创建实例",{"2":{"290":1}}],["无需手动初始化bot",{"2":{"154":1}}],["无限戳",{"2":{"281":1}}],["执行",{"2":{"281":1}}],["疯狂戳好友",{"2":{"281":1}}],["否则会导致渲染失败或渲染结果不理想",{"2":{"291":1}}],["否则task对象会被销毁",{"2":{"280":1}}],["否则默认关闭",{"2":{"66":1}}],["需要在最后调用",{"2":{"280":1}}],["等待所有异步任务结束",{"2":{"280":1}}],["使用通用日期简写",{"2":{"303":2}}],["使用此项目代表你已经同意以上协议",{"2":{"299":1}}],["使用开发工具快速运行插件",{"2":{"290":1}}],["使用",{"2":{"281":1}}],["使用新的task执行命令",{"2":{"280":1}}],["使用watchdog监控文件变化并重启bot",{"2":{"142":1}}],["也支持句末注释",{"2":{"279":1}}],["例如npm",{"2":{"293":1}}],["例如nonebot插件中",{"2":{"262":1}}],["例如你在a中定义了templates",{"2":{"292":1}}],["例如html",{"2":{"291":1}}],["例如main",{"2":{"290":1}}],["例如watchdog",{"2":{"286":1,"289":1}}],["例如",{"2":{"279":2,"292":1,"301":1}}],["例如test",{"2":{"279":1,"290":1}}],["函数文件放在资源包的functions目录下",{"2":{"279":1}}],["函数文件",{"0":{"279":1}}],["函数列表",{"2":{"45":1}}],["属于资源包的一部分",{"2":{"278":1}}],["类似于minecraft的mcfunction",{"2":{"278":1}}],["类似于redis",{"2":{"99":1}}],["是可以相对引用的",{"2":{"292":1}}],["是轻雪的一个功能",{"2":{"278":1}}],["是否为协程可调用对象",{"2":{"267":1}}],["是否忽略警告",{"2":{"231":1}}],["是否忽略键不存在的错误",{"2":{"106":1}}],["是否包含顶层文件夹",{"2":{"224":1}}],["是否阻断后续优先级更低的匹配器",{"2":{"170":1}}],["是否递归监听子目录",{"2":{"152":1}}],["是否开启类型检查",{"2":{"66":1}}],["路径a",{"2":{"270":1}}],["转换路径为模块名",{"2":{"270":1}}],["可用",{"2":{"294":1}}],["可用参数",{"2":{"294":1}}],["可以在配置文件中把auto",{"2":{"299":1}}],["可以在a的index",{"2":{"292":1}}],["可以在此基础上进行修改",{"2":{"291":1}}],["可以很高程度地扩展轻雪的功能",{"2":{"284":1}}],["可以是本地插件或是通过",{"2":{"230":1}}],["可递归",{"2":{"280":1}}],["可调用对象",{"2":{"267":1}}],["判断是否为协程可调用对象",{"2":{"267":1}}],["并且应该在metadata",{"2":{"292":1}}],["并且不用修改源代码",{"2":{"291":1}}],["并在其中写入一些代码",{"2":{"290":1}}],["并在其中写入以下代码",{"2":{"290":1}}],["并在其中创建一个",{"2":{"286":1}}],["并遵循其许可进行修改",{"2":{"266":1}}],["并发运行异步函数",{"2":{"45":1}}],["一个",{"2":{"286":1}}],["一个键不要多次出现",{"2":{"123":1}}],["一些常用的工具类",{"2":{"266":1}}],["示例",{"0":{"265":1,"281":1}}],["线程锁会自动保护共享内存的读写操作",{"2":{"264":1}}],["相比于普通进程通信",{"2":{"264":1}}],["相对路径",{"2":{"220":1}}],["简介",{"0":{"264":1,"284":1,"291":1},"1":{"285":1,"286":1,"287":1,"288":1,"289":1,"290":1,"292":1}}],["被动模式",{"2":{"262":1}}],["被动通道传递通道",{"2":{"75":1,"81":1}}],["被动通道",{"2":{"72":1}}],["每隔0",{"2":{"281":1}}],["每行一个命令",{"2":{"279":1}}],["每次接收到字符串数据时都会运行",{"2":{"262":1}}],["每3秒发送一次消息",{"2":{"262":1}}],["每个配置文件给一个或一类服务提供配置",{"2":{"123":1}}],["创建入口文件",{"2":{"290":1}}],["创建插件",{"0":{"286":1}}],["创建子进程的同时会初始化一个被动通道和一个主动通道",{"2":{"262":1}}],["创建asyncio",{"2":{"136":1}}],["应在初始化时调用",{"2":{"259":1}}],["根据不同类型插件设置颜色",{"2":{"232":1}}],["加载",{"2":{"297":1}}],["加载资源包",{"0":{"292":1},"2":{"296":1}}],["加载插件",{"0":{"288":1},"1":{"289":1,"290":1}}],["加载插件加载器",{"2":{"19":1}}],["加载单个插件",{"2":{"230":1}}],["插件信息",{"2":{"299":1}}],["插件停用只能阻断传入响应",{"2":{"297":1}}],["插件管理",{"2":{"296":1,"297":1}}],["插件",{"0":{"296":1},"1":{"297":1}}],["插件描述",{"2":{"286":1}}],["插件版本",{"2":{"286":1}}],["插件类型",{"2":{"232":1,"286":1}}],["插件名称",{"2":{"230":1,"232":1,"286":1}}],["插件字典",{"2":{"227":1}}],["插件路径",{"2":{"154":1}}],["去头路径",{"2":{"225":1}}],["忽略的路径",{"2":{"224":1}}],["忽略私有函数和类",{"2":{"222":1}}],["模块名",{"2":{"270":1}}],["模块文件夹",{"2":{"224":1}}],["模块信息",{"2":{"222":1,"223":1}}],["源代码",{"2":{"223":1,"265":1}}],["+",{"2":{"223":2,"270":1}}],["+=",{"2":{"22":1,"70":1,"223":15}}],["语言包等",{"2":{"291":1}}],["语言",{"2":{"223":1,"224":1}}],["自定义选项title",{"2":{"223":1}}],["自动调用",{"2":{"24":1}}],["你在a包中定义了一个index",{"2":{"292":1}}],["你自己制作的资源包也应该遵循这个规则",{"2":{"292":1}}],["你也可以自己制作资源包",{"2":{"291":1}}],["你的插件代码",{"2":{"286":1}}],["你可以选择开启auto",{"2":{"299":1}}],["你可以自由使用",{"2":{"299":1}}],["你可以自定义一些信息",{"2":{"292":1}}],["你可以在多个线程中读写共享内存",{"2":{"264":1}}],["你可以通过storage模块实现内存共享通信",{"2":{"264":1}}],["你可在此自定义生成的markdown格式",{"2":{"223":1}}],["你应该使用其他储存方式",{"2":{"123":1}}],["生成文档",{"2":{"224":1}}],["生成模块的markdown",{"2":{"223":1}}],["生命周期函数",{"2":{"27":2,"28":2,"29":2,"30":2,"31":2,"32":2,"39":1,"46":2,"47":2,"49":2,"51":2}}],["生命周期管理",{"2":{"19":1}}],["文件内容为一系列的命令",{"2":{"279":1}}],["文件名以",{"2":{"279":1}}],["文件夹路径",{"2":{"231":1}}],["文件路径",{"2":{"222":1}}],["文件数据",{"2":{"220":1}}],["目标路径",{"2":{"219":1}}],["基础插件",{"0":{"293":1},"1":{"294":1,"295":1,"296":1,"297":1,"298":1}}],["基础路径",{"2":{"219":1}}],["基于socket的通道",{"2":{"93":1}}],["基于ipc",{"2":{"89":1}}],["x26",{"2":{"176":1,"223":4}}],["x3c",{"2":{"20":4,"22":1,"162":5,"174":1,"223":8,"230":2,"232":2,"280":6,"301":2,"303":2}}],["505468b及以后的lagrange",{"2":{"294":1}}],["59",{"2":{"228":1,"229":1}}],["55",{"2":{"178":1}}],["52",{"2":{"173":1}}],["51",{"2":{"168":1}}],["添加配置项",{"2":{"294":1}}],["添加sleep",{"2":{"281":1}}],["添加处理函数",{"2":{"171":1}}],["添加进程",{"2":{"137":1}}],["优先级",{"2":{"170":1}}],["规则函数签名",{"2":{"179":1}}],["规则",{"2":{"170":1}}],["匹配器",{"2":{"170":1}}],["回复消息",{"2":{"166":1}}],["下午12",{"2":{"256":1}}],["下午11",{"2":{"228":1,"229":1}}],["下午10",{"2":{"163":1,"167":1,"168":1,"173":1,"177":1,"178":1,"258":1}}],["下午8",{"2":{"36":1}}],["⭕",{"2":{"162":1}}],["⚠️",{"2":{"162":1}}],["✅",{"2":{"162":1}}],["ℹ️信息",{"2":{"262":4}}],["ℹ️",{"2":{"162":1}}],["🐛",{"2":{"162":1}}],["在群聊启用",{"2":{"294":1}}],["在普通图片和markdown大图之间切换",{"2":{"294":1}}],["在b中定义了templates",{"2":{"292":1}}],["在配置文件中的liteyuki",{"2":{"289":1}}],["在设备上执行命令",{"2":{"280":1}}],["在发信器输出",{"2":{"279":1}}],["在新线程中运行协程",{"2":{"269":1}}],["在任意进程中均可使用",{"2":{"265":1}}],["在子进程中",{"2":{"262":1}}],["在轻雪插件中",{"2":{"262":1}}],["在语言加载完成后执行",{"2":{"162":1}}],["在主进程中运行",{"2":{"111":1}}],["31",{"2":{"256":1}}],["3",{"2":{"159":1,"231":1,"262":1}}],["300~500mb",{"2":{"15":1}}],["6",{"2":{"159":1}}],["测试版本号",{"2":{"159":1}}],["此模块为内置插件文件夹",{"2":{"255":1}}],["此模块为liteyuki的框架整体",{"2":{"158":1}}],["此模块用于注册观察者函数",{"2":{"142":1}}],["参考liteyuki",{"2":{"154":1}}],["参数列表",{"2":{"294":2}}],["参数为调用set",{"2":{"262":1}}],["参数",{"2":{"24":1,"293":1,"303":1}}],["运行环境的设备信息",{"2":{"299":1}}],["运行在主进程中",{"2":{"284":1}}],["运行协程",{"2":{"268":1}}],["运行处理函数",{"2":{"172":1}}],["运行插件",{"2":{"154":1}}],["运行订阅者接收函数",{"2":{"110":1}}],["上午12",{"2":{"233":1}}],["上午11",{"2":{"131":1}}],["上午6",{"2":{"187":1}}],["上午9",{"2":{"160":1}}],["上午5",{"2":{"153":1}}],["装饰一个函数在接收到数据后执行",{"2":{"152":1}}],["装饰器",{"2":{"70":1,"109":1,"152":1,"171":2}}],["返回true则执行回调函数",{"2":{"152":1}}],["事件过滤器",{"2":{"152":1}}],["事件循环",{"2":{"19":1}}],["监听目录们",{"2":{"152":1}}],["防抖函数",{"2":{"145":1}}],["防止获取空指针",{"2":{"117":1}}],["位置1为filesystemevent",{"2":{"143":1,"144":1}}],["启用",{"2":{"295":1,"297":1}}],["启用插件后",{"2":{"290":1}}],["启用该模块需要在配置文件中设置dev",{"2":{"142":1}}],["启动后控制台输出",{"2":{"262":1}}],["启动后钩子",{"2":{"53":1}}],["启动所有进程",{"2":{"136":1}}],["启动发布订阅接收器循环",{"2":{"111":1}}],["启动前钩子",{"2":{"52":1}}],["启动",{"2":{"44":1}}],["检查进程是否存活",{"2":{"141":1}}],["终止进程并从进程字典中删除",{"2":{"139":1}}],["项目目录下的配置文件优先",{"2":{"130":1}}],["项目目录下的配置文件优先级高于config目录下的配置文件",{"2":{"123":1}}],["项目目录下的config",{"2":{"130":1}}],["按照读取文件的优先级反向覆盖",{"2":{"129":1}}],["不包含任何隐私信息",{"2":{"299":1}}],["不含隐私部分",{"2":{"299":1}}],["不含插件数据",{"2":{"299":1}}],["不带key返回配置项列表",{"2":{"294":1}}],["不同adapter",{"2":{"282":1}}],["不递归",{"2":{"129":1}}],["不要出现过多的嵌套",{"2":{"123":1}}],["从一个标准的轻雪项目加载配置文件",{"2":{"130":1}}],["从目录下加载配置文件",{"2":{"129":1}}],["从指定文件加载配置项",{"2":{"128":1}}],["默认开启",{"2":{"299":1}}],["默认普通图片",{"2":{"294":1}}],["默认插件加载器",{"2":{"259":1}}],["默认执行扁平化选项",{"2":{"128":1,"129":1}}],["默认值",{"2":{"34":1,"35":1,"105":1}}],["8",{"2":{"125":1,"126":1,"127":1,"153":1,"163":1,"167":1,"168":1,"173":1,"177":1,"178":1,"187":1,"220":1,"222":1,"256":1,"257":1,"258":1}}],["但请注意甄别第三方插件的安全性",{"2":{"299":1}}],["但请保证以上三个字段",{"2":{"292":1}}],["但是请保留原作者信息",{"2":{"299":1}}],["但是更加轻量级并且线程安全",{"2":{"99":1}}],["但若出现非单function的情况",{"2":{"283":1}}],["但需单独起篇幅",{"2":{"278":1}}],["但也包含原有的键值对",{"2":{"124":1}}],["扁平化后的配置文件",{"2":{"124":1}}],["扁平化配置文件",{"2":{"124":1}}],["扁平化编写",{"2":{"123":1}}],["注意不要嵌套文件夹",{"2":{"292":1}}],["注意冲突时的优先级",{"2":{"123":1}}],["注册一个函数在nonebot启动后运行",{"2":{"262":1}}],["注册一个函数在轻雪启动后运行",{"2":{"262":1}}],["注册文件系统变化监听器",{"2":{"152":1}}],["注册重启后的函数",{"2":{"32":1,"51":1}}],["注册进程重启前的函数",{"2":{"31":1,"50":1}}],["注册进程停止前的函数",{"2":{"30":1,"48":1}}],["注册停止后的函数",{"2":{"29":1,"49":1}}],["注册启动时的函数",{"2":{"46":1,"47":1}}],["注册启动后的函数",{"2":{"28":1}}],["注册启动前的函数",{"2":{"27":1}}],["尽量不要冲突",{"2":{"123":1}}],["多配置文件编写原则",{"2":{"123":1}}],["引用计数",{"2":{"117":1}}],["共享内存通信",{"0":{"263":1},"1":{"264":1,"265":1}}],["共享内存对象",{"2":{"116":1}}],["共享内存模块",{"2":{"99":1}}],["若你不希望提供这些信息",{"2":{"299":1}}],["若不存在则返回空",{"2":{"294":1}}],["若不存在则创建于config",{"2":{"294":1}}],["若存在则返回",{"2":{"294":1}}],["若存在则覆盖",{"2":{"294":1}}],["若存在则会覆盖",{"2":{"294":1}}],["若没有metadata",{"2":{"292":1}}],["若要戳20s后停止",{"2":{"281":1}}],["若函数中启动了其他task",{"2":{"280":1}}],["若有子进程订阅则推送给子进程",{"2":{"111":1}}],["若为空",{"2":{"66":1}}],["订阅者接收消息时的回调",{"2":{"109":1}}],["频道",{"2":{"108":1,"109":1,"110":1}}],["发布消息",{"2":{"108":1}}],["发送函数为同步函数",{"2":{"67":1}}],["发送数据",{"2":{"67":1,"96":1}}],["删除键值对",{"2":{"106":1}}],["值",{"2":{"104":1,"105":1}}],["键值对",{"2":{"107":1}}],["键",{"2":{"104":1,"105":1,"106":1}}],["设置用户信息或打开属性设置菜单",{"2":{"298":1}}],["设置",{"2":{"295":1,"298":1}}],["设置共享内存",{"2":{"265":1}}],["设置后的插件名称",{"2":{"232":1}}],["设置插件名称颜色",{"2":{"232":1}}],["设置键值对",{"2":{"104":1}}],["设置通道实例",{"2":{"76":1,"77":1}}],["关闭通道",{"2":{"98":1}}],["关键字参数",{"2":{"24":1}}],["调用机器人函数",{"2":{"294":1}}],["调用机器人api",{"2":{"294":1}}],["调用重启进程方法",{"2":{"287":1}}],["调用函数",{"2":{"280":1}}],["调用bot",{"2":{"280":1}}],["调用",{"2":{"92":1}}],["通过关键词搜索插件",{"2":{"296":1}}],["通过装饰器注册一个函数在接收到消息时运行",{"2":{"262":1}}],["通常是目录不存在或目录为空",{"2":{"231":1}}],["通常会默认传入chan",{"2":{"137":1}}],["通信",{"2":{"89":1}}],["通道实例",{"2":{"76":1,"77":1,"78":1,"79":1}}],["通道名称",{"2":{"76":1,"78":1}}],["通道传递通道",{"2":{"73":1,"74":1}}],["通道id",{"2":{"66":1,"95":1}}],["依赖关系",{"2":{"88":1}}],["主题包中的html渲染使用js来规定数据的渲染位置",{"2":{"291":1}}],["主题商店提供了一些资源包供你选择",{"2":{"291":1}}],["主进程中",{"2":{"262":1}}],["主进程中通过get",{"2":{"262":1}}],["主进程订阅者接收函数",{"2":{"100":1}}],["主进程创建单例",{"2":{"73":1,"74":1}}],["主动通道传递通道",{"2":{"80":1}}],["子进程中获取通道直接导入进程全局单例即可",{"2":{"262":1}}],["子进程中导入单例active",{"2":{"262":1}}],["子进程订阅者接收函数",{"2":{"101":1}}],["子进程初始化时实例化",{"2":{"73":1,"74":1}}],["子进程可用的主动和被动通道",{"2":{"71":1}}],["接收数据",{"2":{"97":1}}],["接收数据并执行函数",{"2":{"70":1}}],["接收函数",{"2":{"61":1}}],["会自动判断key版本",{"2":{"301":1}}],["会自动识别文件格式",{"2":{"128":1}}],["会话负载信息",{"2":{"299":1}}],["会触发最大递归深度限制",{"2":{"281":1}}],["会挂起等待",{"2":{"69":1}}],["会阻塞线程",{"2":{"68":1}}],["数据",{"2":{"67":1,"68":1,"69":1,"96":1,"97":1,"108":1,"110":1}}],["没有异步的必要",{"2":{"67":1}}],["过滤函数",{"2":{"64":1,"70":1}}],["轻雪天气liteyuki",{"0":{"301":1},"1":{"302":1}}],["轻雪会收集以下内容",{"2":{"299":1}}],["轻雪文档",{"2":{"295":1}}],["轻雪命令liteyuki",{"0":{"294":1},"1":{"295":1}}],["轻雪原版资源包请查看liteyukibot",{"2":{"291":1}}],["轻雪主进程不涉及聊天部分",{"2":{"287":1}}],["轻雪插件是轻雪内置的一部分功能",{"2":{"284":1}}],["轻雪函数",{"0":{"278":1},"1":{"279":1,"280":1,"281":1,"282":1,"283":1},"2":{"278":1}}],["轻雪框架提供了一个内存共享通信的接口",{"2":{"264":1}}],["轻雪抽象消息事件",{"2":{"165":1}}],["轻雪生命周期管理",{"2":{"44":1}}],["轻雪实例",{"2":{"33":1}}],["进程生命周期函数",{"2":{"48":2,"50":2}}],["进程函数关键字参数",{"2":{"137":1}}],["进程函数参数",{"2":{"137":1}}],["进程函数",{"2":{"42":1,"137":1}}],["进程名",{"2":{"23":1,"137":1}}],["|",{"0":{"45":1,"154":1,"165":1,"166":1,"182":1,"230":1},"2":{"39":1,"42":1,"45":2,"61":1,"64":1,"154":1,"165":1,"166":1,"230":1}}],["7",{"2":{"36":1,"131":1,"160":1,"228":1,"229":1,"233":1}}],["兼容键",{"2":{"35":1}}],["兼容旧版本",{"2":{"35":1}}],["获取用户信息",{"2":{"298":1}}],["获取唯一的轻雪bot实例",{"2":{"287":1}}],["获取共享内存",{"2":{"265":1}}],["获取主动通道",{"2":{"262":1}}],["获取被动通道",{"2":{"262":1}}],["获取已加载的插件",{"2":{"227":1}}],["获取函数和类",{"2":{"222":1}}],["获取相对路径",{"2":{"219":1}}],["获取所有键值对",{"2":{"107":1}}],["获取键值对",{"2":{"105":1}}],["获取通道实例们",{"2":{"79":1}}],["获取通道实例",{"2":{"78":1}}],["获取配置",{"2":{"34":1,"35":1}}],["获取轻雪实例",{"2":{"33":1}}],["未实现",{"2":{"29":1,"32":1,"55":1,"57":1}}],["延迟重启时间",{"2":{"22":1}}],["外部启动接口",{"2":{"20":1}}],["初始化通道",{"2":{"66":1,"95":1}}],["初始化日志",{"2":{"25":1}}],["初始化轻雪",{"2":{"24":1}}],["初始化轻雪实例",{"2":{"19":1}}],["初始化",{"2":{"19":1}}],["=none",{"2":{"23":1,"66":1,"70":1,"105":1,"165":2}}],["==",{"2":{"22":3,"81":1,"82":2,"83":2,"84":1,"111":1,"117":1,"118":2,"119":2,"120":2,"121":1,"161":1,"222":4,"223":2,"270":1}}],["=",{"0":{"22":1,"23":1,"34":1,"35":1,"66":1,"70":1,"105":1,"106":1,"114":1,"115":1,"128":1,"129":1,"130":1,"137":2,"152":2,"165":2,"175":3,"176":3,"182":1,"183":1,"184":1,"189":1,"190":1,"191":1,"192":1,"193":1,"195":1,"196":1,"197":1,"198":1,"199":1,"200":1,"201":1,"203":1,"204":1,"205":1,"206":1,"208":1,"209":1,"210":1,"211":1,"212":1,"214":1,"215":1,"216":1,"217":1,"218":1,"222":1,"223":2,"224":3,"231":1,"235":1,"236":1,"237":1,"238":1,"239":1,"241":1,"242":1,"243":1,"244":1,"245":1,"246":1,"247":1,"250":1,"251":1,"252":1,"253":1,"254":1},"2":{"19":7,"22":6,"23":2,"44":7,"45":1,"66":10,"67":1,"68":1,"69":2,"70":1,"76":1,"78":1,"79":1,"82":1,"83":1,"84":1,"87":2,"91":1,"95":4,"103":6,"104":2,"105":2,"106":1,"107":1,"109":2,"111":1,"113":1,"118":3,"119":2,"120":1,"121":1,"124":2,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"133":5,"135":3,"137":5,"139":1,"145":3,"152":2,"154":4,"162":1,"165":10,"166":1,"170":5,"175":1,"181":1,"221":1,"222":17,"223":16,"224":13,"230":12,"231":6,"232":5,"262":5,"265":1,"267":1,"268":2,"270":1,"271":1,"286":1,"287":2}}],["常规操作",{"2":{"19":1}}],[">",{"2":{"19":1,"27":1,"31":1,"33":1,"34":1,"35":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"68":1,"69":1,"70":3,"78":1,"79":1,"91":1,"92":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":2,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"141":1,"145":1,"152":2,"161":1,"171":2,"172":1,"175":1,"176":1,"182":2,"183":2,"184":1,"185":1,"186":1,"219":1,"222":1,"223":3,"224":1,"227":1,"230":1,"231":1,"232":3,"267":1,"270":1,"271":1,"301":2}}],["配置项",{"2":{"301":1}}],["配置项目",{"2":{"124":1}}],["配置了命令别名的命令可以使用别名代替原命令",{"2":{"293":1}}],["配置文件尽量扁平化",{"2":{"123":1}}],["配置值",{"2":{"34":1,"35":1}}],["配置键",{"2":{"34":1,"35":1}}],["配置",{"2":{"19":2,"295":1}}],["$",{"2":{"13":3}}],["kill",{"2":{"139":1}}],["k",{"2":{"124":2,"223":2}}],["keyword",{"2":{"176":2}}],["keywords为城市名",{"2":{"301":2}}],["keywords",{"0":{"176":2},"2":{"176":5,"296":1,"301":2}}],["keyerror",{"2":{"106":1}}],["keyvaluestore",{"0":{"102":1},"1":{"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1},"2":{"113":1,"116":1}}],["keys",{"0":{"35":1},"2":{"35":3}}],["key",{"0":{"34":1,"35":1,"104":1,"105":1,"106":2},"2":{"34":3,"35":10,"104":6,"105":6,"106":11,"118":3,"119":3,"120":3,"124":2,"265":2,"294":4,"298":2,"301":1}}],["keyboardinterrupt",{"2":{"20":1}}],["keeping",{"2":{"21":1}}],["keep",{"0":{"21":1},"2":{"21":1}}],["kwargs=none",{"2":{"137":1}}],["kwargs",{"0":{"19":1,"24":1,"45":1,"54":1,"56":1,"92":1,"137":1},"2":{"19":3,"24":2,"45":3,"54":2,"56":2,"92":2,"137":4,"145":2,"271":2,"294":2}}],["kritor",{"2":{"8":1}}],["knowledge",{"2":{"273":1}}],["know",{"2":{"6":2}}],["qq群号",{"2":{"303":1}}],["qq",{"0":{"8":1},"2":{"7":1,"8":3}}],["question",{"2":{"6":1}}],["questions",{"0":{"6":1,"7":1,"16":1}}],["quotes",{"2":{"276":2}}],["quot",{"2":{"3":2,"276":1,"283":2,"294":2,"301":4}}],["js",{"2":{"8":1}}],["json",{"0":{"126":1},"2":{"0":2,"126":4,"128":2,"130":1}}],["join",{"0":{"138":1},"2":{"7":1,"22":1,"129":1,"138":2,"139":1,"221":1,"223":4,"224":1,"231":2,"270":2}}],["guidelines",{"2":{"276":2}}],["guide",{"0":{"272":1},"1":{"273":1,"274":1,"275":1,"276":1,"277":1},"2":{"276":1}}],["g",{"2":{"232":1,"304":1}}],["group",{"2":{"294":9,"295":1,"296":2,"303":3,"304":1}}],["group775840726",{"2":{"7":1}}],["green>",{"2":{"162":1}}],["gather",{"2":{"45":1,"268":1}}],["getattr",{"2":{"267":1}}],["get",{"0":{"33":1,"34":1,"35":1,"78":1,"79":1,"83":1,"84":1,"105":1,"107":1,"113":1,"118":1,"121":1,"161":1,"219":1,"221":1,"222":1,"227":1},"2":{"23":2,"33":2,"34":3,"35":5,"66":2,"67":1,"69":1,"78":2,"79":2,"82":1,"83":4,"84":3,"104":1,"105":4,"106":1,"107":2,"113":1,"116":1,"117":1,"118":3,"120":1,"121":3,"154":1,"161":1,"162":2,"219":1,"221":1,"222":5,"224":3,"225":1,"227":1,"230":3,"231":1,"259":2,"262":8,"265":1,"268":1,"287":2,"294":3,"295":1,"298":2}}],["generic",{"0":{"65":1},"1":{"66":1,"67":1,"68":1,"69":1,"70":1},"2":{"66":2,"67":1}}],["generate",{"0":{"223":1,"224":1},"2":{"0":1,"223":1,"224":3,"276":1}}],["gensokyo",{"2":{"8":1}}],["globalkeyvaluestore",{"0":{"112":1},"1":{"113":1,"114":1,"115":1},"2":{"116":1}}],["global",{"2":{"19":1,"70":1,"296":2,"297":2}}],["gt",{"0":{"19":1,"27":1,"31":1,"33":1,"34":1,"35":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"68":1,"69":1,"70":1,"78":1,"79":1,"91":1,"92":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"141":1,"152":1,"161":1,"171":1,"172":1,"175":1,"176":1,"182":1,"183":1,"184":1,"185":1,"186":1,"219":1,"222":1,"223":1,"227":1,"230":1,"231":1,"232":1,"267":1,"270":1,"271":1},"2":{"88":3,"124":1,"170":1,"270":1,"276":2,"293":1,"294":7,"296":10,"298":2}}],["google",{"2":{"276":2}}],["go",{"2":{"8":2,"261":1}}],["gitmoji",{"2":{"276":2}}],["github",{"2":{"7":1,"12":1,"13":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"66":1,"67":1,"68":1,"69":1,"70":1,"76":1,"77":1,"78":1,"79":1,"82":1,"83":1,"84":1,"87":1,"91":1,"92":1,"95":1,"96":1,"97":1,"98":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1,"113":1,"118":1,"119":1,"120":1,"121":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"133":1,"135":1,"136":1,"137":1,"138":1,"139":1,"140":1,"141":1,"145":1,"147":1,"148":1,"149":1,"150":1,"151":1,"152":1,"154":1,"161":1,"162":1,"165":1,"166":1,"170":1,"171":1,"172":1,"174":1,"175":1,"176":1,"181":1,"182":1,"183":1,"184":1,"185":1,"186":1,"219":1,"220":1,"221":1,"222":1,"223":1,"224":1,"227":1,"230":1,"231":1,"232":1,"249":1,"257":1,"259":1,"267":1,"268":1,"269":1,"270":1,"271":1}}],["git",{"2":{"6":1,"12":2,"13":1,"15":2}}],["\`",{"2":{"3":1,"223":14}}],["validate",{"2":{"67":1}}],["value=ast",{"2":{"222":1}}],["valueerror",{"2":{"66":2,"76":1}}],["value2",{"2":{"2":1}}],["value1",{"2":{"2":1}}],["value",{"0":{"104":1,"205":1},"2":{"2":1,"3":3,"104":5,"119":3,"124":3,"222":6,"223":3,"265":2,"294":2,"298":1}}],["var=value",{"2":{"280":1}}],["var2=value2",{"2":{"280":1}}],["var1=value1>",{"2":{"280":1}}],["var",{"0":{"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"71":1,"72":1,"73":1,"74":1,"75":1,"80":1,"81":1,"100":1,"101":1,"116":1,"117":1,"143":1,"144":1,"159":1,"179":1,"225":1},"2":{"223":2}}],["version=",{"2":{"286":1}}],["version",{"0":{"159":1},"2":{"15":1,"292":1}}],["venv",{"2":{"12":4}}],["v",{"2":{"13":2,"124":2,"223":2}}],["vitepress",{"2":{"276":1}}],["view",{"2":{"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"66":1,"67":1,"68":1,"69":1,"70":1,"76":1,"77":1,"78":1,"79":1,"82":1,"83":1,"84":1,"87":1,"91":1,"92":1,"95":1,"96":1,"97":1,"98":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1,"113":1,"118":1,"119":1,"120":1,"121":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"133":1,"135":1,"136":1,"137":1,"138":1,"139":1,"140":1,"141":1,"145":1,"147":1,"148":1,"149":1,"150":1,"151":1,"152":1,"154":1,"161":1,"162":1,"165":1,"166":1,"170":1,"171":1,"172":1,"174":1,"175":1,"176":1,"181":1,"182":1,"183":1,"184":1,"185":1,"186":1,"219":1,"220":1,"221":1,"222":1,"223":1,"224":1,"227":1,"230":1,"231":1,"232":1,"249":1,"257":1,"259":1,"267":1,"268":1,"269":1,"270":1,"271":1}}],["virtual",{"2":{"6":1,"12":3}}],["visit",{"2":{"3":1}}],["v11协议api",{"2":{"294":2}}],["v11",{"2":{"3":1,"282":1}}],["2s戳两次",{"2":{"281":1}}],["22",{"2":{"256":1}}],["27",{"2":{"131":1,"160":1}}],["24",{"2":{"36":1,"233":1}}],["23",{"2":{"36":1,"187":1,"228":1,"229":1}}],["20代替空格",{"2":{"294":1}}],["20和end",{"2":{"281":1}}],["2024",{"2":{"36":2,"131":2,"153":2,"160":2,"163":2,"167":2,"168":2,"173":2,"177":2,"178":2,"187":2,"228":2,"229":2,"233":2,"256":2,"258":2}}],["2020",{"2":{"36":1,"131":1,"153":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"178":1,"187":1,"228":1,"229":1,"233":1,"256":1,"258":1}}],["20216",{"2":{"1":1,"3":1,"13":4}}],["20",{"2":{"15":1}}],["2019+",{"2":{"15":1}}],["2",{"2":{"2":1,"281":1,"292":1}}],["occurred",{"2":{"268":1}}],["occupy",{"2":{"15":1}}],["object",{"2":{"261":1}}],["observer",{"0":{"142":1},"1":{"143":1,"144":1,"145":1,"146":1,"147":1,"148":1,"149":1,"150":1,"151":1,"152":1},"2":{"152":1,"287":2}}],["overall",{"2":{"158":1}}],["os",{"2":{"128":1,"129":3,"219":1,"220":4,"221":2,"222":1,"224":2,"231":9,"287":2}}],["outlook",{"2":{"36":1,"131":1,"153":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"178":1,"187":1,"228":1,"229":1,"233":1,"256":1,"258":1}}],["output",{"0":{"224":1},"2":{"2":1,"224":5}}],["open",{"2":{"22":1,"125":1,"126":1,"127":1,"220":1,"222":1,"277":1}}],["openshamrock",{"2":{"8":1}}],["option",{"2":{"293":1}}],["optional",{"0":{"23":1,"66":1,"70":1,"105":2,"165":2,"230":1,"254":1},"2":{"22":1,"23":2,"34":1,"35":1,"66":1,"70":3,"103":2,"105":3,"165":2,"230":1}}],["opt",{"2":{"20":2,"230":3}}],["ordinary",{"2":{"276":1}}],["order",{"2":{"224":1}}],["organization",{"2":{"273":1}}],["or",{"2":{"4":1,"6":2,"15":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"66":1,"67":1,"68":1,"69":1,"70":1,"76":1,"77":1,"78":1,"79":1,"82":1,"83":1,"84":1,"87":1,"91":1,"92":1,"95":1,"96":1,"97":1,"98":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1,"113":1,"118":1,"119":1,"120":1,"121":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"133":1,"135":1,"136":1,"137":1,"138":1,"139":1,"140":1,"141":1,"145":1,"147":1,"148":1,"149":1,"150":1,"151":1,"152":1,"154":1,"161":1,"162":1,"165":1,"166":1,"170":1,"171":1,"172":1,"174":1,"175":1,"176":1,"181":1,"182":3,"183":1,"184":1,"185":1,"186":1,"219":1,"220":1,"221":1,"222":5,"223":1,"224":1,"227":1,"230":1,"231":1,"232":1,"249":1,"257":1,"259":1,"267":1,"268":1,"269":1,"270":1,"271":1,"276":3}}],["of",{"0":{"3":1},"2":{"6":3,"9":1,"13":1,"15":1,"67":1,"76":1,"158":1,"230":1,"273":4,"276":5}}],["other",{"0":{"2":1,"4":1,"7":1,"16":1,"182":1,"183":1},"2":{"2":1,"3":1,"9":1,"15":2,"182":2,"183":2,"261":3}}],["one",{"2":{"6":1,"262":1}}],["onebotv11",{"2":{"8":4}}],["onebot",{"0":{"3":1},"2":{"2":2,"3":2,"4":1,"6":2,"8":1,"282":1,"294":1}}],["only",{"2":{"0":1,"6":1,"70":1,"262":1}}],["on",{"0":{"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"59":1,"60":1,"61":1,"70":1,"82":1,"83":1,"84":1,"91":2,"100":1,"101":1,"109":3,"118":1,"119":1,"120":1,"121":1,"147":1,"148":1,"149":1,"150":1,"151":1,"152":1,"173":1,"175":1,"176":1},"1":{"174":1,"175":1,"176":1},"2":{"0":1,"3":1,"6":1,"7":1,"8":4,"12":1,"15":3,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":3,"28":3,"29":3,"30":3,"31":3,"32":3,"33":1,"34":1,"35":1,"44":1,"45":1,"46":2,"47":2,"48":2,"49":2,"50":2,"51":2,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"61":2,"66":3,"67":1,"68":1,"69":1,"70":5,"76":1,"77":1,"78":1,"79":1,"81":1,"82":4,"83":4,"84":3,"87":1,"91":5,"92":2,"95":1,"96":1,"97":1,"98":1,"100":1,"101":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":12,"110":2,"111":1,"113":1,"117":1,"118":4,"119":4,"120":4,"121":3,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"133":1,"135":1,"136":1,"137":1,"138":1,"139":1,"140":1,"141":1,"145":1,"147":3,"148":3,"149":3,"150":3,"151":3,"152":3,"154":1,"161":1,"162":1,"165":1,"166":1,"170":1,"171":1,"172":1,"173":1,"174":1,"175":2,"176":5,"181":1,"182":1,"183":1,"184":1,"185":1,"186":1,"219":1,"220":1,"221":1,"222":1,"223":1,"224":1,"227":1,"230":1,"231":1,"232":1,"249":1,"256":1,"257":2,"259":1,"262":6,"267":1,"268":1,"269":1,"270":1,"271":1,"276":1,"287":1}}],["45m",{"2":{"303":2}}],["44",{"2":{"167":1}}],["47",{"2":{"163":1,"177":1}}],["41",{"2":{"13":1}}],["40",{"2":{"13":1}}],["4",{"2":{"1":1}}],["utility",{"2":{"275":1}}],["utils",{"0":{"266":1},"1":{"267":1,"268":1,"269":1,"270":1,"271":1},"2":{"275":1}}],["utf",{"2":{"125":1,"126":1,"127":1,"220":1,"222":1}}],["ubuntu",{"2":{"15":1}}],["unload",{"2":{"296":1,"297":1}}],["understand",{"2":{"276":1}}],["underlying",{"2":{"10":1}}],["unit",{"2":{"275":1}}],["uninstall",{"2":{"6":2,"296":1,"297":1}}],["until",{"2":{"268":2}}],["unclassified",{"0":{"238":2,"244":1}}],["unparse",{"2":{"222":10}}],["unsupported",{"2":{"128":1}}],["usage",{"0":{"243":1},"2":{"273":1}}],["using",{"2":{"6":2,"13":1}}],["users",{"2":{"276":1}}],["user",{"0":{"165":1,"298":1},"2":{"165":3,"166":2,"186":1,"276":1,"281":3}}],["used",{"2":{"70":1,"255":1,"262":1,"276":1}}],["use",{"0":{"14":1},"2":{"1":1,"3":2,"4":2,"6":6,"8":1,"12":4,"13":1,"14":1,"15":2,"35":1,"230":1,"274":1,"276":2}}],["updates",{"2":{"1":1}}],["update",{"2":{"1":2,"2":2,"6":1,"15":2,"128":3,"129":1,"130":1,"294":1,"295":1,"296":1,"297":1}}],["feat",{"2":{"276":1}}],["features",{"2":{"276":2}}],["feature",{"2":{"276":1}}],["flake8",{"2":{"274":1}}],["flat",{"0":{"124":1},"2":{"124":2,"125":1,"126":1,"127":1}}],["flag",{"2":{"44":1}}],["f",{"2":{"22":1,"23":2,"35":1,"66":4,"67":1,"76":2,"124":1,"125":1,"126":1,"127":1,"128":2,"129":1,"136":1,"139":2,"141":1,"220":2,"223":19,"224":1,"230":5,"231":9,"232":1,"262":2,"268":1,"287":1}}],["friend",{"2":{"281":2}}],["front",{"0":{"223":1},"2":{"223":5,"224":3,"273":1}}],["from",{"0":{"125":1,"126":1,"127":1,"128":1,"129":1},"2":{"68":1,"125":3,"126":3,"127":3,"128":4,"129":2,"130":2,"261":1,"262":4,"286":1,"287":3}}],["framework",{"2":{"10":1,"158":1,"261":1,"273":1,"275":3}}],["frequently",{"0":{"6":1}}],["future",{"2":{"268":1}}],["func=none",{"2":{"152":1}}],["func=lambda",{"2":{"81":1,"82":2,"83":2,"84":1,"262":1}}],["funcs",{"0":{"45":2,"100":1,"101":1,"110":1},"2":{"44":6,"45":4,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":2,"53":2,"54":2,"55":2,"56":2,"57":2,"70":1,"109":6,"110":2,"111":1}}],["func",{"0":{"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":4,"28":3,"29":3,"30":3,"31":4,"32":3,"33":1,"34":1,"35":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"44":1,"45":3,"46":4,"47":4,"48":4,"49":4,"50":4,"51":4,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"66":1,"67":1,"68":1,"69":1,"70":3,"76":1,"77":1,"78":1,"79":1,"82":1,"83":1,"84":1,"87":1,"91":2,"92":1,"95":1,"96":1,"97":1,"98":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":3,"110":1,"111":1,"113":1,"118":1,"119":1,"120":1,"121":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"133":1,"135":1,"136":1,"137":2,"138":1,"139":1,"140":1,"141":1,"143":1,"144":1,"145":1,"147":1,"148":1,"149":1,"150":1,"151":1,"152":4,"154":1,"161":1,"162":1,"165":1,"166":1,"170":1,"171":1,"172":1,"174":1,"175":1,"176":1,"181":1,"182":1,"183":1,"184":1,"185":1,"186":1,"219":1,"220":1,"221":1,"222":1,"223":1,"224":1,"227":1,"230":1,"231":1,"232":1,"249":1,"257":1,"259":1,"267":1,"268":1,"269":1,"270":1,"271":2},"2":{"27":7,"28":6,"29":6,"30":6,"31":7,"32":6,"39":2,"42":2,"44":6,"45":8,"46":8,"47":8,"48":8,"49":8,"50":8,"51":8,"61":2,"64":2,"66":2,"70":20,"91":1,"100":1,"101":1,"109":8,"110":2,"137":1,"145":2,"152":7,"222":2,"223":9,"267":2,"271":4,"280":1}}],["function实现语法高亮",{"2":{"283":1}}],["functiondef",{"2":{"222":3}}],["functioninfo",{"0":{"194":1,"210":1,"215":1},"1":{"195":1,"196":1,"197":1,"198":1,"199":1,"200":1,"201":1},"2":{"222":2}}],["functions=",{"2":{"222":1}}],["functions",{"0":{"215":1},"2":{"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"222":1,"223":1}}],["function",{"0":{"189":2},"2":{"6":2,"15":2,"222":3,"262":1,"278":1,"280":1,"281":2,"294":3}}],["full",{"2":{"6":1,"262":1}}],["familiar",{"2":{"273":2}}],["failed",{"2":{"6":2,"230":1}}],["faq",{"0":{"5":1},"1":{"6":1,"7":1,"8":1,"9":1,"10":1}}],["false时例如docs",{"2":{"224":1}}],["false",{"0":{"128":1,"129":1,"130":1,"175":1,"176":1,"224":1},"2":{"2":4,"66":2,"95":1,"103":2,"267":1}}],["follow",{"2":{"276":4}}],["following",{"2":{"2":1,"273":1,"276":2}}],["folder",{"0":{"221":1,"224":1},"2":{"221":2,"224":4,"225":1,"255":1}}],["found",{"2":{"67":1,"76":1,"128":1,"129":1,"139":1,"141":1}}],["font",{"2":{"10":1}}],["fonts",{"2":{"1":1}}],["fork",{"2":{"273":1}}],["formatting",{"2":{"274":1}}],["format=get",{"2":{"162":1}}],["formats",{"2":{"129":1}}],["format",{"0":{"161":1,"232":1},"2":{"128":1,"161":3,"162":1,"230":2,"232":1,"276":1}}],["for",{"0":{"16":1},"2":{"1":1,"3":2,"6":2,"8":1,"23":1,"35":1,"45":1,"66":1,"77":1,"110":1,"124":2,"128":1,"129":2,"136":1,"138":1,"140":1,"152":1,"172":1,"174":1,"176":1,"220":1,"221":2,"222":12,"223":9,"224":3,"231":2,"259":2,"261":1,"262":1,"268":2,"274":1,"276":5,"286":1}}],["finally",{"0":{"277":1}}],["field",{"2":{"276":3}}],["fields",{"2":{"0":1,"3":2}}],["fixing",{"2":{"276":2}}],["filter=lambda",{"2":{"287":1}}],["filter",{"0":{"62":1,"63":1,"64":1,"70":2,"144":1,"152":2},"2":{"64":2,"70":8,"81":1,"82":2,"83":2,"84":1,"152":5,"262":1}}],["file",{"0":{"125":1,"126":1,"127":1,"152":1,"220":1,"221":1,"222":1},"2":{"3":1,"6":1,"36":1,"125":4,"126":4,"127":4,"128":12,"129":3,"131":1,"152":1,"153":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"178":1,"187":1,"220":3,"221":7,"222":8,"224":6,"228":1,"229":1,"233":1,"256":1,"258":1,"275":1,"287":3}}],["filesystemeventhandler",{"0":{"146":1},"1":{"147":1,"148":1,"149":1,"150":1,"151":1}}],["filesystemevent",{"2":{"143":1,"144":1,"152":1,"287":2}}],["files",{"0":{"128":2,"220":1},"2":{"0":4,"128":3,"129":1,"130":1,"220":1,"221":2,"224":1}}],["fill",{"2":{"1":1,"3":1,"276":1}}],["first",{"2":{"0":1,"6":1,"222":2,"273":1}}],["b包也定义了一个index",{"2":{"292":1}}],["bilingual",{"2":{"276":1}}],["bind",{"2":{"302":1}}],["binding",{"2":{"1":1}}],["bin",{"2":{"12":1}}],["brief",{"2":{"276":1}}],["branch",{"2":{"273":4}}],["break",{"2":{"174":1}}],["browser",{"2":{"6":1}}],["black",{"2":{"274":1}}],["block",{"0":{"170":1,"175":1,"176":1},"2":{"170":4,"175":2,"176":2}}],["blue>",{"2":{"162":1}}],["b",{"2":{"124":1,"224":2,"270":2,"304":1}}],["body",{"2":{"222":1}}],["bool=false",{"2":{"128":1,"129":1,"130":1,"175":1,"176":1,"224":1}}],["bool=true",{"2":{"106":1,"152":1,"222":1,"231":1}}],["bool",{"0":{"66":1,"106":1,"128":1,"129":1,"130":1,"141":1,"152":1,"170":1,"175":1,"176":1,"184":1,"185":1,"186":1,"201":1,"222":1,"224":1,"231":1,"267":1},"2":{"62":1,"63":1,"66":1,"141":1,"144":1,"170":1,"179":1,"182":1,"183":1,"184":1,"185":1,"186":1,"267":2}}],["both",{"2":{"275":1}}],["bot",{"0":{"17":1,"33":1,"36":1,"165":1},"1":{"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1},"2":{"1":1,"2":1,"6":2,"9":1,"12":1,"15":1,"19":2,"33":4,"34":1,"35":4,"154":2,"165":3,"166":2,"262":4,"275":2,"279":1,"287":2,"294":1,"303":3,"304":1}}],["bugs",{"2":{"276":2}}],["bug",{"2":{"276":2}}],["business",{"2":{"275":1}}],["built",{"2":{"255":2,"275":1}}],["build",{"2":{"13":2}}],["but",{"2":{"3":1,"6":1,"262":1,"276":1}}],["bases",{"2":{"222":1}}],["base",{"0":{"219":1},"2":{"219":3,"222":2}}],["basemodel",{"0":{"194":1,"202":1,"207":1,"213":1,"240":1,"248":1},"1":{"195":1,"196":1,"197":1,"198":1,"199":1,"200":1,"201":1,"203":1,"204":1,"205":1,"206":1,"208":1,"209":1,"210":1,"211":1,"212":1,"214":1,"215":1,"216":1,"217":1,"218":1,"241":1,"242":1,"243":1,"244":1,"245":1,"246":1,"247":1,"249":1,"250":1,"251":1,"252":1,"253":1,"254":1}}],["baseexception",{"0":{"157":1}}],["based",{"2":{"8":4}}],["bash",{"2":{"12":1}}],["basically",{"2":{"3":1}}],["basic",{"0":{"1":1},"2":{"273":2}}],["better",{"2":{"277":1}}],["between",{"2":{"6":1}}],["before",{"0":{"27":1,"30":1,"31":1,"46":1,"48":1,"50":1,"52":1,"54":1,"56":1},"2":{"27":2,"30":2,"31":2,"44":3,"46":2,"48":2,"50":2,"52":3,"54":3,"56":3}}],["below",{"2":{"6":1}}],["been",{"2":{"6":1}}],["be",{"2":{"3":1,"6":2,"15":1,"35":1,"67":1,"70":1,"76":1,"147":1,"262":1,"276":2}}],["by",{"2":{"3":1,"4":1,"6":2,"262":1,"274":1}}],["14s",{"2":{"303":2}}],["1h",{"2":{"303":2}}],["1d",{"2":{"303":2}}],["1145141919810",{"2":{"294":1}}],["11",{"2":{"258":1}}],["19",{"2":{"163":1,"167":1,"168":1,"173":1,"177":1,"178":1,"187":1}}],["1919810",{"2":{"1":1}}],["10",{"2":{"159":1,"294":1}}],["10+",{"2":{"12":1,"15":1}}],["18",{"2":{"153":1}}],["12",{"2":{"131":1,"160":1}}],["127",{"2":{"1":1,"3":1}}],["1gb",{"2":{"15":2}}],["1vcpu",{"2":{"15":1}}],["1",{"2":{"1":1,"2":1,"3":1,"21":1,"22":2,"23":2,"70":1,"82":2,"83":2,"84":1,"111":2,"118":3,"119":2,"120":1,"121":1,"124":1,"146":1,"147":1,"223":6,"224":1,"230":4,"270":2,"286":1,"292":2}}],["03",{"2":{"262":2}}],["0000",{"2":{"262":3}}],["00",{"2":{"262":18}}],["02",{"2":{"233":1,"258":1}}],["04",{"2":{"153":1}}],["04+",{"2":{"15":1}}],["0",{"0":{"22":1,"175":1,"176":1},"2":{"1":2,"3":2,"19":1,"21":1,"22":2,"44":1,"81":1,"82":2,"83":2,"84":1,"111":1,"117":2,"118":2,"119":2,"120":2,"121":1,"170":1,"222":1,"223":7,"281":1,"286":2,"292":2}}],["html中用",{"2":{"292":1}}],["html",{"2":{"292":1}}],["html文件会被覆盖",{"2":{"292":1}}],["html文件",{"2":{"292":2}}],["https",{"2":{"12":1,"13":1}}],["hints",{"2":{"276":1}}],["hint",{"2":{"66":1,"222":1,"223":1}}],["harmless",{"2":{"276":1}}],["handlers",{"2":{"170":1,"171":1,"172":1}}],["handler",{"0":{"181":1},"2":{"152":3,"171":4,"172":2,"181":3,"182":4,"183":4,"184":2}}],["handle",{"0":{"171":1},"2":{"6":1,"171":1,"256":1,"257":1}}],["hash",{"0":{"249":1},"2":{"249":2}}],["has",{"2":{"6":1,"276":1}}],["have",{"2":{"3":1,"6":3,"7":1,"13":1,"15":1}}],["homepage",{"0":{"246":1}}],["how",{"0":{"273":1},"1":{"274":1},"2":{"6":2}}],["host",{"2":{"1":1}}],["hello",{"2":{"279":5,"294":1}}],["help",{"2":{"6":2,"296":1,"297":1}}],["here",{"2":{"3":2}}],["header",{"2":{"1":1,"6":1}}],["echo",{"2":{"279":3}}],["easy",{"2":{"276":1}}],["each",{"2":{"276":2}}],["editing",{"2":{"276":1}}],["etc",{"2":{"276":1}}],["e",{"2":{"106":2,"230":1,"232":1,"268":2}}],["emoji",{"2":{"276":1}}],["emsp",{"2":{"223":4}}],["email",{"2":{"36":1,"131":1,"153":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"178":1,"187":1,"228":1,"229":1,"233":1,"256":1,"258":1}}],["empty",{"0":{"175":1,"176":1,"185":1},"2":{"1":1,"185":1,"230":1,"231":1}}],["else",{"2":{"22":1,"23":1,"33":1,"45":1,"66":1,"70":2,"76":1,"78":1,"79":1,"104":1,"105":1,"106":1,"107":1,"109":2,"125":1,"126":1,"127":1,"161":1,"162":5,"174":1,"222":9,"223":10,"224":2,"230":2,"268":1,"270":1}}],["elif",{"2":{"22":2,"66":1,"70":1,"128":4,"222":5,"230":2,"231":1}}],["event装饰器监听文件系统事件",{"2":{"287":1}}],["events",{"2":{"287":1}}],["eventhandler",{"0":{"171":2},"2":{"170":1,"171":4}}],["event",{"0":{"85":1,"86":1,"147":1,"148":1,"149":1,"150":1,"151":2,"152":2,"163":1,"172":1,"184":1,"185":1,"186":1,"257":1},"1":{"86":1,"87":2,"164":1,"165":1,"166":1},"2":{"19":4,"21":1,"26":1,"88":1,"147":1,"148":2,"149":2,"150":2,"151":3,"152":8,"163":1,"166":2,"172":4,"176":2,"182":3,"183":3,"184":2,"185":1,"186":2,"257":3,"268":2,"276":1,"287":8}}],["every",{"2":{"1":1}}],["errors=true",{"2":{"224":1}}],["errors",{"2":{"6":1}}],["error",{"0":{"106":1},"2":{"6":1,"106":3,"162":2,"268":1}}],["extra",{"0":{"247":1}}],["extensions",{"2":{"287":2}}],["extend",{"2":{"154":1}}],["external",{"2":{"1":1}}],["exclude",{"2":{"287":2}}],["exc",{"2":{"172":1,"230":1}}],["exception模块包含了liteyuki运行中的所有错误",{"2":{"156":1}}],["exception",{"0":{"156":1},"1":{"157":1},"2":{"21":1,"172":1,"230":1,"268":2}}],["except",{"2":{"20":1,"21":1,"106":1,"172":1,"230":1,"268":2}}],["executor",{"2":{"69":1}}],["executable",{"2":{"6":1,"15":1,"22":3}}],["exist",{"2":{"231":1}}],["exists",{"2":{"66":2,"76":1,"128":1,"129":1,"220":1,"231":2}}],["exit",{"2":{"22":1}}],["exiting",{"2":{"21":1}}],["example",{"0":{"3":1,"262":1},"2":{"6":2}}],["enclosed",{"2":{"276":1}}],["encoding=",{"2":{"125":1,"126":1,"127":1,"220":1,"222":1}}],["encountered",{"2":{"9":1}}],["english",{"2":{"275":1}}],["en",{"2":{"275":1}}],["entry",{"2":{"275":1}}],["enter",{"2":{"6":1}}],["end",{"2":{"273":1,"280":1}}],["endswith",{"2":{"128":3,"129":1,"221":1,"231":1,"287":1}}],["enum",{"0":{"188":1,"234":1},"1":{"189":1,"190":1,"191":1,"192":1,"193":1,"235":1,"236":1,"237":1,"238":1,"239":1}}],["enumerate",{"2":{"174":1}}],["enforcing",{"2":{"66":1}}],["environment",{"2":{"12":4}}],["environments",{"2":{"3":1,"6":1,"15":1}}],["ensure",{"2":{"1":1,"268":1,"273":1,"276":7}}],["enable",{"2":{"1":1,"274":1,"294":2,"295":1,"296":2,"297":2}}],["msg",{"2":{"294":1}}],["mcfunction",{"2":{"279":2}}],["mkdir",{"2":{"224":1}}],["mkdoc",{"0":{"187":1},"1":{"188":1,"189":1,"190":1,"191":1,"192":1,"193":1,"194":1,"195":1,"196":1,"197":1,"198":1,"199":1,"200":1,"201":1,"202":1,"203":1,"204":1,"205":1,"206":1,"207":1,"208":1,"209":1,"210":1,"211":1,"212":1,"213":1,"214":1,"215":1,"216":1,"217":1,"218":1,"219":1,"220":1,"221":1,"222":1,"223":1,"224":1,"225":1},"2":{"187":1}}],["md",{"2":{"224":13}}],["m",{"2":{"12":1,"15":1,"174":2,"232":1,"304":1}}],["mix",{"2":{"276":1}}],["minimum",{"2":{"15":1}}],["minecraftonebot",{"2":{"9":1}}],["minecraft",{"0":{"9":1},"2":{"9":1}}],["misans",{"2":{"10":1}}],["must",{"2":{"67":1,"76":1,"147":1}}],["much",{"2":{"6":1,"276":3}}],["multiple",{"2":{"0":1,"15":1,"276":1}}],["mypy",{"2":{"274":1}}],["my",{"2":{"6":1}}],["member",{"2":{"294":1}}],["memory",{"0":{"116":1},"2":{"15":1,"103":3,"117":1,"118":3,"119":3,"120":3,"121":2,"137":1,"261":1,"265":3}}],["meta",{"2":{"230":4,"286":1}}],["metadata",{"0":{"254":1},"2":{"230":13}}],["method",{"0":{"190":2,"191":1,"192":1},"2":{"222":5,"223":13}}],["methods=",{"2":{"222":1}}],["methods",{"0":{"210":1},"2":{"3":1,"222":1,"223":1}}],["means",{"2":{"6":1}}],["message=",{"2":{"166":1,"294":1}}],["message=message",{"2":{"166":1}}],["messageevent",{"0":{"164":1,"165":1,"172":1,"184":1,"185":1,"186":1,"257":1},"1":{"165":1,"166":1},"2":{"165":1,"166":1,"172":1,"176":1,"179":1,"182":1,"183":1,"184":1,"185":1,"186":1,"257":1}}],["messages",{"2":{"6":2,"261":2}}],["message",{"0":{"163":1,"165":3,"166":1,"167":1,"168":1,"173":1,"175":1,"177":1,"178":1},"1":{"164":1,"165":1,"166":1,"169":1,"170":1,"171":1,"172":1,"174":1,"175":1,"176":1,"179":1,"180":1,"181":1,"182":1,"183":1,"184":1,"185":1,"186":1},"2":{"4":1,"6":1,"165":9,"166":5,"175":1,"176":2,"257":1,"276":5,"303":1,"304":1}}],["merge",{"2":{"0":1,"273":1}}],["mark",{"2":{"276":1}}],["markdown",{"0":{"223":1},"2":{"223":2,"224":1,"273":1,"276":1}}],["match",{"2":{"232":1}}],["matcher",{"0":{"168":1,"169":1,"174":3,"175":1,"176":1},"1":{"169":1,"170":2,"171":2,"172":2},"2":{"168":1,"174":9,"175":6,"176":1}}],["matter=none",{"2":{"223":1}}],["matter",{"0":{"223":1},"2":{"223":4,"224":3}}],["maplemono",{"2":{"10":1}}],["makedirs",{"2":{"220":1}}],["make",{"2":{"6":2,"277":1}}],["maintainer",{"2":{"273":1}}],["mainprocess",{"2":{"261":1}}],["main",{"0":{"100":1},"2":{"6":1,"12":1,"33":1,"66":4,"70":4,"76":1,"78":1,"79":1,"103":1,"104":1,"105":1,"106":1,"107":1,"109":5,"110":1,"111":1,"261":1,"262":6,"273":1,"275":1,"290":1}}],["manager",{"0":{"131":1,"228":1},"1":{"132":1,"133":1,"134":1,"135":1,"136":1,"137":1,"138":1,"139":1,"140":1,"141":1},"2":{"19":1,"20":1,"22":1,"23":1,"26":1,"131":1,"228":1}}],["manage",{"2":{"14":1}}],["management",{"2":{"14":1}}],["many",{"2":{"6":1}}],["manually",{"2":{"2":1,"66":1}}],["may",{"2":{"3":1}}],["moved",{"0":{"150":1},"2":{"150":1}}],["more",{"2":{"2":1,"14":1,"15":1,"274":1}}],["moduletype",{"0":{"252":1}}],["module=module",{"2":{"230":1}}],["moduleinfo",{"0":{"213":1,"222":1,"223":1},"1":{"214":1,"215":1,"216":1,"217":1,"218":1},"2":{"222":2,"223":1}}],["module",{"0":{"17":1,"36":1,"58":1,"85":1,"88":1,"89":1,"93":1,"99":1,"122":1,"123":1,"131":1,"142":1,"153":1,"154":1,"155":1,"156":1,"158":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"178":1,"187":1,"214":1,"221":1,"222":1,"223":1,"224":1,"225":1,"226":1,"228":1,"229":1,"230":1,"233":1,"237":2,"252":1,"253":1,"255":1,"256":1,"258":1,"266":1,"270":1},"1":{"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"65":1,"66":1,"67":1,"68":1,"69":1,"70":1,"71":1,"72":1,"73":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"81":1,"82":1,"83":1,"84":1,"86":1,"87":1,"90":1,"91":1,"92":1,"94":1,"95":1,"96":1,"97":1,"98":1,"100":1,"101":1,"102":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"132":1,"133":1,"134":1,"135":1,"136":1,"137":1,"138":1,"139":1,"140":1,"141":1,"143":1,"144":1,"145":1,"146":1,"147":1,"148":1,"149":1,"150":1,"151":1,"152":1,"154":1,"157":1,"159":1,"161":1,"162":1,"164":1,"165":1,"166":1,"169":1,"170":1,"171":1,"172":1,"174":1,"175":1,"176":1,"179":1,"180":1,"181":1,"182":1,"183":1,"184":1,"185":1,"186":1,"188":1,"189":1,"190":1,"191":1,"192":1,"193":1,"194":1,"195":1,"196":1,"197":1,"198":1,"199":1,"200":1,"201":1,"202":1,"203":1,"204":1,"205":1,"206":1,"207":1,"208":1,"209":1,"210":1,"211":1,"212":1,"213":1,"214":1,"215":1,"216":1,"217":1,"218":1,"219":1,"220":1,"221":1,"222":1,"223":1,"224":1,"225":1,"227":1,"230":1,"231":1,"232":1,"234":1,"235":1,"236":1,"237":1,"238":1,"239":1,"240":1,"241":1,"242":1,"243":1,"244":1,"245":1,"246":1,"247":1,"248":1,"249":1,"250":1,"251":1,"252":1,"253":1,"254":1,"257":1,"259":1,"267":1,"268":1,"269":1,"270":1,"271":1},"2":{"154":3,"158":1,"221":2,"222":11,"223":5,"224":19,"225":1,"230":26,"231":9,"232":1,"249":1,"255":1,"270":1}}],["modified",{"0":{"147":1},"2":{"13":1,"147":2,"148":1,"149":1,"150":1,"151":1,"152":4}}],["modify",{"2":{"0":2}}],["modes",{"2":{"262":1}}],["model",{"0":{"233":1,"250":1},"1":{"234":1,"235":1,"236":1,"237":1,"238":1,"239":1,"240":1,"241":1,"242":1,"243":1,"244":1,"245":1,"246":1,"247":1,"248":1,"249":1,"250":1,"251":1,"252":1,"253":1,"254":1},"2":{"233":1}}],["mode为true",{"2":{"142":1}}],["mode",{"2":{"2":5,"6":3,"262":5,"274":2,"294":2,"295":1}}],["most",{"2":{"0":1}}],["lyf结尾",{"2":{"279":1}}],["lyfunction语法",{"2":{"294":1}}],["lyfunction",{"2":{"279":1}}],["lt",{"2":{"276":2,"293":1,"294":7,"296":10,"298":2}}],["lead",{"2":{"276":1}}],["least",{"2":{"15":2}}],["level=0",{"2":{"162":1}}],["level",{"0":{"161":1},"2":{"1":3,"161":2,"162":6}}],["lsposed",{"2":{"8":1}}],["llonebot",{"2":{"8":1}}],["laptop",{"2":{"224":2}}],["lang",{"0":{"223":1,"224":1},"2":{"223":3,"224":2}}],["language",{"2":{"2":2,"273":1,"276":3}}],["last",{"2":{"145":4}}],["lambda",{"2":{"117":1,"118":2,"119":2,"120":2,"121":1}}],["lagrange",{"2":{"8":2}}],["locks",{"2":{"106":1}}],["lock",{"0":{"115":2},"2":{"104":3,"105":3,"106":3,"113":1}}],["local",{"2":{"1":1}}],["loop",{"0":{"111":1},"2":{"19":4,"66":1,"69":3,"103":2,"111":2,"268":10}}],["log0000",{"2":{"262":1}}],["logger",{"0":{"25":1},"2":{"19":1,"20":2,"21":2,"22":1,"24":1,"25":1,"35":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"66":2,"125":1,"126":1,"127":1,"128":2,"129":1,"136":1,"139":2,"141":1,"162":7,"230":3,"231":3,"262":3,"268":1,"287":2}}],["logo",{"2":{"19":1}}],["logic",{"2":{"6":1,"275":1}}],["login",{"2":{"6":2}}],["logs",{"2":{"2":1}}],["log",{"0":{"160":1,"162":1},"1":{"161":1,"162":1},"2":{"1":4,"6":1,"25":1,"160":1,"162":3,"262":1}}],["loaded",{"0":{"227":1},"2":{"227":1}}],["loader",{"0":{"258":1,"259":1},"1":{"259":1},"2":{"19":1,"259":1}}],["loading",{"2":{"125":1,"126":1,"127":1}}],["load",{"0":{"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"229":1,"230":1,"231":1},"1":{"230":1,"231":1,"232":1},"2":{"0":1,"2":2,"19":1,"125":3,"126":3,"127":3,"128":4,"129":2,"130":3,"154":2,"229":1,"230":3,"231":2,"259":2,"296":1,"297":1}}],["links",{"2":{"276":2}}],["linux",{"2":{"8":1,"12":1,"14":1,"15":1,"22":1}}],["like",{"2":{"261":1}}],["life",{"2":{"44":1}}],["lifespan=self",{"2":{"19":1}}],["lifespan",{"0":{"27":2,"28":1,"29":1,"30":1,"31":2,"32":1,"36":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"45":2,"46":2,"47":2,"48":2,"49":2,"50":2,"51":2,"135":2},"1":{"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":2,"45":2,"46":2,"47":2,"48":2,"49":2,"50":2,"51":2,"52":2,"53":2,"54":2,"55":2,"56":2,"57":2},"2":{"19":3,"27":5,"28":4,"29":4,"30":4,"31":5,"32":4,"36":1,"39":2,"42":2,"44":6,"45":4,"46":4,"47":4,"48":4,"49":4,"50":4,"51":4,"135":4}}],["litedoc",{"2":{"276":1}}],["liteecho",{"0":{"256":1,"257":1},"1":{"257":1},"2":{"256":2,"257":2,"294":1}}],["liteloader",{"2":{"8":1}}],["liteyukiexception",{"0":{"157":1}}],["liteyukistudio",{"2":{"12":1,"13":1,"36":1,"131":1,"153":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"178":1,"187":1,"228":1,"229":1,"233":1,"256":1,"258":1}}],["liteyuki",{"0":{"17":1,"36":1,"58":1,"85":1,"88":1,"89":1,"93":1,"99":1,"122":1,"123":1,"131":1,"142":1,"153":1,"155":1,"156":1,"158":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"178":1,"187":1,"226":1,"228":1,"229":1,"233":1,"255":1,"256":1,"258":1,"266":1,"296":1},"1":{"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"65":1,"66":1,"67":1,"68":1,"69":1,"70":1,"71":1,"72":1,"73":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"81":1,"82":1,"83":1,"84":1,"86":1,"87":1,"90":1,"91":1,"92":1,"94":1,"95":1,"96":1,"97":1,"98":1,"100":1,"101":1,"102":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"132":1,"133":1,"134":1,"135":1,"136":1,"137":1,"138":1,"139":1,"140":1,"141":1,"143":1,"144":1,"145":1,"146":1,"147":1,"148":1,"149":1,"150":1,"151":1,"152":1,"154":1,"157":1,"159":1,"161":1,"162":1,"164":1,"165":1,"166":1,"169":1,"170":1,"171":1,"172":1,"174":1,"175":1,"176":1,"179":1,"180":1,"181":1,"182":1,"183":1,"184":1,"185":1,"186":1,"188":1,"189":1,"190":1,"191":1,"192":1,"193":1,"194":1,"195":1,"196":1,"197":1,"198":1,"199":1,"200":1,"201":1,"202":1,"203":1,"204":1,"205":1,"206":1,"207":1,"208":1,"209":1,"210":1,"211":1,"212":1,"213":1,"214":1,"215":1,"216":1,"217":1,"218":1,"219":1,"220":1,"221":1,"222":1,"223":1,"224":1,"225":1,"227":1,"230":1,"231":1,"232":1,"234":1,"235":1,"236":1,"237":1,"238":1,"239":1,"240":1,"241":1,"242":1,"243":1,"244":1,"245":1,"246":1,"247":1,"248":1,"249":1,"250":1,"251":1,"252":1,"253":1,"254":1,"257":1,"259":1,"267":1,"268":1,"269":1,"270":1,"271":1,"297":1},"2":{"1":6,"2":4,"3":2,"4":2,"6":6,"12":1,"14":1,"15":1,"19":2,"21":2,"33":1,"154":2,"158":1,"230":5,"259":3,"261":1,"262":12,"265":2,"273":4,"275":6,"276":2,"277":1,"278":1,"286":1,"287":4,"290":1,"291":1,"294":4,"295":3}}],["liteyukibot",{"0":{"18":1,"33":1},"1":{"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1},"2":{"0":5,"9":1,"12":2,"13":6,"14":1,"22":1,"33":2,"154":1,"261":1,"275":3}}],["limited",{"2":{"4":1}}],["listdir",{"2":{"129":1,"231":2}}],["listen",{"2":{"261":1}}],["listening",{"2":{"1":1}}],["listed",{"2":{"6":1}}],["list",{"0":{"165":1,"176":1,"196":1,"210":1,"211":1,"212":1,"215":1,"216":1,"217":1,"221":1},"2":{"1":4,"44":6,"66":2,"100":1,"101":1,"165":1,"170":1,"174":3,"176":1,"221":4,"222":4,"224":3,"294":1,"296":2,"297":1}}],["switch",{"2":{"294":2,"295":1}}],["simple",{"2":{"286":1}}],["single",{"2":{"276":1}}],["signature",{"2":{"271":2}}],["sides",{"2":{"3":1,"6":1}}],["side",{"0":{"3":1},"2":{"6":4}}],["src",{"2":{"259":1,"275":2,"287":5}}],["schedule",{"2":{"152":1}}],["script",{"0":{"14":1},"2":{"14":1}}],["scripts",{"2":{"12":1}}],["shinjuku",{"2":{"301":1}}],["shellstatistic",{"2":{"303":1}}],["shellbind",{"2":{"301":1}}],["shellweather",{"2":{"301":1}}],["shellmain",{"2":{"292":1}}],["shellvar",{"2":{"280":1}}],["shellcmd",{"2":{"279":1}}],["shell",{"2":{"279":1,"281":1}}],["shutil",{"2":{"224":1}}],["shutdown",{"0":{"29":1,"30":1,"48":1,"49":1,"54":1,"55":1},"2":{"29":2,"30":2,"44":2,"48":2,"49":2,"54":3,"55":3}}],["show",{"2":{"162":6}}],["should",{"2":{"66":1,"276":7}}],["shared",{"0":{"116":1},"2":{"103":3,"117":1,"118":3,"119":3,"120":3,"121":2,"137":1,"261":1,"265":3}}],["syntax",{"2":{"273":1,"276":1}}],["sync",{"0":{"37":1,"40":1,"59":1,"62":1},"2":{"39":1,"42":1,"61":1,"64":1,"271":1}}],["sys",{"2":{"22":3,"162":1}}],["system",{"0":{"152":1},"2":{"15":2,"22":4,"152":1,"287":2}}],["snowykami",{"2":{"36":2,"131":2,"153":2,"160":2,"163":2,"167":2,"168":2,"173":2,"177":2,"178":2,"187":2,"228":2,"229":2,"233":2,"256":2,"258":2}}],["sleep",{"2":{"21":1,"22":1,"262":1,"280":1,"281":1}}],["style",{"2":{"276":2,"292":2}}],["stem",{"2":{"270":2}}],["stdout",{"2":{"162":1}}],["store",{"2":{"103":1,"104":1,"105":1,"106":2,"107":1,"255":1}}],["storage",{"0":{"99":1},"1":{"100":1,"101":1,"102":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1},"2":{"88":2,"265":2}}],["stopped",{"2":{"20":1}}],["stopping",{"2":{"20":1}}],["stop",{"0":{"26":1},"2":{"19":1,"20":1,"21":2,"26":2}}],["strings",{"2":{"276":2}}],["strip",{"2":{"257":2}}],["str=",{"2":{"223":1,"224":1}}],["structure",{"0":{"275":1},"2":{"67":1}}],["str",{"0":{"23":1,"34":1,"35":2,"66":1,"76":1,"77":1,"78":1,"79":1,"82":2,"83":2,"84":2,"87":2,"95":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"118":2,"119":2,"120":2,"121":2,"124":2,"125":2,"126":2,"127":2,"128":2,"129":2,"130":1,"133":2,"137":1,"139":1,"141":1,"152":1,"154":1,"161":2,"165":9,"166":2,"176":1,"195":1,"196":2,"197":1,"198":1,"199":1,"203":1,"204":1,"206":1,"208":1,"209":1,"212":1,"214":1,"218":1,"219":3,"220":2,"221":1,"222":1,"223":2,"224":3,"227":1,"230":1,"231":1,"232":2,"241":1,"242":1,"243":1,"245":1,"246":1,"247":1,"251":1,"253":1,"270":1},"2":{"19":1,"23":2,"34":2,"35":3,"40":1,"41":1,"66":2,"73":2,"75":2,"76":2,"77":2,"78":2,"79":3,"82":2,"83":2,"84":2,"87":2,"95":1,"100":1,"101":1,"103":5,"104":1,"105":1,"106":1,"107":3,"108":1,"109":1,"110":1,"118":2,"119":2,"120":2,"121":2,"124":2,"125":2,"126":2,"127":2,"128":2,"129":2,"130":1,"133":2,"135":2,"137":1,"139":1,"141":1,"152":1,"154":1,"161":2,"165":9,"166":2,"176":1,"186":1,"219":3,"220":2,"221":1,"222":1,"223":1,"224":4,"227":2,"230":1,"231":1,"232":3,"262":1,"270":2}}],["stat",{"2":{"304":1}}],["statistic",{"2":{"304":1}}],["statistics",{"0":{"303":1},"1":{"304":1}}],["static",{"0":{"191":1},"2":{"222":1}}],["staticmethod",{"0":{"191":1},"2":{"44":1,"45":1,"109":1,"110":1,"222":1}}],["status",{"2":{"294":1,"295":1}}],["standardization",{"0":{"276":1}}],["standard",{"2":{"6":2}}],["startup",{"2":{"262":2}}],["startswith",{"2":{"222":3,"256":1,"257":1}}],["started",{"2":{"6":1}}],["start",{"0":{"27":1,"28":1,"46":1,"47":1,"52":1,"53":1,"111":1,"136":1},"2":{"1":2,"6":3,"12":1,"20":1,"22":2,"27":2,"28":2,"44":2,"46":2,"47":2,"52":3,"53":3,"111":2,"136":2,"262":1,"269":1}}],["starting",{"2":{"0":1,"136":1}}],["s",{"2":{"15":1}}],["sparkles",{"2":{"276":2}}],["space",{"2":{"15":1}}],["split",{"2":{"230":4}}],["specified",{"2":{"230":1}}],["specific",{"2":{"15":1}}],["specify",{"2":{"6":1}}],["so",{"2":{"275":1}}],["sockschannel",{"0":{"94":1},"1":{"95":1,"96":1,"97":1,"98":1}}],["socks",{"0":{"93":1},"1":{"94":1,"95":1,"96":1,"97":1,"98":1}}],["software",{"2":{"36":1,"131":1,"153":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"178":1,"187":1,"228":1,"229":1,"233":1,"256":1,"258":1}}],["source",{"0":{"199":1},"2":{"12":1,"15":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"66":1,"67":1,"68":1,"69":1,"70":1,"76":1,"77":1,"78":1,"79":1,"82":1,"83":1,"84":1,"87":1,"91":1,"92":1,"95":1,"96":1,"97":1,"98":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1,"113":1,"118":1,"119":1,"120":1,"121":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"133":1,"135":1,"136":1,"137":1,"138":1,"139":1,"140":1,"141":1,"145":1,"147":1,"148":1,"149":1,"150":1,"151":1,"152":1,"154":1,"161":1,"162":1,"165":1,"166":1,"170":1,"171":1,"172":1,"174":1,"175":1,"176":1,"181":1,"182":1,"183":1,"184":1,"185":1,"186":1,"219":1,"220":1,"221":1,"222":3,"223":7,"224":1,"227":1,"230":1,"231":1,"232":1,"249":1,"257":1,"259":1,"267":1,"268":1,"269":1,"270":1,"271":1,"275":1,"277":1}}],["solution",{"0":{"8":1,"9":1}}],["some",{"2":{"1":1,"6":2}}],["search",{"2":{"296":1,"297":1}}],["see",{"2":{"274":1}}],["service",{"0":{"236":2},"2":{"232":1,"286":1}}],["server",{"2":{"1":1,"3":1,"9":1,"15":1}}],["sep",{"2":{"222":3}}],["session",{"0":{"165":2,"177":1},"2":{"165":6,"166":5,"177":1}}],["sequence",{"0":{"45":1},"2":{"45":2}}],["setting",{"2":{"274":1}}],["set",{"0":{"76":1,"77":1,"82":1,"104":1,"119":1,"231":1},"2":{"19":1,"21":1,"26":1,"66":1,"76":2,"77":2,"81":1,"82":3,"104":2,"118":1,"119":3,"231":2,"265":1,"268":1,"294":2,"295":1,"298":2}}],["self",{"0":{"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"44":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"66":1,"67":1,"68":1,"69":1,"70":1,"87":1,"91":1,"92":1,"95":1,"96":1,"97":1,"98":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"111":1,"133":1,"135":1,"136":1,"137":1,"138":1,"139":1,"140":1,"141":1,"147":1,"148":1,"149":1,"150":1,"151":1,"165":1,"166":1,"170":1,"171":1,"172":1,"181":1,"182":1,"183":1,"184":1,"249":1},"2":{"19":11,"20":4,"21":3,"22":4,"23":2,"24":2,"25":1,"26":3,"27":2,"28":2,"29":2,"30":2,"31":2,"32":2,"44":8,"46":2,"47":2,"48":2,"49":2,"50":2,"51":2,"52":3,"53":3,"54":3,"55":3,"56":3,"57":3,"66":14,"67":6,"68":3,"69":2,"70":3,"87":3,"91":2,"92":2,"95":5,"96":1,"97":1,"98":1,"103":7,"104":3,"105":3,"106":4,"107":3,"108":2,"109":1,"111":4,"133":6,"135":4,"136":2,"137":2,"138":2,"139":3,"140":3,"141":3,"147":1,"148":2,"149":2,"150":2,"151":2,"165":10,"166":3,"170":5,"171":2,"172":3,"181":2,"182":2,"183":2,"184":3,"222":1,"223":1,"249":2}}],["send",{"0":{"67":1,"96":1},"2":{"6":1,"23":2,"66":2,"67":4,"76":1,"78":1,"79":1,"83":1,"84":1,"95":1,"96":1,"104":1,"105":1,"106":1,"107":1,"108":1,"111":1,"118":1,"121":1,"166":1,"261":1,"262":3,"294":1}}],["summary",{"2":{"276":1}}],["summary>",{"2":{"223":3}}],["summary>源代码",{"2":{"223":1}}],["suggestions",{"0":{"274":1}}],["su",{"0":{"186":1},"2":{"186":1,"256":1,"257":1}}],["succeeded",{"2":{"230":1}}],["success",{"2":{"139":1,"162":2,"230":2}}],["such",{"2":{"6":1,"274":1,"276":2}}],["subscribe",{"2":{"109":1}}],["subscriber",{"0":{"100":1,"101":1,"109":1,"110":1},"2":{"109":7,"110":2,"111":1}}],["sub",{"0":{"101":1},"2":{"33":1,"66":2,"70":1,"103":1,"109":4,"111":1}}],["submitted",{"2":{"276":1}}],["submit",{"2":{"7":1,"273":2}}],["sure",{"2":{"6":2}}],["support",{"2":{"276":1}}],["supported",{"2":{"4":1,"129":1}}],["supports",{"2":{"0":1,"8":5}}],["superuser",{"2":{"1":1}}],["superusers",{"2":{"0":1,"1":1,"6":1,"186":1}}],["same",{"2":{"3":2}}],["safe",{"2":{"2":2,"6":3,"125":1}}],["num为每页显示数量",{"2":{"296":2}}],["num",{"2":{"296":2}}],["number",{"2":{"13":2}}],["nliteyuki",{"2":{"279":1}}],["n\`\`\`",{"2":{"223":2}}],["n\`\`\`python",{"2":{"223":2}}],["n",{"2":{"223":52,"224":2}}],["name>",{"2":{"280":2}}],["name=module",{"2":{"230":3}}],["name=target",{"2":{"222":2}}],["name=class",{"2":{"222":1}}],["name=node",{"2":{"222":2}}],["name=f",{"2":{"137":2}}],["name=",{"2":{"71":1,"72":1,"73":1,"80":1,"81":1,"103":3,"286":1}}],["name",{"0":{"23":1,"66":1,"76":1,"78":1,"87":1,"95":1,"137":1,"139":1,"141":1,"195":1,"203":1,"208":1,"225":1,"232":2,"241":1,"251":1,"253":1,"270":1},"2":{"23":6,"66":11,"76":7,"77":2,"78":5,"82":3,"83":3,"87":3,"95":4,"136":3,"137":5,"138":1,"139":6,"140":2,"141":5,"222":11,"223":7,"224":2,"230":20,"231":9,"232":6,"249":1,"262":2,"270":1,"294":4,"296":8}}],["ntqq",{"2":{"8":1}}],["npm",{"2":{"6":1,"296":7,"297":1}}],["nesting",{"2":{"276":1}}],["new",{"2":{"19":1,"124":3,"268":1,"273":1,"276":2}}],["necessary",{"2":{"6":1}}],["needs",{"2":{"262":1}}],["need",{"2":{"0":1,"2":1,"6":1,"273":1}}],["non",{"2":{"277":1}}],["nonlocal",{"2":{"145":1}}],["nonedog",{"2":{"286":1}}],["none",{"0":{"19":1,"23":1,"34":1,"35":1,"44":1,"45":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"66":1,"70":1,"91":1,"104":1,"105":1,"106":1,"108":1,"114":1,"137":1,"152":1,"165":2,"172":1,"205":1,"223":1,"224":1,"254":1},"2":{"19":1,"23":2,"33":1,"34":1,"35":1,"44":1,"45":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"66":3,"67":1,"69":1,"70":2,"91":1,"95":2,"104":1,"106":1,"108":1,"113":2,"125":1,"126":1,"127":1,"137":1,"143":1,"145":1,"152":1,"165":1,"172":1,"179":2,"184":1,"222":3,"224":1,"230":4,"231":1,"267":1}}],["nonebot2",{"2":{"4":2,"10":1}}],["nonebot",{"0":{"3":1},"2":{"1":2,"2":2,"3":1,"10":1,"262":3,"266":1,"275":3,"286":1,"287":4,"290":1}}],["nohup",{"2":{"22":2,"280":1,"281":1}}],["nodes",{"2":{"222":2}}],["node",{"2":{"8":1,"15":1,"222":42}}],["notimplementederror",{"2":{"147":1}}],["not",{"2":{"1":1,"2":1,"4":1,"6":4,"15":2,"21":1,"23":1,"33":1,"66":1,"67":2,"70":4,"76":1,"106":1,"109":3,"111":1,"125":1,"126":1,"127":1,"128":3,"129":3,"139":2,"141":2,"152":2,"172":1,"220":1,"222":8,"230":1,"231":8,"276":3,"287":2}}],["normal>",{"2":{"162":1}}],["normal",{"0":{"12":1,"222":1},"2":{"1":1,"222":1,"224":1}}],["no",{"0":{"128":1,"129":1,"130":1,"195":1,"196":1,"197":1,"198":1,"200":1,"201":1,"203":1,"204":1,"208":1,"209":1,"210":1,"211":1,"212":1,"214":1,"215":1,"216":1,"217":1,"218":1,"225":1,"241":1,"251":1,"252":1,"253":1},"2":{"1":1,"74":1,"75":1,"128":3,"129":3,"130":3,"222":3,"223":1,"224":2,"276":1}}],["nickname",{"2":{"0":1,"1":2,"6":3}}],["ignored",{"0":{"224":1},"2":{"224":7}}],["ignore",{"0":{"106":1,"222":1,"231":1},"2":{"106":3,"222":5,"224":1,"231":5}}],["id仅超级用户可用",{"2":{"294":1}}],["id=user",{"2":{"281":2}}],["id=1234567",{"2":{"294":2}}],["id=123456",{"2":{"281":1}}],["id=self",{"2":{"166":3}}],["id",{"0":{"165":3},"2":{"70":5,"165":9,"166":3,"186":1,"222":6,"281":2,"294":2,"296":1,"303":4}}],["ids",{"2":{"66":2,"70":2}}],["impossible",{"2":{"261":1}}],["import",{"2":{"117":1,"230":1,"262":5,"265":1,"286":2,"287":3,"290":1}}],["implemented",{"2":{"147":1,"262":1}}],["implement",{"2":{"6":1,"262":1}}],["implementation",{"0":{"3":1},"2":{"3":1,"6":4,"8":1}}],["image",{"2":{"13":1,"294":2,"295":1}}],["i",{"2":{"6":2,"174":2,"262":6}}],["icon=f",{"2":{"162":5}}],["icon",{"2":{"1":2,"162":7,"223":1,"224":2}}],["isclass",{"2":{"267":1}}],["iscoroutinefunction",{"2":{"267":2}}],["isroutine",{"2":{"267":1}}],["isfile",{"2":{"231":1,"287":1}}],["isdir",{"2":{"231":2}}],["isinstance",{"2":{"76":1,"124":1,"222":13,"230":1,"262":1}}],["issues",{"2":{"9":2}}],["issue",{"2":{"7":1}}],["is",{"0":{"141":1,"186":1,"201":1,"267":1},"2":{"1":3,"2":1,"3":3,"4":1,"6":2,"12":1,"15":1,"19":1,"20":2,"21":3,"23":1,"33":2,"45":1,"66":6,"67":1,"70":5,"76":1,"78":1,"79":1,"103":2,"104":1,"105":1,"106":1,"107":1,"109":3,"111":1,"113":2,"125":1,"126":1,"127":1,"137":1,"139":1,"141":2,"152":1,"158":1,"165":1,"184":1,"186":1,"222":2,"223":2,"224":1,"230":1,"231":2,"255":1,"261":2,"262":3,"267":1,"268":1,"275":3,"276":12,"277":1}}],["if",{"2":{"1":2,"2":4,"3":1,"6":2,"7":1,"13":2,"15":2,"22":2,"23":1,"33":2,"35":2,"45":1,"66":5,"67":3,"68":1,"70":6,"76":3,"78":1,"79":1,"104":1,"105":1,"106":3,"107":1,"109":5,"111":2,"113":2,"124":1,"125":1,"126":1,"127":1,"128":2,"129":3,"137":1,"139":2,"141":1,"145":1,"152":1,"161":1,"162":5,"165":1,"166":1,"172":1,"174":1,"184":1,"220":1,"221":1,"222":20,"223":10,"224":4,"230":2,"231":9,"267":2,"268":1,"270":1,"273":3,"276":2}}],["inaccessible",{"2":{"276":1}}],["included",{"2":{"275":1}}],["including",{"2":{"15":1}}],["index",{"2":{"223":1,"224":1,"292":1}}],["inherit=",{"2":{"222":1}}],["inherit",{"0":{"212":1},"2":{"223":5}}],["inspect",{"2":{"267":4,"271":1}}],["insert",{"2":{"174":1}}],["instance",{"0":{"113":1,"114":1},"2":{"19":2,"33":4,"67":1,"76":1,"113":5,"116":1}}],["installed",{"2":{"15":1}}],["installation",{"0":{"12":1},"2":{"6":2}}],["install",{"0":{"11":1},"1":{"12":1,"13":1,"14":1,"15":1,"16":1},"2":{"6":3,"12":3,"13":1,"15":2,"293":1,"296":1,"297":1}}],["instead",{"2":{"6":2,"13":1,"35":1}}],["inner",{"2":{"66":2}}],["initialized",{"2":{"33":1,"66":2}}],["initializing",{"2":{"19":1}}],["init",{"0":{"19":1,"24":1,"25":1,"44":1,"66":1,"87":1,"91":1,"95":1,"103":1,"133":1,"135":1,"162":1,"165":1,"170":1,"181":1},"2":{"19":2,"24":2,"25":2,"44":1,"66":1,"87":1,"91":1,"95":1,"103":1,"133":1,"135":1,"162":1,"165":1,"167":1,"170":1,"181":1,"222":1,"224":2,"231":2,"258":1,"270":1,"286":3}}],["introducing",{"2":{"276":1}}],["introduction",{"0":{"261":1}}],["into",{"2":{"273":1}}],["inter",{"2":{"261":1}}],["interpreter",{"2":{"6":1}}],["interpreters",{"2":{"6":2}}],["int=0",{"2":{"22":1,"175":1,"176":1}}],["int",{"0":{"22":1,"170":1,"175":1,"176":1},"2":{"22":1,"44":1,"66":2,"170":1}}],["intact",{"2":{"6":1}}],["invalidgitrepositoryerror",{"2":{"6":1}}],["information",{"2":{"3":1,"274":1}}],["info",{"0":{"222":1,"223":1},"2":{"1":1,"19":1,"20":2,"21":2,"22":1,"162":3,"222":12,"223":5,"224":5,"262":2}}],["in",{"0":{"130":1,"269":1},"2":{"0":3,"1":1,"2":1,"3":2,"6":3,"23":1,"33":1,"35":3,"45":1,"66":5,"69":1,"70":1,"76":1,"77":1,"106":1,"109":3,"110":1,"111":1,"124":2,"128":1,"129":2,"130":1,"136":1,"138":1,"139":1,"140":1,"141":1,"152":1,"154":1,"172":1,"174":1,"176":2,"186":1,"220":1,"221":2,"222":13,"223":9,"224":5,"231":2,"255":2,"259":2,"261":1,"268":2,"269":1,"273":5,"274":2,"275":4,"276":6,"277":1,"287":1}}],["iter",{"2":{"222":2}}],["items",{"2":{"0":1,"6":1,"77":1,"124":2,"220":1,"223":1,"224":1}}],["itself",{"2":{"6":1,"9":1}}],["it",{"2":{"0":1,"2":2,"3":1,"6":5,"12":1,"261":2}}],["r>",{"2":{"230":2}}],["rv",{"2":{"224":2}}],["rk",{"2":{"224":2}}],["rmtree",{"2":{"224":1}}],["rpm",{"2":{"296":5,"297":1}}],["rp",{"2":{"220":4}}],["rpc",{"0":{"89":1,"90":1},"1":{"90":1,"91":2,"92":2},"2":{"88":1}}],["rule=is",{"2":{"256":1,"257":1}}],["rule=empty",{"2":{"175":1,"176":1}}],["rulehandlerfunc",{"0":{"179":1,"181":1},"2":{"181":1}}],["rule",{"0":{"170":2,"175":3,"176":2,"178":1,"180":1,"182":2,"183":2,"185":1,"186":1},"1":{"179":1,"180":1,"181":2,"182":2,"183":2,"184":2,"185":1,"186":1},"2":{"170":5,"172":1,"175":3,"176":5,"178":1,"182":3,"183":3,"184":1,"185":3,"186":2,"256":1,"257":1}}],["runnable",{"2":{"276":1}}],["running",{"2":{"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"66":1,"69":1,"103":2,"261":1,"268":2}}],["runtimeerror",{"2":{"33":2,"67":1,"68":1,"70":1,"109":1,"111":1,"268":1}}],["run",{"0":{"13":1,"20":1,"45":1,"110":1,"154":1,"172":1,"268":1,"269":1},"2":{"0":1,"12":1,"13":2,"15":1,"20":3,"45":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"69":1,"110":1,"111":1,"136":1,"154":2,"172":1,"268":3,"269":1,"290":2}}],["raw",{"0":{"165":1},"2":{"165":3,"166":1,"176":1,"257":1}}],["raise",{"2":{"33":2,"66":3,"67":2,"68":1,"70":1,"76":2,"106":1,"109":1,"111":1,"147":1}}],["rights",{"2":{"36":1,"131":1,"153":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"178":1,"187":1,"228":1,"229":1,"233":1,"256":1,"258":1}}],["root",{"2":{"13":1,"221":2}}],["r",{"2":{"12":1,"15":1,"125":1,"126":1,"127":1,"222":1}}],["revise",{"2":{"276":1}}],["reverse",{"2":{"3":2}}],["readme",{"2":{"224":2}}],["read",{"2":{"222":1,"273":2}}],["reload",{"2":{"294":1,"295":2,"296":1,"297":1}}],["reloading",{"2":{"287":1}}],["related",{"2":{"275":1,"276":1}}],["relative",{"0":{"219":1},"2":{"219":1,"224":1,"225":1,"270":1}}],["rel",{"2":{"224":4,"270":5}}],["relpath",{"2":{"219":1}}],["red>",{"2":{"162":1}}],["remove",{"2":{"162":1}}],["ref",{"0":{"117":1}}],["refer",{"0":{"16":1},"2":{"6":1,"276":1}}],["reference",{"2":{"3":1,"273":1}}],["returns",{"2":{"222":4}}],["return",{"0":{"197":1},"2":{"27":2,"28":2,"29":2,"30":2,"31":2,"32":2,"33":2,"34":2,"35":4,"46":2,"47":2,"48":2,"49":2,"50":2,"51":2,"68":2,"69":2,"70":7,"78":3,"79":3,"92":1,"97":1,"105":3,"107":3,"109":3,"113":1,"124":2,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"139":1,"141":1,"145":3,"152":4,"161":2,"171":3,"172":1,"175":1,"176":2,"182":2,"183":2,"184":2,"185":1,"186":1,"219":1,"221":1,"222":4,"223":4,"227":2,"230":2,"231":1,"232":2,"249":1,"267":4,"270":3,"271":3}}],["reply",{"0":{"166":1},"2":{"166":3,"257":1}}],["replace",{"2":{"13":1,"222":3,"223":4,"224":8}}],["repository",{"2":{"273":7,"275":2,"276":1}}],["repo",{"2":{"13":1}}],["report设定为false",{"2":{"299":1}}],["reports",{"2":{"6":1}}],["report",{"2":{"1":2,"6":2,"299":1}}],["request",{"2":{"273":1}}],["requests",{"2":{"1":1}}],["required",{"2":{"66":1,"276":1}}],["requires",{"2":{"15":1}}],["requirements",{"0":{"15":1},"1":{"16":1},"2":{"12":1,"15":1}}],["restriction",{"2":{"276":1}}],["restarting",{"2":{"22":1}}],["restart",{"0":{"22":1,"23":1,"31":1,"32":1,"50":1,"51":1,"56":1,"57":1},"2":{"0":1,"19":1,"22":3,"23":1,"31":2,"32":2,"44":2,"50":2,"51":2,"56":3,"57":3,"287":2}}],["resource",{"2":{"275":1}}],["resources",{"2":{"275":1,"291":1,"292":1,"295":1}}],["resolve",{"2":{"270":2}}],["reserved",{"2":{"36":1,"131":1,"153":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"178":1,"187":1,"228":1,"229":1,"233":1,"256":1,"258":1}}],["response",{"2":{"6":2}}],["respond",{"2":{"6":1}}],["receiving",{"2":{"262":1}}],["receive",{"0":{"59":1,"60":1,"61":1,"68":1,"69":1,"70":1,"97":1,"100":1,"101":1,"109":3,"110":1,"111":1,"165":1},"2":{"1":1,"61":2,"66":3,"68":2,"69":2,"70":4,"78":1,"79":1,"81":1,"82":2,"83":2,"84":1,"97":1,"100":1,"101":1,"103":2,"105":1,"107":1,"109":11,"110":2,"111":4,"117":1,"118":2,"119":2,"120":2,"121":1,"165":3,"166":3,"262":11}}],["recursive=recursive",{"2":{"152":1}}],["recursive",{"0":{"152":1},"2":{"152":2}}],["recv",{"2":{"66":2,"68":2,"78":5,"79":5,"83":3,"84":3,"95":1,"105":5,"107":5,"118":3,"121":3}}],["recommended",{"0":{"8":1,"9":1},"2":{"3":1,"6":1,"12":1,"14":1,"15":2,"276":1}}],["city",{"2":{"301":1,"302":1}}],["css相对路径引用b中的css",{"2":{"292":1}}],["css",{"2":{"291":1,"292":1}}],["cwd",{"2":{"270":1}}],["cfg",{"2":{"154":4}}],["current|bot",{"2":{"303":1}}],["current|group",{"2":{"303":1}}],["current",{"2":{"145":3,"303":2,"304":1}}],["custom",{"2":{"2":4}}],["customize",{"2":{"2":1}}],["c",{"2":{"36":1,"124":1,"131":1,"153":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"178":1,"187":1,"228":1,"229":1,"232":1,"233":1,"256":1,"258":1,"268":4,"270":2,"304":1}}],["cmd",{"2":{"22":5,"279":2,"280":1}}],["cpu",{"2":{"15":1,"299":1}}],["cd",{"2":{"12":1,"13":1}}],["cls",{"0":{"113":1},"2":{"113":6,"222":1,"223":11}}],["close",{"0":{"98":1},"2":{"98":1,"268":1}}],["closed",{"2":{"66":1,"67":2,"68":2,"95":1}}],["clone",{"2":{"12":2,"13":2}}],["cloning",{"2":{"6":1}}],["classdef",{"2":{"222":3}}],["classes=",{"2":{"222":1}}],["classes",{"0":{"216":1},"2":{"222":1,"223":1}}],["classinfo",{"0":{"207":1,"216":1},"1":{"208":1,"209":1,"210":1,"211":1,"212":1},"2":{"222":1}}],["classmethod",{"0":{"192":1},"2":{"112":1,"113":1,"222":1}}],["class",{"0":{"18":1,"43":1,"65":1,"86":1,"90":1,"94":1,"102":1,"112":1,"132":1,"134":1,"146":1,"157":1,"164":1,"169":1,"180":1,"188":1,"192":1,"194":1,"202":1,"207":1,"213":1,"234":1,"240":1,"248":1},"1":{"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"66":1,"67":1,"68":1,"69":1,"70":1,"87":1,"91":1,"92":1,"95":1,"96":1,"97":1,"98":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1,"113":1,"114":1,"115":1,"133":1,"135":1,"136":1,"137":1,"138":1,"139":1,"140":1,"141":1,"147":1,"148":1,"149":1,"150":1,"151":1,"165":1,"166":1,"170":1,"171":1,"172":1,"181":1,"182":1,"183":1,"184":1,"189":1,"190":1,"191":1,"192":1,"193":1,"195":1,"196":1,"197":1,"198":1,"199":1,"200":1,"201":1,"203":1,"204":1,"205":1,"206":1,"208":1,"209":1,"210":1,"211":1,"212":1,"214":1,"215":1,"216":1,"217":1,"218":1,"235":1,"236":1,"237":1,"238":1,"239":1,"241":1,"242":1,"243":1,"244":1,"245":1,"246":1,"247":1,"249":1,"250":1,"251":1,"252":1,"253":1,"254":1},"2":{"222":24,"223":2}}],["client",{"2":{"8":1}}],["cqhttp",{"2":{"8":1}}],["chinese",{"2":{"275":1}}],["child",{"2":{"222":2,"261":1}}],["chromium",{"2":{"15":1}}],["channel时的通道标识",{"2":{"262":1}}],["channel即可",{"2":{"262":1}}],["channel及passive",{"2":{"262":1}}],["channel函数获取通道对象",{"2":{"262":2}}],["channel=none",{"2":{"166":1}}],["channeldeliver",{"0":{"132":1},"1":{"133":1},"2":{"137":1}}],["channels",{"0":{"77":2,"79":1,"84":1},"2":{"77":4,"79":2,"83":1,"84":3}}],["channel",{"0":{"58":1,"65":1,"71":1,"72":1,"73":1,"74":2,"75":2,"76":3,"77":1,"78":2,"79":1,"80":2,"81":2,"82":1,"83":1,"93":1,"108":1,"109":1,"110":1,"133":8,"165":2,"260":1},"1":{"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"65":1,"66":2,"67":2,"68":2,"69":2,"70":2,"71":1,"72":1,"73":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"81":1,"82":1,"83":1,"84":1,"94":1,"95":1,"96":1,"97":1,"98":1,"261":1,"262":1,"263":1,"264":1,"265":1},"2":{"23":2,"66":7,"67":1,"68":1,"71":3,"72":3,"73":3,"74":2,"75":1,"76":19,"77":5,"78":9,"79":7,"80":3,"81":6,"82":11,"83":7,"84":2,"88":2,"103":4,"105":1,"107":1,"108":4,"109":8,"110":3,"111":2,"133":12,"137":12,"165":4,"166":2,"261":3,"262":14}}],["chan",{"2":{"23":4,"78":5,"79":5,"83":3,"84":3,"103":2,"104":1,"105":6,"106":1,"107":6,"108":1,"111":1,"117":1,"118":5,"119":2,"120":2,"121":4,"137":2,"262":2}}],["changed",{"2":{"287":1}}],["change",{"2":{"12":1,"13":1,"296":1,"297":1}}],["chat",{"2":{"6":1,"7":1,"9":1}}],["checking",{"2":{"274":1}}],["check",{"0":{"66":1},"2":{"1":1,"6":1,"66":8,"67":1}}],["cn",{"0":{"223":1,"224":1},"2":{"2":1,"223":2,"224":1}}],["color",{"2":{"232":7}}],["color=",{"2":{"162":5}}],["colors=true",{"2":{"20":2,"230":3}}],["copy",{"2":{"124":1,"273":1}}],["copyright",{"2":{"36":1,"131":1,"153":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"178":1,"187":1,"228":1,"229":1,"233":1,"256":1,"258":1}}],["count",{"0":{"117":1},"2":{"19":1,"22":2}}],["code插件liteyuki",{"2":{"283":1}}],["code=ast",{"2":{"222":2}}],["codemodifiedhandler",{"0":{"146":1},"1":{"147":1,"148":1,"149":1,"150":1,"151":1},"2":{"152":1}}],["code",{"0":{"199":1},"2":{"15":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"66":1,"67":1,"68":1,"69":1,"70":1,"76":1,"77":1,"78":1,"79":1,"82":1,"83":1,"84":1,"87":1,"91":1,"92":1,"95":1,"96":1,"97":1,"98":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1,"113":1,"118":1,"119":1,"120":1,"121":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"133":1,"135":1,"136":1,"137":1,"138":1,"139":1,"140":1,"141":1,"145":1,"147":1,"148":1,"149":1,"150":1,"151":1,"152":4,"154":1,"161":1,"162":1,"165":1,"166":1,"170":1,"171":1,"172":1,"174":1,"175":1,"176":1,"181":1,"182":1,"183":1,"184":1,"185":1,"186":1,"219":1,"220":1,"221":1,"222":1,"223":7,"224":3,"227":1,"230":1,"231":1,"232":1,"249":1,"257":1,"259":1,"267":1,"268":1,"269":1,"270":1,"271":1,"273":2,"274":1,"275":1,"276":6}}],["corresponding",{"2":{"276":1}}],["correct",{"2":{"276":2}}],["correctly",{"2":{"6":2,"276":1}}],["coro",{"0":{"268":1,"269":1},"2":{"268":5,"269":2}}],["coroutine",{"0":{"267":1,"268":2,"269":2,"271":1},"2":{"45":1,"60":1,"63":1,"70":2,"109":1,"179":1,"267":1,"268":2,"269":3,"271":2}}],["core",{"0":{"122":1,"131":1},"1":{"132":1,"133":1,"134":1,"135":1,"136":1,"137":1,"138":1,"139":1,"140":1,"141":1},"2":{"8":1}}],["come",{"2":{"261":1}}],["combined",{"2":{"182":2,"183":2}}],["com",{"2":{"12":1,"13":1,"36":1,"131":1,"153":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"178":1,"187":1,"228":1,"229":1,"233":1,"256":1,"258":1}}],["compat",{"0":{"35":2},"2":{"35":8}}],["completing",{"2":{"276":1}}],["completion",{"2":{"2":2}}],["complete",{"2":{"268":2,"276":1}}],["complies",{"2":{"6":1}}],["computer",{"2":{"6":1}}],["commit",{"2":{"276":6}}],["comment",{"2":{"276":1}}],["communicate",{"2":{"261":1}}],["communication",{"0":{"260":1},"1":{"261":1,"262":1,"263":1,"264":1,"265":1},"2":{"3":1,"261":1}}],["comm",{"0":{"58":1,"85":1,"88":1,"89":1,"93":1,"99":1},"1":{"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"65":1,"66":1,"67":1,"68":1,"69":1,"70":1,"71":1,"72":1,"73":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"81":1,"82":1,"83":1,"84":1,"86":1,"87":1,"90":1,"91":1,"92":1,"94":1,"95":1,"96":1,"97":1,"98":1,"100":1,"101":1,"102":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1},"2":{"262":2,"265":2}}],["command>",{"2":{"280":2}}],["command",{"0":{"294":1},"1":{"295":1},"2":{"1":4,"6":5,"10":1}}],["conditions",{"2":{"276":1}}],["contributions",{"2":{"277":1}}],["content",{"2":{"222":2,"223":17,"224":2,"275":1,"276":1}}],["continue",{"2":{"129":1,"222":1,"224":1,"231":3}}],["container",{"2":{"13":1}}],["contact",{"2":{"6":1,"273":1}}],["conn",{"2":{"66":4,"67":1,"68":1,"95":2}}],["connect",{"2":{"6":1}}],["connected",{"0":{"3":1}}],["convenient",{"2":{"14":1}}],["confirm",{"2":{"6":1}}],["configs",{"0":{"129":1},"2":{"129":1,"130":1}}],["config=self",{"2":{"25":1}}],["configured",{"2":{"3":1}}],["configuration",{"0":{"1":1,"3":1},"2":{"0":5,"1":1,"2":2,"3":1,"6":2}}],["configurations",{"0":{"0":1,"2":1},"1":{"1":1,"2":1,"3":1,"4":1},"2":{"2":1}}],["config",{"0":{"34":1,"35":1,"123":1,"124":2,"130":1,"162":1,"250":1},"1":{"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1},"2":{"0":5,"2":2,"19":2,"25":1,"34":2,"35":6,"124":9,"125":6,"126":6,"127":6,"128":7,"129":4,"130":9,"154":1,"162":3,"259":2,"274":1,"294":4,"295":1}}],["conflict",{"2":{"6":1}}],["conflicts",{"2":{"6":1,"12":1,"273":1}}],["console",{"2":{"1":1,"274":1}}],["created",{"0":{"148":1},"2":{"148":1}}],["create",{"2":{"0":1,"12":1,"110":1,"273":2}}],["case",{"2":{"232":4,"273":1}}],["cases",{"2":{"0":1}}],["category",{"2":{"223":1,"224":2}}],["calling",{"0":{"91":2},"2":{"91":4,"92":1}}],["callback",{"0":{"143":1,"152":2},"2":{"70":1,"152":4,"262":1}}],["callable",{"0":{"70":3,"109":1,"152":1,"171":1,"267":2,"271":2},"2":{"37":1,"38":1,"40":1,"41":1,"45":1,"59":1,"60":1,"62":1,"63":1,"70":10,"109":2,"135":1,"143":1,"144":1,"152":1,"171":1,"179":1,"267":2,"271":4}}],["call",{"0":{"92":1,"267":1},"2":{"19":1,"22":2,"92":1,"145":4,"184":1,"262":1,"267":7}}],["cache",{"2":{"13":2}}],["cannot",{"2":{"6":1,"67":1,"68":1,"109":1,"111":1}}],["can",{"2":{"0":2,"4":1,"6":2,"7":1,"12":1,"33":1,"70":1,"261":1,"262":1,"274":1,"276":1}}],["duration>",{"2":{"303":1}}],["duration",{"2":{"303":2,"304":1}}],["during",{"2":{"274":1}}],["duplex",{"2":{"262":1}}],["driver",{"2":{"262":4}}],["d",{"2":{"117":2,"118":4,"119":4,"120":4,"121":2,"270":2,"304":1}}],["data=",{"2":{"166":1}}],["data",{"0":{"67":1,"82":1,"83":1,"84":1,"87":1,"96":1,"108":1,"110":1,"118":1,"119":1,"120":1,"121":1,"165":1,"220":1},"2":{"67":6,"68":2,"69":2,"70":5,"81":2,"82":7,"83":7,"84":4,"87":3,"96":2,"97":1,"108":4,"109":3,"110":3,"111":6,"118":4,"119":3,"120":2,"121":2,"165":5,"220":5,"224":5,"262":7}}],["daemon=true",{"2":{"22":1,"136":1,"269":1}}],["darwin",{"2":{"22":1}}],["day",{"2":{"1":1}}],["dog",{"2":{"286":1,"287":1}}],["double",{"2":{"276":1}}],["dot",{"2":{"222":1}}],["document",{"2":{"276":1}}],["documents",{"2":{"273":1}}],["documentation",{"2":{"6":1,"9":1,"273":1,"275":3,"276":7}}],["docs",{"0":{"224":1},"2":{"224":3,"275":1,"294":1,"295":1}}],["docstring=method",{"2":{"222":1}}],["docstring=module",{"2":{"222":1}}],["docstring=class",{"2":{"222":1}}],["docstring=function",{"2":{"222":1}}],["docstring",{"0":{"198":1,"206":1,"209":1,"218":1},"2":{"222":16,"223":12,"276":2}}],["docker",{"0":{"13":1},"2":{"13":4,"275":2}}],["don",{"2":{"6":1,"7":1,"9":1}}],["download",{"2":{"6":1}}],["does",{"2":{"6":4,"231":1}}],["do",{"2":{"6":1,"15":1,"276":1}}],["did",{"2":{"276":1}}],["diagnose=false",{"2":{"162":1}}],["dict",{"0":{"77":1,"79":1,"82":1,"83":1,"84":1,"87":1,"92":1,"107":1,"118":1,"119":1,"120":1,"121":1,"124":2,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"133":1,"162":1,"165":2,"166":1,"220":1,"227":1,"247":1},"2":{"19":1,"73":1,"75":1,"77":2,"79":3,"82":1,"83":1,"84":1,"87":1,"92":1,"100":1,"101":1,"103":2,"107":3,"118":1,"119":1,"120":1,"121":1,"124":3,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"133":1,"135":3,"162":1,"165":2,"166":1,"220":1,"224":1,"227":2,"230":6}}],["disable",{"2":{"294":1,"295":1,"296":2,"297":2}}],["disk",{"2":{"15":1}}],["display",{"0":{"232":2},"2":{"1":1,"230":7,"232":4}}],["different",{"2":{"3":2,"6":1}}],["dir",{"0":{"224":1,"231":1},"2":{"224":5,"231":16,"259":2}}],["dirname",{"2":{"220":2}}],["directories=",{"2":{"287":1}}],["directories",{"0":{"129":1,"152":1},"2":{"129":2,"152":3,"275":3}}],["directory",{"2":{"0":4,"1":1,"2":1,"12":1,"13":2,"129":6,"152":2,"231":1,"275":11}}],["directly",{"2":{"15":1}}],["direct",{"2":{"6":1,"261":1}}],["dirs",{"0":{"129":1},"2":{"1":1,"129":1,"130":1,"221":1,"259":1}}],["details",{"2":{"276":1}}],["details>",{"2":{"223":4}}],["detailed",{"2":{"2":1,"3":1,"276":1}}],["debounce",{"0":{"145":1},"2":{"145":1,"146":1,"147":1}}],["debugging",{"2":{"274":1}}],["debug",{"2":{"2":2,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"66":2,"125":1,"126":1,"127":1,"136":1,"161":2,"162":2,"287":1}}],["deepcopy",{"2":{"124":1}}],["decorator",{"2":{"70":2,"109":2,"145":2,"152":2,"171":2,"222":13,"262":1}}],["del",{"2":{"106":2}}],["deleted",{"0":{"149":1},"2":{"149":1}}],["delete",{"0":{"106":1,"120":1},"2":{"106":2,"119":1,"120":3}}],["deliver",{"0":{"74":1,"75":1,"80":1,"81":1,"133":2},"2":{"76":1,"78":1,"79":1,"80":1,"81":2,"82":2,"83":2,"84":1,"133":6,"137":6}}],["delivery",{"2":{"4":1,"137":1}}],["delay",{"0":{"22":1},"2":{"22":3}}],["deftype",{"0":{"188":1,"200":1},"1":{"189":1,"190":1,"191":1,"192":1,"193":1},"2":{"222":4,"223":1}}],["def",{"2":{"21":1,"45":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"69":1,"70":2,"82":1,"83":1,"84":1,"109":2,"110":1,"111":1,"113":1,"118":1,"119":1,"120":1,"121":1,"145":2,"147":1,"152":2,"171":1,"172":1,"176":1,"182":1,"183":1,"184":1,"185":1,"186":1,"222":4,"223":2,"257":1,"262":3,"271":1,"287":1}}],["defaults",{"2":{"22":1,"23":1,"34":1,"35":1,"70":1}}],["default",{"0":{"34":1,"35":1,"105":1,"130":1,"195":1,"196":1,"197":1,"198":1,"200":1,"201":1,"203":1,"204":1,"208":1,"209":1,"210":1,"211":1,"212":1,"214":1,"215":1,"216":1,"217":1,"218":1,"241":1,"251":1,"252":1,"253":1,"259":1},"2":{"1":1,"2":3,"3":1,"34":3,"35":3,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"71":1,"72":1,"73":1,"74":2,"75":2,"80":1,"81":1,"100":1,"101":1,"105":5,"116":1,"117":1,"118":3,"130":1,"143":1,"144":1,"154":1,"159":1,"161":1,"179":1,"225":1,"259":1}}],["deprecated",{"2":{"35":1}}],["depth=1",{"2":{"12":1,"13":1}}],["deploy",{"2":{"6":1}}],["depend",{"2":{"15":1}}],["dependency",{"2":{"12":1}}],["dependencies",{"2":{"12":1,"15":1}}],["depends",{"2":{"3":1,"15":1}}],["depending",{"2":{"0":1}}],["description=",{"2":{"286":1}}],["description",{"0":{"242":1},"2":{"3":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"66":1,"67":1,"68":1,"69":1,"70":1,"71":1,"72":1,"73":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"81":1,"92":1,"95":1,"96":1,"97":1,"98":1,"100":1,"101":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1,"116":1,"117":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"136":1,"137":1,"139":1,"141":1,"143":1,"144":1,"145":1,"152":1,"154":1,"159":1,"162":1,"165":1,"166":1,"170":1,"171":1,"172":1,"179":1,"219":1,"220":1,"222":1,"223":1,"224":1,"225":1,"227":1,"230":1,"231":1,"232":1,"259":1,"267":1,"268":1,"269":1,"270":1,"271":1,"276":1,"292":1}}],["device",{"0":{"15":1},"1":{"16":1},"2":{"15":1}}],["developer",{"2":{"274":1,"286":1}}],["developers",{"2":{"9":1}}],["developing",{"2":{"273":2}}],["develop",{"0":{"273":1},"1":{"274":1},"2":{"9":1,"273":1,"275":2}}],["development",{"0":{"272":1},"1":{"273":1,"274":1,"275":1,"276":1,"277":1},"2":{"2":3,"273":2,"274":1,"276":1,"277":1}}],["dev",{"0":{"142":1,"153":1,"155":1},"1":{"143":1,"144":1,"145":1,"146":1,"147":1,"148":1,"149":1,"150":1,"151":1,"152":1,"154":1},"2":{"2":1,"274":1,"287":1,"290":1}}],["two",{"2":{"262":1}}],["target",{"0":{"137":3,"219":1},"2":{"137":5,"219":3,"222":5}}],["target=run",{"2":{"269":1}}],["target=self",{"2":{"136":1}}],["target=os",{"2":{"22":1}}],["targets",{"2":{"135":1,"136":1,"137":1,"138":1,"140":1,"141":1,"222":2}}],["task",{"2":{"110":1,"136":1}}],["tasks",{"2":{"45":2}}],["types",{"0":{"250":1}}],["type=plugintype",{"2":{"286":1}}],["type=attr",{"2":{"222":1}}],["type=ast",{"2":{"222":3}}],["type=def",{"2":{"222":1}}],["type=deftype",{"2":{"222":1}}],["type=self",{"2":{"166":2}}],["typeerror",{"2":{"66":1,"67":1,"76":1}}],["typealias",{"2":{"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"143":1,"144":1,"179":1}}],["type",{"0":{"66":1,"165":2,"197":1,"200":1,"204":1,"232":1,"244":1},"2":{"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"66":11,"67":7,"71":1,"72":1,"73":1,"74":1,"75":1,"76":1,"100":1,"101":1,"116":1,"143":1,"144":1,"165":6,"166":2,"179":1,"222":11,"223":13,"230":2,"232":4,"276":5}}],["tuple=",{"2":{"137":1}}],["tuplestr",{"2":{"35":1}}],["tuple",{"0":{"35":1,"82":1,"83":1,"84":1,"92":1,"118":1,"119":1,"120":1,"121":1,"133":2,"137":1,"152":1,"196":1},"2":{"35":1,"73":1,"75":1,"82":1,"83":1,"84":1,"92":1,"103":3,"118":1,"119":1,"120":1,"121":1,"133":2,"135":2,"152":1}}],["tests",{"2":{"275":1}}],["test",{"0":{"239":2},"2":{"232":1,"275":1}}],["text",{"2":{"223":3}}],["terminated",{"2":{"139":1}}],["terminate",{"0":{"139":1,"140":1},"2":{"22":1,"26":1,"139":2,"140":2}}],["telegram",{"2":{"6":1}}],["title",{"2":{"224":2}}],["time>",{"2":{"280":1}}],["timeout",{"2":{"139":1}}],["time",{"2":{"22":1,"36":1,"131":1,"145":9,"153":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"178":1,"187":1,"228":1,"229":1,"233":1,"256":1,"258":1}}],["tip",{"2":{"12":1,"13":1,"283":1,"292":1,"293":1}}],["txt",{"2":{"12":1,"15":1}}],["transfer",{"2":{"261":1}}],["traceback",{"2":{"172":1,"230":1}}],["tree",{"2":{"222":3}}],["try",{"2":{"20":1,"21":1,"106":1,"172":1,"230":1,"268":1}}],["trss",{"0":{"14":1},"2":{"8":1,"14":1}}],["true时例如docs",{"2":{"224":1}}],["true",{"0":{"106":1,"152":1,"222":1,"231":1,"250":1},"2":{"1":3,"2":4,"6":1,"68":1,"111":1,"162":1,"184":1,"185":1,"224":1,"262":2,"274":1}}],["t",{"0":{"65":1,"67":1,"68":1,"69":1,"70":2},"1":{"66":1,"67":1,"68":1,"69":1,"70":1},"2":{"6":1,"7":1,"9":1,"13":1,"33":1,"59":1,"60":1,"62":1,"63":1,"67":2,"68":2,"69":2,"70":7}}],["through",{"2":{"261":2}}],["thread",{"0":{"269":1},"2":{"22":1,"136":1,"269":2}}],["threading",{"0":{"115":1},"2":{"19":1,"22":1,"136":1,"269":1}}],["that",{"2":{"6":2,"261":1,"262":1,"273":2,"276":7}}],["this",{"2":{"6":3,"158":1,"255":1,"273":1,"275":2,"277":1}}],["then",{"2":{"6":1,"12":1}}],["therefore",{"2":{"261":1}}],["there",{"2":{"1":1,"6":1,"15":1,"276":2}}],["these",{"2":{"0":1,"275":1}}],["the",{"2":{"0":6,"1":1,"2":4,"3":6,"4":2,"6":20,"9":2,"10":3,"12":3,"13":2,"15":4,"158":1,"230":1,"255":1,"261":1,"262":2,"273":10,"274":1,"275":6,"276":24}}],["tokyo",{"2":{"301":1}}],["token",{"2":{"2":2}}],["together",{"2":{"276":1}}],["top",{"0":{"224":1},"2":{"224":3}}],["tools",{"2":{"274":1}}],["too",{"2":{"6":1}}],["to",{"0":{"3":1,"16":1,"220":1,"270":1,"273":1},"1":{"274":1},"2":{"0":1,"1":6,"2":3,"3":2,"4":1,"6":17,"12":6,"13":1,"14":2,"15":5,"22":1,"23":1,"34":1,"35":1,"67":1,"70":1,"220":1,"224":1,"230":5,"231":2,"255":1,"261":3,"262":2,"270":2,"273":5,"274":1,"276":7,"277":1}}],["toml",{"0":{"127":1},"2":{"0":2,"127":4,"128":2,"130":1}}],["world",{"2":{"279":5}}],["w",{"2":{"220":1}}],["write",{"0":{"220":1},"2":{"220":2,"224":1}}],["wrapper",{"0":{"271":1},"2":{"45":1,"70":2,"109":4,"137":1,"145":2,"152":2,"271":4}}],["watchdog",{"2":{"287":1,"290":1}}],["watch",{"2":{"286":1,"287":1}}],["walk",{"2":{"221":1,"222":1}}],["wait",{"0":{"145":1},"2":{"145":2}}],["waring=no",{"2":{"130":1}}],["waring",{"0":{"129":1,"130":1},"2":{"129":3,"130":3}}],["warning=no",{"2":{"129":1,"130":1}}],["warning",{"0":{"128":1,"231":1},"2":{"15":2,"35":1,"128":5,"129":1,"139":1,"141":1,"162":2,"230":1,"231":8,"283":1,"297":1}}],["way",{"2":{"14":1}}],["want",{"2":{"1":1}}],["weather",{"0":{"301":1},"1":{"302":1},"2":{"301":1,"302":1}}],["welcome",{"2":{"277":1}}],["we",{"2":{"9":1,"276":1,"277":1}}],["websocket",{"2":{"3":2}}],["windows10+",{"2":{"15":1}}],["windows",{"2":{"13":1,"15":2,"22":1}}],["without",{"2":{"15":1}}],["with",{"0":{"13":1,"35":1,"224":1},"2":{"6":2,"13":1,"35":1,"104":1,"105":1,"106":1,"113":1,"220":1,"222":1,"223":5,"224":3,"261":1,"262":1,"273":2}}],["will",{"2":{"0":3,"2":3,"6":1,"15":2,"35":1,"277":1}}],["what",{"2":{"276":1}}],["while",{"2":{"21":1,"68":1,"111":1,"262":2}}],["which",{"2":{"6":2,"14":1}}],["why",{"2":{"6":1}}],["where",{"2":{"276":1}}],["whether",{"2":{"1":3,"2":1}}],["when",{"2":{"0":2,"276":2}}],["ws",{"2":{"3":2}}],["poke",{"2":{"281":4}}],["possible",{"2":{"276":3}}],["port",{"2":{"1":2,"13":2}}],["pep8",{"2":{"276":1}}],["period\`",{"2":{"304":1}}],["period>",{"2":{"303":1}}],["period",{"2":{"303":2}}],["permit",{"2":{"276":1}}],["permission",{"2":{"6":1}}],["persists",{"2":{"6":1}}],["personal",{"2":{"0":1,"273":1}}],["pull",{"2":{"273":1}}],["publish=publish",{"2":{"137":1}}],["publish",{"0":{"73":1,"108":1,"133":1},"2":{"73":1,"103":2,"108":2,"111":2,"133":3}}],["pwd",{"2":{"13":3}}],["p",{"2":{"13":1,"304":1}}],["pipe",{"2":{"66":2}}],["pip",{"2":{"12":1,"15":1,"230":1}}],["py即可启动插件",{"2":{"290":1}}],["pyo",{"2":{"287":1}}],["pycache",{"2":{"287":1}}],["pyc",{"2":{"287":1}}],["pycharm",{"2":{"36":1,"131":1,"153":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"178":1,"187":1,"228":1,"229":1,"233":1,"256":1,"258":1}}],["py文件",{"2":{"286":1}}],["py文件或一个包含",{"2":{"286":1}}],["py的文件夹即可被识别为插件",{"2":{"286":1}}],["pyfile",{"0":{"225":1},"2":{"224":8,"225":1}}],["pyi",{"2":{"221":1,"222":1}}],["py",{"2":{"6":1,"12":1,"36":1,"131":1,"153":1,"160":1,"163":1,"167":2,"168":1,"173":1,"177":1,"178":1,"187":1,"221":1,"222":1,"224":1,"228":1,"229":1,"231":3,"233":1,"256":1,"258":2,"265":1,"275":1,"286":1,"287":1,"290":2,"292":1}}],["python格式",{"2":{"279":1}}],["pythonfrom",{"2":{"262":1,"265":1,"286":1,"290":1}}],["pythonimport",{"2":{"262":1,"287":1}}],["pythonasync",{"2":{"21":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"69":1,"111":1,"172":1,"184":1}}],["pythondef",{"2":{"19":1,"20":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"44":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"66":1,"67":1,"68":1,"70":1,"76":1,"77":1,"78":1,"79":1,"87":1,"91":1,"92":1,"95":1,"96":1,"97":1,"98":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"133":1,"135":1,"136":1,"137":1,"138":1,"139":1,"140":1,"141":1,"145":1,"148":1,"149":1,"150":1,"151":1,"152":1,"154":1,"161":1,"162":1,"165":1,"166":1,"170":1,"171":1,"174":1,"175":1,"176":1,"181":1,"182":1,"183":1,"219":1,"220":1,"221":1,"222":1,"223":1,"224":1,"227":1,"230":1,"231":1,"232":1,"249":1,"259":1,"267":1,"268":1,"269":1,"270":1,"271":1}}],["python3",{"2":{"12":1,"15":1}}],["python",{"2":{"6":5,"12":2,"15":3,"45":1,"82":1,"83":1,"84":1,"110":1,"113":1,"118":1,"119":1,"120":1,"121":1,"147":1,"185":1,"186":1,"222":1,"257":1,"273":1,"276":1}}],["page为页数",{"2":{"296":2}}],["page",{"2":{"296":2}}],["pacman",{"0":{"296":1},"1":{"297":1}}],["pack",{"2":{"292":2,"296":3}}],["packs",{"2":{"275":1}}],["param",{"2":{"293":1}}],["participate",{"2":{"277":1}}],["participation",{"2":{"273":1}}],["part",{"2":{"275":1,"276":1}}],["parts",{"2":{"270":2}}],["parent",{"2":{"222":4}}],["parse",{"2":{"222":1,"276":1}}],["parser",{"2":{"10":1}}],["parsed",{"2":{"6":1}}],["parsing",{"2":{"1":1}}],["pass",{"2":{"96":1,"97":1,"98":1}}],["passive=channel",{"2":{"137":1}}],["passive=chan",{"2":{"137":1}}],["passive",{"0":{"72":1,"75":1,"81":1,"133":2},"2":{"72":1,"76":1,"78":1,"79":1,"81":2,"82":2,"83":2,"84":1,"103":2,"104":1,"105":1,"106":1,"107":1,"117":1,"118":2,"119":2,"120":2,"121":1,"133":6,"137":5,"262":15}}],["pathlib",{"2":{"230":1}}],["paths=none",{"2":{"224":1}}],["paths",{"0":{"224":1},"2":{"224":4}}],["path=dot",{"2":{"222":1}}],["path",{"0":{"154":2,"214":1,"219":3,"222":1,"225":1,"230":2,"270":3},"2":{"6":2,"13":1,"15":3,"128":1,"129":2,"154":4,"219":8,"220":3,"221":1,"222":6,"224":22,"225":2,"230":16,"231":26,"270":11,"287":5}}],["platform",{"2":{"22":3}}],["platforms",{"2":{"6":1}}],["playwright",{"2":{"6":2}}],["plugintype",{"0":{"232":1,"234":1,"244":2},"1":{"235":1,"236":1,"237":1,"238":1,"239":1},"2":{"232":5,"286":1}}],["pluginmetadata",{"0":{"240":1,"254":1},"1":{"241":1,"242":1,"243":1,"244":1,"245":1,"246":1,"247":1},"2":{"230":4,"286":2}}],["plugin的函数签名",{"2":{"154":1}}],["plugin",{"0":{"153":1,"226":1,"227":1,"228":1,"229":1,"230":2,"231":2,"232":1,"233":1,"248":1,"258":1},"1":{"154":1,"227":1,"230":1,"231":1,"232":1,"234":1,"235":1,"236":1,"237":1,"238":1,"239":1,"240":1,"241":1,"242":1,"243":1,"244":1,"245":1,"246":1,"247":1,"248":1,"249":2,"250":2,"251":2,"252":2,"253":2,"254":2,"259":1},"2":{"1":3,"4":1,"6":3,"8":1,"10":1,"19":2,"153":1,"227":2,"230":14,"231":5,"232":4,"255":1,"259":6,"261":1,"273":2,"275":3,"286":4,"289":1,"290":2,"296":5}}],["plugins下创建一个文件",{"2":{"290":1}}],["plugins中添加你的插件路径",{"2":{"289":1}}],["plugins",{"0":{"154":1,"227":1,"231":1,"255":1,"256":1,"258":1,"259":1},"1":{"257":1,"259":1},"2":{"1":1,"2":2,"6":2,"15":3,"19":1,"154":6,"227":2,"230":3,"231":9,"255":1,"259":4,"275":5,"287":1,"290":2}}],["please",{"0":{"16":1},"2":{"1":2,"2":1,"3":2,"6":4,"9":1,"13":2,"15":1,"273":3,"275":2,"276":2}}],["private",{"0":{"222":1},"2":{"222":5}}],["priority",{"0":{"170":1,"175":1,"176":1},"2":{"170":4,"174":2,"175":2,"176":2}}],["prioritize",{"2":{"9":1}}],["print",{"2":{"19":1,"172":1,"224":1,"230":1}}],["profile",{"2":{"298":4}}],["profit",{"2":{"277":1}}],["property",{"0":{"193":2},"2":{"222":2}}],["provides",{"2":{"10":3,"14":1,"261":1}}],["provided",{"2":{"3":1,"6":1}}],["problematic",{"2":{"6":1}}],["problem",{"2":{"6":1}}],["problems",{"2":{"1":1}}],["processmanager",{"0":{"134":1},"1":{"135":1,"136":1,"137":1,"138":1,"139":1,"140":1,"141":1},"2":{"19":2}}],["process",{"0":{"23":1,"30":2,"31":3,"40":1,"41":1,"42":1,"45":1,"48":3,"50":3,"54":1,"56":1,"141":1},"2":{"19":1,"20":1,"22":1,"23":4,"26":1,"30":5,"31":6,"33":2,"42":2,"44":4,"45":2,"48":6,"50":6,"54":2,"56":2,"66":4,"70":3,"76":1,"78":1,"79":1,"104":1,"105":1,"106":1,"107":1,"109":3,"111":2,"135":1,"136":2,"138":2,"139":7,"141":2,"261":2,"262":8,"287":2}}],["processes",{"2":{"6":1,"15":1,"23":1,"135":1,"139":2,"141":1,"261":4}}],["processing",{"2":{"6":1}}],["protocol",{"2":{"3":1,"6":1,"8":6}}],["production",{"2":{"3":1}}],["project",{"0":{"275":1},"2":{"0":1,"6":2,"9":2,"12":1,"13":1,"275":1,"277":2}}],["prefix",{"2":{"1":1}}],["preference",{"2":{"0":1}}],["y",{"2":{"232":1}}],["yellow>",{"2":{"162":1}}],["y>",{"2":{"20":2}}],["y>liteyuki",{"2":{"20":2}}],["yunzai",{"2":{"8":1}}],["yml格式的所有合法内容",{"2":{"294":1}}],["yml文件",{"2":{"292":1}}],["yml中填写一些信息",{"2":{"292":1}}],["yml",{"2":{"0":2,"128":1,"130":1,"274":1,"292":2,"294":1}}],["you",{"2":{"0":4,"1":1,"2":1,"3":1,"4":1,"6":6,"7":2,"12":1,"13":2,"15":2,"261":1,"273":5,"274":1,"276":2}}],["your",{"2":{"0":1,"13":1,"15":1,"230":2,"273":6,"277":1}}],["yamlweather",{"2":{"301":1}}],["yamlname",{"2":{"292":1}}],["yaml",{"0":{"125":1},"2":{"0":2,"1":1,"2":2,"125":4,"128":2,"130":1}}],["a包中的index",{"2":{"292":1}}],["application",{"0":{"235":2},"2":{"232":1,"275":4}}],["append",{"2":{"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"70":2,"109":2,"171":1,"174":1,"221":1,"222":5}}],["api格式为onebot",{"2":{"294":1}}],["api文档",{"2":{"282":1}}],["api也有差别",{"2":{"282":1}}],["api",{"0":{"282":1},"2":{"224":6,"273":1,"280":3,"281":2,"294":3}}],["awaitable",{"2":{"38":1,"41":1}}],["await",{"2":{"21":1,"45":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"69":1,"70":2,"109":1,"111":2,"172":2,"182":2,"183":2,"184":1,"262":1,"280":1,"281":1,"283":1}}],["arbitrary",{"0":{"250":1}}],["arg",{"2":{"222":13,"223":16}}],["argv",{"2":{"22":1}}],["args=coro",{"2":{"269":1}}],["args=",{"2":{"22":1,"136":1,"222":2}}],["args",{"0":{"24":1,"45":1,"54":1,"56":1,"92":1,"137":1,"196":1},"2":{"22":2,"24":2,"45":3,"54":2,"56":2,"92":2,"137":3,"145":2,"222":8,"223":8,"271":2,"294":4}}],["arguments",{"2":{"19":1,"22":1,"23":1,"24":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"34":1,"35":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"66":1,"67":1,"70":1,"76":1,"77":1,"78":1,"95":1,"96":1,"104":1,"105":1,"106":1,"108":1,"109":1,"110":1,"124":1,"137":1,"139":1,"141":1,"152":1,"154":1,"166":1,"170":1,"172":1,"219":1,"220":1,"222":1,"223":1,"224":1,"230":1,"231":1,"232":1,"267":1,"268":1,"269":1,"270":1,"271":1}}],["arch",{"2":{"14":1}}],["are",{"2":{"1":1,"6":2,"13":1,"15":1,"261":1,"273":4,"275":1,"276":2}}],["abs",{"2":{"224":4}}],["absolute",{"2":{"13":1}}],["able",{"2":{"15":1}}],["about",{"2":{"6":1}}],["active和",{"2":{"262":1}}],["active和chan",{"2":{"137":1}}],["active=channel",{"2":{"137":1}}],["active=chan",{"2":{"137":1}}],["active",{"0":{"71":1,"74":1,"80":1,"133":2},"2":{"23":6,"71":1,"80":1,"103":2,"108":1,"111":1,"133":6,"137":4,"262":13}}],["activate",{"2":{"12":4}}],["acknowledgements",{"0":{"10":1}}],["account",{"2":{"7":1,"273":1}}],["according",{"2":{"6":1}}],["accesstoken",{"2":{"3":2}}],["access",{"2":{"2":2}}],["author",{"0":{"245":1},"2":{"6":1,"36":1,"131":1,"153":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"178":1,"187":1,"228":1,"229":1,"233":1,"256":1,"258":1}}],["auto",{"2":{"1":2,"2":2}}],["automatically",{"2":{"0":1,"1":2}}],["after",{"0":{"28":1,"29":1,"32":1,"47":1,"49":1,"51":1,"53":1,"55":1,"57":1},"2":{"6":2,"28":2,"29":2,"32":2,"44":3,"47":2,"49":2,"51":2,"53":3,"55":3,"57":3,"262":1,"276":1}}],["avoid",{"2":{"6":1,"12":1}}],["available",{"2":{"1":1}}],["a",{"2":{"3":1,"6":4,"7":1,"8":3,"9":1,"12":2,"14":1,"67":1,"68":1,"124":1,"224":2,"231":1,"261":1,"262":1,"270":1,"273":4,"276":4,"277":1,"286":1}}],["annassign",{"2":{"222":1}}],["annotation",{"2":{"222":6}}],["an",{"2":{"6":1,"7":1,"67":1,"76":1}}],["anyone",{"2":{"277":1}}],["any=none",{"2":{"34":1,"35":1}}],["any",{"0":{"34":2,"35":2,"70":2,"82":1,"83":1,"84":1,"87":1,"92":1,"104":1,"105":2,"107":1,"108":1,"110":1,"118":1,"119":1,"120":1,"121":1,"124":2,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"133":4,"151":1,"165":2,"166":1,"205":1,"247":1,"267":1,"271":1},"2":{"2":1,"4":1,"19":1,"34":3,"35":3,"37":1,"38":1,"40":1,"41":1,"59":1,"60":3,"63":2,"70":7,"73":1,"74":1,"75":1,"78":1,"79":1,"82":1,"83":1,"84":1,"87":1,"92":1,"103":3,"104":1,"105":4,"107":3,"108":1,"109":1,"110":1,"118":1,"119":1,"120":1,"121":1,"124":2,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"133":4,"151":1,"165":2,"166":1,"176":1,"222":7,"224":1,"267":1,"271":1}}],["and",{"2":{"0":6,"4":1,"6":7,"9":1,"12":2,"15":2,"67":1,"152":1,"183":2,"222":7,"223":1,"231":3,"261":3,"262":2,"273":4,"274":2,"275":2,"276":9,"277":1,"287":2}}],["adapter",{"2":{"3":1,"4":2}}],["advanced",{"2":{"2":1}}],["addition",{"2":{"276":1}}],["add",{"0":{"137":1,"174":1},"2":{"2":1,"137":1,"162":1,"174":1,"175":1,"231":1,"276":1}}],["address",{"2":{"1":1,"3":2}}],["amp",{"0":{"183":1},"2":{"13":2}}],["am",{"2":{"1":1,"262":6}}],["attributes=",{"2":{"222":2}}],["attributes",{"0":{"211":1,"217":1},"2":{"222":2,"223":2}}],["attributeinfo",{"0":{"202":1,"211":1,"217":1},"1":{"203":1,"204":1,"205":1,"206":1},"2":{"222":2}}],["attr",{"0":{"114":1,"115":1,"189":1,"190":1,"191":1,"192":1,"193":1,"195":1,"196":1,"197":1,"198":1,"199":1,"200":1,"201":1,"203":1,"204":1,"205":1,"206":1,"208":1,"209":1,"210":1,"211":1,"212":1,"214":1,"215":1,"216":1,"217":1,"218":1,"235":1,"236":1,"237":1,"238":1,"239":1,"241":1,"242":1,"243":1,"244":1,"245":1,"246":1,"247":1,"250":1,"251":1,"252":1,"253":1,"254":1},"2":{"222":2,"223":14}}],["at",{"2":{"1":1,"15":2}}],["already",{"2":{"66":2,"76":1,"273":1}}],["alive",{"0":{"21":1,"141":1},"2":{"21":2,"139":1,"141":2}}],["alconna",{"2":{"1":2,"2":2,"10":1}}],["allowed",{"0":{"250":1}}],["allow",{"2":{"2":2}}],["all",{"0":{"107":1,"121":1,"136":1,"138":1,"140":1},"2":{"0":1,"2":1,"20":1,"22":1,"26":1,"36":1,"107":2,"120":1,"121":3,"131":1,"136":1,"138":1,"140":1,"153":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"178":1,"187":1,"228":1,"229":1,"233":1,"256":1,"258":1}}],["assumes",{"2":{"273":1}}],["assign",{"2":{"222":2}}],["ast",{"2":{"222":29}}],["asynchronous",{"2":{"271":1}}],["async=isinstance",{"2":{"222":2}}],["asyncfunctiondef",{"2":{"222":3}}],["async",{"0":{"21":1,"38":1,"41":1,"45":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"60":1,"63":1,"69":2,"110":1,"111":1,"172":1,"184":1,"185":1,"186":1,"201":1,"257":1,"271":1},"2":{"39":1,"42":1,"45":3,"61":1,"64":1,"69":1,"70":1,"100":1,"101":1,"109":1,"110":1,"111":1,"176":1,"182":1,"183":1,"185":1,"186":1,"223":4,"257":1,"262":2,"271":2}}],["asyncio",{"2":{"19":2,"20":1,"21":1,"45":1,"69":1,"110":1,"262":2,"268":5}}],["ask",{"2":{"9":1}}],["asked",{"0":{"6":1}}],["as",{"2":{"0":1,"3":1,"6":2,"106":1,"220":1,"222":1,"230":1,"268":1,"274":1,"276":6}}]],"serializationVersion":2}`;export{e as default}; diff --git a/assets/chunks/@localSearchIndexen.DRcj1hkO.js b/assets/chunks/@localSearchIndexen.DRcj1hkO.js new file mode 100644 index 00000000..82d001d8 --- /dev/null +++ b/assets/chunks/@localSearchIndexen.DRcj1hkO.js @@ -0,0 +1 @@ +const e=`{"documentCount":305,"nextId":305,"documentIds":{"0":"/en/deploy/config.html#configurations","1":"/en/deploy/config.html#basic-configuration","2":"/en/deploy/config.html#other-configurations","3":"/en/deploy/config.html#example-configuration-of-onebot-implementation-side-connected-to-nonebot","4":"/en/deploy/config.html#other","5":"/en/deploy/fandq.html#faq","6":"/en/deploy/fandq.html#frequently-asked-questions","7":"/en/deploy/fandq.html#other-questions","8":"/en/deploy/fandq.html#recommended-solution-qq","9":"/en/deploy/fandq.html#recommended-solution-minecraft","10":"/en/deploy/fandq.html#acknowledgements","11":"/en/deploy/install.html#install","12":"/en/deploy/install.html#normal-installation","13":"/en/deploy/install.html#run-with-docker","14":"/en/deploy/install.html#use-trss-script","15":"/en/deploy/install.html#device-requirements","16":"/en/deploy/install.html#for-other-questions-please-refer-to-faq","17":"/en/dev/api/bot/#module-liteyuki-bot","18":"/en/dev/api/bot/#class-liteyukibot","19":"/en/dev/api/bot/#func-init-self-kwargs-none","20":"/en/dev/api/bot/#func-run-self","21":"/en/dev/api/bot/#async-func-keep-alive-self","22":"/en/dev/api/bot/#func-restart-self-delay-int-0","23":"/en/dev/api/bot/#func-restart-process-self-name-optional-str-none","24":"/en/dev/api/bot/#func-init-self-args-kwargs","25":"/en/dev/api/bot/#func-init-logger-self","26":"/en/dev/api/bot/#func-stop-self","27":"/en/dev/api/bot/#func-on-before-start-self-func-lifespan-func-lifespan-func","28":"/en/dev/api/bot/#func-on-after-start-self-func-lifespan-func","29":"/en/dev/api/bot/#func-on-after-shutdown-self-func-lifespan-func","30":"/en/dev/api/bot/#func-on-before-process-shutdown-self-func-process-lifespan-func","31":"/en/dev/api/bot/#func-on-before-process-restart-self-func-process-lifespan-func-process-lifespan-func","32":"/en/dev/api/bot/#func-on-after-restart-self-func-lifespan-func","33":"/en/dev/api/bot/#func-get-bot-liteyukibot","34":"/en/dev/api/bot/#func-get-config-key-str-default-any-none-any","35":"/en/dev/api/bot/#func-get-config-with-compat-key-str-compat-keys-tuple-str-default-any-none-any","36":"/en/dev/api/bot/lifespan.html#module-liteyuki-bot-lifespan","37":"/en/dev/api/bot/lifespan.html#var-sync-lifespan-func","38":"/en/dev/api/bot/lifespan.html#var-async-lifespan-func","39":"/en/dev/api/bot/lifespan.html#var-lifespan-func","40":"/en/dev/api/bot/lifespan.html#var-sync-process-lifespan-func","41":"/en/dev/api/bot/lifespan.html#var-async-process-lifespan-func","42":"/en/dev/api/bot/lifespan.html#var-process-lifespan-func","43":"/en/dev/api/bot/lifespan.html#class-lifespan","44":"/en/dev/api/bot/lifespan.html#func-init-self-none","45":"/en/dev/api/bot/lifespan.html#async-func-run-funcs-funcs-sequence-lifespan-func-process-lifespan-func-args-kwargs-none","46":"/en/dev/api/bot/lifespan.html#func-on-before-start-self-func-lifespan-func-lifespan-func","47":"/en/dev/api/bot/lifespan.html#func-on-after-start-self-func-lifespan-func-lifespan-func","48":"/en/dev/api/bot/lifespan.html#func-on-before-process-shutdown-self-func-process-lifespan-func-process-lifespan-func","49":"/en/dev/api/bot/lifespan.html#func-on-after-shutdown-self-func-lifespan-func-lifespan-func","50":"/en/dev/api/bot/lifespan.html#func-on-before-process-restart-self-func-process-lifespan-func-process-lifespan-func","51":"/en/dev/api/bot/lifespan.html#func-on-after-restart-self-func-lifespan-func-lifespan-func","52":"/en/dev/api/bot/lifespan.html#async-func-before-start-self-none","53":"/en/dev/api/bot/lifespan.html#async-func-after-start-self-none","54":"/en/dev/api/bot/lifespan.html#async-func-before-process-shutdown-self-args-kwargs-none","55":"/en/dev/api/bot/lifespan.html#async-func-after-shutdown-self-none","56":"/en/dev/api/bot/lifespan.html#async-func-before-process-restart-self-args-kwargs-none","57":"/en/dev/api/bot/lifespan.html#async-func-after-restart-self-none","58":"/en/dev/api/comm/channel.html#module-liteyuki-comm-channel","59":"/en/dev/api/comm/channel.html#var-sync-on-receive-func","60":"/en/dev/api/comm/channel.html#var-async-on-receive-func","61":"/en/dev/api/comm/channel.html#var-on-receive-func","62":"/en/dev/api/comm/channel.html#var-sync-filter-func","63":"/en/dev/api/comm/channel.html#var-async-filter-func","64":"/en/dev/api/comm/channel.html#var-filter-func","65":"/en/dev/api/comm/channel.html#class-channel-generic-t","66":"/en/dev/api/comm/channel.html#func-init-self-name-str-type-check-optional-bool-none","67":"/en/dev/api/comm/channel.html#func-send-self-data-t","68":"/en/dev/api/comm/channel.html#func-receive-self-t","69":"/en/dev/api/comm/channel.html#async-func-async-receive-self-t","70":"/en/dev/api/comm/channel.html#func-on-receive-self-filter-func-optional-filter-func-none-callable-callable-t-any-callable-t-any","71":"/en/dev/api/comm/channel.html#var-active-channel","72":"/en/dev/api/comm/channel.html#var-passive-channel","73":"/en/dev/api/comm/channel.html#var-publish-channel","74":"/en/dev/api/comm/channel.html#var-channel-deliver-active-channel","75":"/en/dev/api/comm/channel.html#var-channel-deliver-passive-channel","76":"/en/dev/api/comm/channel.html#func-set-channel-name-str-channel-channel","77":"/en/dev/api/comm/channel.html#func-set-channels-channels-dict-str-channel","78":"/en/dev/api/comm/channel.html#func-get-channel-name-str-channel","79":"/en/dev/api/comm/channel.html#func-get-channels-dict-str-channel","80":"/en/dev/api/comm/channel.html#var-channel-deliver-active-channel-1","81":"/en/dev/api/comm/channel.html#var-channel-deliver-passive-channel-1","82":"/en/dev/api/comm/channel.html#func-on-set-channel-data-tuple-str-dict-str-any","83":"/en/dev/api/comm/channel.html#func-on-get-channel-data-tuple-str-dict-str-any","84":"/en/dev/api/comm/channel.html#func-on-get-channels-data-tuple-str-dict-str-any","85":"/en/dev/api/comm/event.html#module-liteyuki-comm-event","86":"/en/dev/api/comm/event.html#class-event","87":"/en/dev/api/comm/event.html#func-init-self-name-str-data-dict-str-any","88":"/en/dev/api/comm/#module-liteyuki-comm","89":"/en/dev/api/comm/rpc.html#module-liteyuki-comm-rpc","90":"/en/dev/api/comm/rpc.html#class-rpc","91":"/en/dev/api/comm/rpc.html#func-init-self-on-calling-on-calling-func-none","92":"/en/dev/api/comm/rpc.html#func-call-self-args-tuple-kwargs-dict-any","93":"/en/dev/api/comm/socks_channel.html#module-liteyuki-comm-socks-channel","94":"/en/dev/api/comm/socks_channel.html#class-sockschannel","95":"/en/dev/api/comm/socks_channel.html#func-init-self-name-str","96":"/en/dev/api/comm/socks_channel.html#func-send-self-data","97":"/en/dev/api/comm/socks_channel.html#func-receive-self","98":"/en/dev/api/comm/socks_channel.html#func-close-self","99":"/en/dev/api/comm/storage.html#module-liteyuki-comm-storage","100":"/en/dev/api/comm/storage.html#var-on-main-subscriber-receive-funcs","101":"/en/dev/api/comm/storage.html#var-on-sub-subscriber-receive-funcs","102":"/en/dev/api/comm/storage.html#class-keyvaluestore","103":"/en/dev/api/comm/storage.html#func-init-self","104":"/en/dev/api/comm/storage.html#func-set-self-key-str-value-any-none","105":"/en/dev/api/comm/storage.html#func-get-self-key-str-default-optional-any-none-optional-any","106":"/en/dev/api/comm/storage.html#func-delete-self-key-str-ignore-key-error-bool-true-none","107":"/en/dev/api/comm/storage.html#func-get-all-self-dict-str-any","108":"/en/dev/api/comm/storage.html#func-publish-self-channel-str-data-any-none","109":"/en/dev/api/comm/storage.html#func-on-subscriber-receive-self-channel-str-callable-on-receive-func-on-receive-func","110":"/en/dev/api/comm/storage.html#async-func-run-subscriber-receive-funcs-channel-str-data-any","111":"/en/dev/api/comm/storage.html#async-func-start-receive-loop-self","112":"/en/dev/api/comm/storage.html#class-globalkeyvaluestore","113":"/en/dev/api/comm/storage.html#func-get-instance-cls","114":"/en/dev/api/comm/storage.html#attr-instance-none","115":"/en/dev/api/comm/storage.html#attr-lock-threading-lock","116":"/en/dev/api/comm/storage.html#var-shared-memory","117":"/en/dev/api/comm/storage.html#var-ref-count","118":"/en/dev/api/comm/storage.html#func-on-get-data-tuple-str-dict-str-any","119":"/en/dev/api/comm/storage.html#func-on-set-data-tuple-str-dict-str-any","120":"/en/dev/api/comm/storage.html#func-on-delete-data-tuple-str-dict-str-any","121":"/en/dev/api/comm/storage.html#func-on-get-all-data-tuple-str-dict-str-any","122":"/en/dev/api/config.html#module-liteyuki-config","123":"/en/dev/api/config.html#func-flat-config-config-dict-str-any-dict-str-any","124":"/en/dev/api/config.html#func-load-from-yaml-file-str-dict-str-any","125":"/en/dev/api/config.html#func-load-from-json-file-str-dict-str-any","126":"/en/dev/api/config.html#func-load-from-toml-file-str-dict-str-any","127":"/en/dev/api/config.html#func-load-from-files-files-str-no-warning-bool-false-dict-str-any","128":"/en/dev/api/config.html#func-load-configs-from-dirs-directories-str-no-waring-bool-false-dict-str-any","129":"/en/dev/api/config.html#func-load-config-in-default-no-waring-bool-false-dict-str-any","130":"/en/dev/api/core/#module-liteyuki-core","131":"/en/dev/api/core/manager.html#module-liteyuki-core-manager","132":"/en/dev/api/core/manager.html#class-channeldeliver","133":"/en/dev/api/core/manager.html#func-init-self-active-channel-any-passive-channel-any-channel-deliver-active-channel-channel-any-channel-deliver-passive-channel-tuple-str-dict-publish-channel-tuple-str-any","134":"/en/dev/api/core/manager.html#class-processmanager","135":"/en/dev/api/core/manager.html#func-init-self-lifespan-lifespan","136":"/en/dev/api/core/manager.html#func-start-all-self","137":"/en/dev/api/core/manager.html#func-add-target-self-name-str-target-target-func-args-tuple-kwargs-none","138":"/en/dev/api/core/manager.html#func-join-all-self","139":"/en/dev/api/core/manager.html#func-terminate-self-name-str","140":"/en/dev/api/core/manager.html#func-terminate-all-self","141":"/en/dev/api/core/manager.html#func-is-process-alive-self-name-str-bool","142":"/en/dev/api/dev/#module-liteyuki-dev","143":"/en/dev/api/dev/observer.html#module-liteyuki-dev-observer","144":"/en/dev/api/dev/observer.html#var-callback-func","145":"/en/dev/api/dev/observer.html#var-filter-func","146":"/en/dev/api/dev/observer.html#func-debounce-wait","147":"/en/dev/api/dev/observer.html#class-codemodifiedhandler-filesystemeventhandler","148":"/en/dev/api/dev/observer.html#func-on-modified-self-event","149":"/en/dev/api/dev/observer.html#func-on-created-self-event","150":"/en/dev/api/dev/observer.html#func-on-deleted-self-event","151":"/en/dev/api/dev/observer.html#func-on-moved-self-event","152":"/en/dev/api/dev/observer.html#func-on-any-event-self-event","153":"/en/dev/api/dev/observer.html#func-on-file-system-event-directories-tuple-str-recursive-bool-true-event-filter-filter-func-none-callable-callback-func-callback-func","154":"/en/dev/api/dev/plugin.html#module-liteyuki-dev-plugin","155":"/en/dev/api/dev/plugin.html#func-run-plugins-module-path-str-path","156":"/en/dev/api/exception.html#module-liteyuki-exception","157":"/en/dev/api/exception.html#class-liteyukiexception-baseexception","158":"/en/dev/api/#module-liteyuki","159":"/en/dev/api/#var-version","160":"/en/dev/api/log.html#module-liteyuki-log","161":"/en/dev/api/log.html#func-get-format-level-str-str","162":"/en/dev/api/log.html#func-init-log-config-dict","163":"/en/dev/api/message/event.html#module-liteyuki-message-event","164":"/en/dev/api/message/event.html#class-messageevent","165":"/en/dev/api/message/event.html#func-init-self-bot-id-str-message-list-dict-str-any-str-message-type-str-raw-message-str-session-id-str-user-id-str-session-type-str-receive-channel-optional-channel-messageevent-none-data-optional-dict-str-any-none","166":"/en/dev/api/message/event.html#func-reply-self-message-str-dict-str-any","167":"/en/dev/api/message/#module-liteyuki-message","168":"/en/dev/api/message/matcher.html#module-liteyuki-message-matcher","169":"/en/dev/api/message/matcher.html#class-matcher","170":"/en/dev/api/message/matcher.html#func-init-self-rule-rule-priority-int-block-bool","171":"/en/dev/api/message/matcher.html#func-handle-self-callable-eventhandler-eventhandler","172":"/en/dev/api/message/matcher.html#async-func-run-self-event-messageevent-none","173":"/en/dev/api/message/on.html#module-liteyuki-message-on","174":"/en/dev/api/message/on.html#func-add-matcher-matcher-matcher","175":"/en/dev/api/message/on.html#func-on-message-rule-rule-empty-rule-priority-int-0-block-bool-false-matcher","176":"/en/dev/api/message/on.html#func-on-keywords-keywords-list-str-rule-empty-rule-priority-int-0-block-bool-false-matcher","177":"/en/dev/api/message/session.html#module-liteyuki-message-session","178":"/en/dev/api/message/rule.html#module-liteyuki-message-rule","179":"/en/dev/api/message/rule.html#var-rulehandlerfunc","180":"/en/dev/api/message/rule.html#class-rule","181":"/en/dev/api/message/rule.html#func-init-self-handler-rulehandlerfunc","182":"/en/dev/api/message/rule.html#func-self-other-rule-rule","183":"/en/dev/api/message/rule.html#func-self-other-rule-rule-1","184":"/en/dev/api/message/rule.html#async-func-self-event-messageevent-bool","185":"/en/dev/api/message/rule.html#async-func-empty-rule-event-messageevent-bool","186":"/en/dev/api/message/rule.html#async-func-is-su-rule-event-messageevent-bool","187":"/en/dev/api/mkdoc.html#module-liteyuki-mkdoc","188":"/en/dev/api/mkdoc.html#class-deftype-enum","189":"/en/dev/api/mkdoc.html#attr-function-function","190":"/en/dev/api/mkdoc.html#attr-method-method","191":"/en/dev/api/mkdoc.html#attr-static-method-staticmethod","192":"/en/dev/api/mkdoc.html#attr-class-method-classmethod","193":"/en/dev/api/mkdoc.html#attr-property-property","194":"/en/dev/api/mkdoc.html#class-functioninfo-basemodel","195":"/en/dev/api/mkdoc.html#attr-name-str-no-default","196":"/en/dev/api/mkdoc.html#attr-args-list-tuple-str-str-no-default","197":"/en/dev/api/mkdoc.html#attr-return-type-str-no-default","198":"/en/dev/api/mkdoc.html#attr-docstring-str-no-default","199":"/en/dev/api/mkdoc.html#attr-source-code-str","200":"/en/dev/api/mkdoc.html#attr-type-deftype-no-default","201":"/en/dev/api/mkdoc.html#attr-is-async-bool-no-default","202":"/en/dev/api/mkdoc.html#class-attributeinfo-basemodel","203":"/en/dev/api/mkdoc.html#attr-name-str-no-default-1","204":"/en/dev/api/mkdoc.html#attr-type-str-no-default","205":"/en/dev/api/mkdoc.html#attr-value-any-none","206":"/en/dev/api/mkdoc.html#attr-docstring-str","207":"/en/dev/api/mkdoc.html#class-classinfo-basemodel","208":"/en/dev/api/mkdoc.html#attr-name-str-no-default-2","209":"/en/dev/api/mkdoc.html#attr-docstring-str-no-default-1","210":"/en/dev/api/mkdoc.html#attr-methods-list-functioninfo-no-default","211":"/en/dev/api/mkdoc.html#attr-attributes-list-attributeinfo-no-default","212":"/en/dev/api/mkdoc.html#attr-inherit-list-str-no-default","213":"/en/dev/api/mkdoc.html#class-moduleinfo-basemodel","214":"/en/dev/api/mkdoc.html#attr-module-path-str-no-default","215":"/en/dev/api/mkdoc.html#attr-functions-list-functioninfo-no-default","216":"/en/dev/api/mkdoc.html#attr-classes-list-classinfo-no-default","217":"/en/dev/api/mkdoc.html#attr-attributes-list-attributeinfo-no-default-1","218":"/en/dev/api/mkdoc.html#attr-docstring-str-no-default-2","219":"/en/dev/api/mkdoc.html#func-get-relative-path-base-path-str-target-path-str-str","220":"/en/dev/api/mkdoc.html#func-write-to-files-file-data-dict-str-str","221":"/en/dev/api/mkdoc.html#func-get-file-list-module-folder-str","222":"/en/dev/api/mkdoc.html#func-get-module-info-normal-file-path-str-ignore-private-bool-true-moduleinfo","223":"/en/dev/api/mkdoc.html#func-generate-markdown-module-info-moduleinfo-front-matter-none-lang-str-zh-cn-str","224":"/en/dev/api/mkdoc.html#func-generate-docs-module-folder-str-output-dir-str-with-top-bool-false-lang-str-zh-cn-ignored-paths-none","225":"/en/dev/api/mkdoc.html#var-no-module-name-pyfile-path","226":"/en/dev/api/plugin/#module-liteyuki-plugin","227":"/en/dev/api/plugin/#func-get-loaded-plugins-dict-str-plugin","228":"/en/dev/api/plugin/load.html#module-liteyuki-plugin-load","229":"/en/dev/api/plugin/load.html#func-load-plugin-module-path-str-path-optional-plugin","230":"/en/dev/api/plugin/load.html#func-load-plugins-plugin-dir-str-ignore-warning-bool-true-set-plugin","231":"/en/dev/api/plugin/load.html#func-format-display-name-display-name-str-plugin-type-plugintype-str","232":"/en/dev/api/plugin/manager.html#module-liteyuki-plugin-manager","233":"/en/dev/api/plugin/model.html#module-liteyuki-plugin-model","234":"/en/dev/api/plugin/model.html#class-plugintype-enum","235":"/en/dev/api/plugin/model.html#attr-application-application","236":"/en/dev/api/plugin/model.html#attr-service-service","237":"/en/dev/api/plugin/model.html#attr-module-module","238":"/en/dev/api/plugin/model.html#attr-unclassified-unclassified","239":"/en/dev/api/plugin/model.html#attr-test-test","240":"/en/dev/api/plugin/model.html#class-pluginmetadata-basemodel","241":"/en/dev/api/plugin/model.html#attr-name-str-no-default","242":"/en/dev/api/plugin/model.html#attr-description-str","243":"/en/dev/api/plugin/model.html#attr-usage-str","244":"/en/dev/api/plugin/model.html#attr-type-plugintype-plugintype-unclassified","245":"/en/dev/api/plugin/model.html#attr-author-str","246":"/en/dev/api/plugin/model.html#attr-homepage-str","247":"/en/dev/api/plugin/model.html#attr-extra-dict-str-any","248":"/en/dev/api/plugin/model.html#class-plugin-basemodel","249":"/en/dev/api/plugin/model.html#func-hash-self","250":"/en/dev/api/plugin/model.html#attr-model-config-arbitrary-types-allowed-true","251":"/en/dev/api/plugin/model.html#attr-name-str-no-default-1","252":"/en/dev/api/plugin/model.html#attr-module-moduletype-no-default","253":"/en/dev/api/plugin/model.html#attr-module-name-str-no-default","254":"/en/dev/api/plugin/model.html#attr-metadata-optional-pluginmetadata-none","255":"/en/dev/api/plugins/#module-liteyuki-plugins","256":"/en/dev/api/plugins/liteecho.html#module-liteyuki-plugins-liteecho","257":"/en/dev/api/plugins/liteecho.html#async-func-liteecho-event-messageevent","258":"/en/dev/api/plugins/plugin_loader/#module-liteyuki-plugins-plugin-loader","259":"/en/dev/api/plugins/plugin_loader/#func-default-plugins-loader","260":"/en/dev/api/utils.html#module-liteyuki-utils","261":"/en/dev/api/utils.html#func-is-coroutine-callable-call-callable-any-bool","262":"/en/dev/api/utils.html#func-run-coroutine-coro-coroutine","263":"/en/dev/api/utils.html#func-run-coroutine-in-thread-coro-coroutine","264":"/en/dev/api/utils.html#func-path-to-module-name-path-path-str","265":"/en/dev/api/utils.html#func-async-wrapper-func-callable-any-callable-coroutine","266":"/en/dev/comm.html#channel-communication","267":"/en/dev/comm.html#introduction","268":"/en/dev/comm.html#example","269":"/en/dev/comm.html#共享内存通信","270":"/en/dev/comm.html#简介","271":"/en/dev/comm.html#示例","272":"/en/dev/guide.html#development-guide","273":"/en/dev/guide.html#how-to-develop","274":"/en/dev/guide.html#suggestions","275":"/en/dev/guide.html#project-structure","276":"/en/dev/guide.html#standardization","277":"/en/dev/guide.html#finally","278":"/en/dev/lyfunc.html#轻雪函数","279":"/en/dev/lyfunc.html#函数文件","280":"/en/dev/lyfunc.html#命令文档","281":"/en/dev/lyfunc.html#示例","282":"/en/dev/lyfunc.html#api","283":"/en/dev/lyfunc.html#结束关键字","284":"/en/dev/plugin.html#简介","285":"/en/dev/plugin.html#开始","286":"/en/dev/plugin.html#创建插件","287":"/en/dev/plugin.html#编写逻辑部分","288":"/en/dev/plugin.html#加载插件","289":"/en/dev/plugin.html#方法1","290":"/en/dev/plugin.html#方法2","291":"/en/dev/resource.html#简介","292":"/en/dev/resource.html#加载资源包","293":"/en/usage/agreement.html#用户协议","294":"/en/usage/basic.html#基础插件","295":"/en/usage/basic.html#轻雪命令liteyuki-command","296":"/en/usage/basic.html#命令别名","297":"/en/usage/basic.html#插件-包管理器-liteyuki-pacman","298":"/en/usage/basic.html#命令别名-1","299":"/en/usage/basic.html#用户管理liteyuki-user","300":"/en/usage/extra.html#功能插件命令","301":"/en/usage/extra.html#轻雪天气liteyuki-weather","302":"/en/usage/extra.html#命令别名","303":"/en/usage/extra.html#统计信息liteyuki-statistics","304":"/en/usage/extra.html#命令别名-1"},"fieldIds":{"title":0,"titles":1,"text":2},"fieldLength":{"0":[1,1,50],"1":[2,1,82],"2":[2,1,67],"3":[9,1,71],"4":[1,1,21],"5":[1,1,1],"6":[3,1,172],"7":[2,1,18],"8":[4,1,31],"9":[4,1,25],"10":[1,1,14],"11":[1,1,1],"12":[2,1,59],"13":[3,1,57],"14":[3,1,18],"15":[2,1,83],"16":[6,3,1],"17":[3,1,1],"18":[2,3,1],"19":[6,5,60],"20":[4,5,31],"21":[6,5,33],"22":[8,5,62],"23":[10,5,38],"24":[6,5,19],"25":[5,5,16],"26":[4,5,18],"27":[8,5,22],"28":[8,5,21],"29":[8,5,22],"30":[10,5,24],"31":[10,5,25],"32":[8,5,22],"33":[5,3,37],"34":[10,3,29],"35":[14,3,48],"36":[4,1,24],"37":[4,4,8],"38":[4,4,9],"39":[3,4,11],"40":[5,4,9],"41":[5,4,10],"42":[4,4,12],"43":[2,4,1],"44":[5,6,34],"45":[13,6,41],"46":[8,6,23],"47":[8,6,23],"48":[10,6,25],"49":[8,6,23],"50":[10,6,25],"51":[8,6,23],"52":[7,6,23],"53":[7,6,23],"54":[10,6,26],"55":[7,6,24],"56":[10,6,26],"57":[7,6,24],"58":[4,1,3],"59":[5,4,9],"60":[5,4,10],"61":[4,4,12],"62":[4,4,9],"63":[4,4,11],"64":[3,4,11],"65":[5,4,1],"66":[12,9,74],"67":[6,9,47],"68":[5,9,32],"69":[6,9,31],"70":[15,9,66],"71":[3,4,9],"72":[3,4,9],"73":[3,4,15],"74":[4,4,11],"75":[4,4,12],"76":[7,4,43],"77":[7,4,22],"78":[7,4,34],"79":[8,4,33],"80":[4,4,9],"81":[4,4,17],"82":[10,4,27],"83":[10,4,30],"84":[10,4,29],"85":[4,1,2],"86":[2,4,1],"87":[9,6,16],"88":[3,1,8],"89":[4,1,4],"90":[2,4,1],"91":[10,6,17],"92":[9,6,20],"93":[5,1,2],"94":[2,5,1],"95":[6,7,23],"96":[5,7,16],"97":[4,7,16],"98":[4,7,13],"99":[4,1,4],"100":[6,4,12],"101":[6,4,12],"102":[2,4,1],"103":[4,6,33],"104":[9,6,34],"105":[12,6,40],"106":[12,6,45],"107":[9,6,33],"108":[9,6,24],"109":[13,6,54],"110":[11,6,31],"111":[7,6,45],"112":[2,4,2],"113":[5,6,21],"114":[4,6,1],"115":[6,6,1],"116":[3,4,9],"117":[3,4,17],"118":[9,4,31],"119":[9,4,29],"120":[9,4,29],"121":[10,4,29],"122":[3,1,14],"123":[8,3,41],"124":[10,3,38],"125":[10,3,37],"126":[10,3,37],"127":[14,3,46],"128":[16,3,52],"129":[15,3,37],"130":[3,1,1],"131":[4,1,24],"132":[2,4,1],"133":[14,6,21],"134":[2,4,1],"135":[6,6,20],"136":[5,6,31],"137":[14,6,51],"138":[5,6,16],"139":[6,6,34],"140":[5,6,15],"141":[9,6,30],"142":[3,1,2],"143":[4,1,5],"144":[3,4,9],"145":[3,4,9],"146":[4,4,28],"147":[4,4,3],"148":[6,8,19],"149":[6,8,12],"150":[6,8,12],"151":[6,8,12],"152":[6,8,12],"153":[20,4,54],"154":[4,1,24],"155":[9,4,33],"156":[3,1,2],"157":[4,3,1],"158":[2,1,10],"159":[3,2,7],"160":[3,1,24],"161":[6,3,20],"162":[6,3,49],"163":[4,1,24],"164":[2,4,1],"165":[24,6,35],"166":[9,6,37],"167":[3,1,24],"168":[4,1,24],"169":[2,4,1],"170":[10,6,28],"171":[7,6,23],"172":[8,6,33],"173":[4,1,24],"174":[5,4,24],"175":[15,4,21],"176":[16,4,32],"177":[4,1,24],"178":[4,1,24],"179":[2,4,11],"180":[2,4,1],"181":[6,6,13],"182":[7,6,21],"183":[7,6,22],"184":[8,6,23],"185":[8,4,19],"186":[9,4,24],"187":[3,1,24],"188":[4,3,1],"189":[5,7,1],"190":[5,7,1],"191":[6,7,1],"192":[6,7,1],"193":[5,7,1],"194":[4,3,1],"195":[6,7,1],"196":[8,7,1],"197":[7,7,1],"198":[6,7,1],"199":[6,7,1],"200":[6,7,1],"201":[7,7,1],"202":[4,3,1],"203":[6,7,1],"204":[6,7,1],"205":[5,7,1],"206":[5,7,1],"207":[4,3,1],"208":[6,7,1],"209":[6,7,1],"210":[7,7,1],"211":[7,7,1],"212":[7,7,1],"213":[4,3,1],"214":[7,7,1],"215":[7,7,1],"216":[7,7,1],"217":[7,7,1],"218":[6,7,1],"219":[8,3,23],"220":[9,3,39],"221":[8,3,30],"222":[15,3,145],"223":[15,3,97],"224":[20,3,97],"225":[6,3,10],"226":[3,1,1],"227":[9,3,20],"228":[4,1,24],"229":[12,4,78],"230":[15,4,61],"231":[9,4,40],"232":[4,1,24],"233":[4,1,24],"234":[4,4,1],"235":[5,8,1],"236":[5,8,1],"237":[5,8,1],"238":[5,8,1],"239":[5,8,1],"240":[4,4,1],"241":[6,8,1],"242":[5,8,1],"243":[5,8,1],"244":[5,8,1],"245":[5,8,1],"246":[5,8,1],"247":[7,8,1],"248":[4,4,1],"249":[3,8,13],"250":[9,8,1],"251":[6,8,1],"252":[6,8,1],"253":[7,8,1],"254":[6,8,1],"255":[3,1,15],"256":[4,1,30],"257":[6,4,23],"258":[5,1,24],"259":[5,5,24],"260":[3,1,5],"261":[9,3,33],"262":[6,3,45],"263":[8,3,23],"264":[8,3,41],"265":[8,3,28],"266":[2,1,1],"267":[1,2,46],"268":[1,2,105],"269":[1,2,1],"270":[1,3,9],"271":[1,3,18],"272":[2,1,1],"273":[3,2,67],"274":[1,5,34],"275":[2,2,60],"276":[1,2,141],"277":[1,2,23],"278":[1,1,9],"279":[1,1,25],"280":[1,1,33],"281":[1,2,26],"282":[1,1,7],"283":[1,1,18],"284":[1,1,4],"285":[1,1,1],"286":[1,2,42],"287":[1,2,58],"288":[1,2,1],"289":[1,3,6],"290":[1,3,25],"291":[1,1,31],"292":[1,1,56],"293":[1,1,28],"294":[1,1,16],"295":[2,1,86],"296":[1,3,30],"297":[4,1,53],"298":[1,5,38],"299":[2,1,20],"300":[1,1,1],"301":[2,1,30],"302":[1,3,8],"303":[2,1,35],"304":[1,3,17]},"averageFieldLength":[5.645901639344263,4.170491803278688,22.127868852459034],"storedFields":{"0":{"title":"Configurations","titles":[]},"1":{"title":"Basic Configuration","titles":["Configurations"]},"2":{"title":"Other configurations","titles":["Configurations"]},"3":{"title":"Example: Configuration of OneBot implementation side connected to NoneBot","titles":["Configurations"]},"4":{"title":"Other","titles":["Configurations"]},"5":{"title":"FAQ","titles":[]},"6":{"title":"Frequently Asked Questions","titles":["FAQ"]},"7":{"title":"Other questions","titles":["FAQ"]},"8":{"title":"Recommended Solution(QQ)","titles":["FAQ"]},"9":{"title":"Recommended Solution(Minecraft)","titles":["FAQ"]},"10":{"title":"Acknowledgements","titles":["FAQ"]},"11":{"title":"Install","titles":[]},"12":{"title":"Normal Installation","titles":["Install"]},"13":{"title":"Run with Docker","titles":["Install"]},"14":{"title":"Use TRSS Script","titles":["Install"]},"15":{"title":"Device Requirements","titles":["Install"]},"16":{"title":"For other questions, please refer to","titles":["Install","Device Requirements"]},"17":{"title":"Module liteyuki.bot","titles":[]},"18":{"title":"class LiteyukiBot","titles":["Module liteyuki.bot"]},"19":{"title":"func __init__(self, **kwargs) -> None","titles":["Module liteyuki.bot","class LiteyukiBot"]},"20":{"title":"func run(self)","titles":["Module liteyuki.bot","class LiteyukiBot"]},"21":{"title":"async func keep_alive(self)","titles":["Module liteyuki.bot","class LiteyukiBot"]},"22":{"title":"func restart(self, delay: int = 0)","titles":["Module liteyuki.bot","class LiteyukiBot"]},"23":{"title":"func restart_process(self, name: Optional[str] = None)","titles":["Module liteyuki.bot","class LiteyukiBot"]},"24":{"title":"func init(self, *args, **kwargs)","titles":["Module liteyuki.bot","class LiteyukiBot"]},"25":{"title":"func init_logger(self)","titles":["Module liteyuki.bot","class LiteyukiBot"]},"26":{"title":"func stop(self)","titles":["Module liteyuki.bot","class LiteyukiBot"]},"27":{"title":"func on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC","titles":["Module liteyuki.bot","class LiteyukiBot"]},"28":{"title":"func on_after_start(self, func: LIFESPAN_FUNC)","titles":["Module liteyuki.bot","class LiteyukiBot"]},"29":{"title":"func on_after_shutdown(self, func: LIFESPAN_FUNC)","titles":["Module liteyuki.bot","class LiteyukiBot"]},"30":{"title":"func on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC)","titles":["Module liteyuki.bot","class LiteyukiBot"]},"31":{"title":"func on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC","titles":["Module liteyuki.bot","class LiteyukiBot"]},"32":{"title":"func on_after_restart(self, func: LIFESPAN_FUNC)","titles":["Module liteyuki.bot","class LiteyukiBot"]},"33":{"title":"func get_bot() -> LiteyukiBot","titles":["Module liteyuki.bot"]},"34":{"title":"func get_config(key: str, default: Any = None) -> Any","titles":["Module liteyuki.bot"]},"35":{"title":"func get_config_with_compat(key: str, compat_keys: tuple[str], default: Any = None) -> Any","titles":["Module liteyuki.bot"]},"36":{"title":"Module liteyuki.bot.lifespan","titles":[]},"37":{"title":"var SYNC_LIFESPAN_FUNC","titles":["Module liteyuki.bot.lifespan"]},"38":{"title":"var ASYNC_LIFESPAN_FUNC","titles":["Module liteyuki.bot.lifespan"]},"39":{"title":"var LIFESPAN_FUNC","titles":["Module liteyuki.bot.lifespan"]},"40":{"title":"var SYNC_PROCESS_LIFESPAN_FUNC","titles":["Module liteyuki.bot.lifespan"]},"41":{"title":"var ASYNC_PROCESS_LIFESPAN_FUNC","titles":["Module liteyuki.bot.lifespan"]},"42":{"title":"var PROCESS_LIFESPAN_FUNC","titles":["Module liteyuki.bot.lifespan"]},"43":{"title":"class Lifespan","titles":["Module liteyuki.bot.lifespan"]},"44":{"title":"func __init__(self) -> None","titles":["Module liteyuki.bot.lifespan","class Lifespan"]},"45":{"title":"async func run_funcs(funcs: Sequence[LIFESPAN_FUNC | PROCESS_LIFESPAN_FUNC], *args, **kwargs) -> None","titles":["Module liteyuki.bot.lifespan","class Lifespan"]},"46":{"title":"func on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC","titles":["Module liteyuki.bot.lifespan","class Lifespan"]},"47":{"title":"func on_after_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC","titles":["Module liteyuki.bot.lifespan","class Lifespan"]},"48":{"title":"func on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC","titles":["Module liteyuki.bot.lifespan","class Lifespan"]},"49":{"title":"func on_after_shutdown(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC","titles":["Module liteyuki.bot.lifespan","class Lifespan"]},"50":{"title":"func on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC","titles":["Module liteyuki.bot.lifespan","class Lifespan"]},"51":{"title":"func on_after_restart(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC","titles":["Module liteyuki.bot.lifespan","class Lifespan"]},"52":{"title":"async func before_start(self) -> None","titles":["Module liteyuki.bot.lifespan","class Lifespan"]},"53":{"title":"async func after_start(self) -> None","titles":["Module liteyuki.bot.lifespan","class Lifespan"]},"54":{"title":"async func before_process_shutdown(self, *args, **kwargs) -> None","titles":["Module liteyuki.bot.lifespan","class Lifespan"]},"55":{"title":"async func after_shutdown(self) -> None","titles":["Module liteyuki.bot.lifespan","class Lifespan"]},"56":{"title":"async func before_process_restart(self, *args, **kwargs) -> None","titles":["Module liteyuki.bot.lifespan","class Lifespan"]},"57":{"title":"async func after_restart(self) -> None","titles":["Module liteyuki.bot.lifespan","class Lifespan"]},"58":{"title":"Module liteyuki.comm.channel","titles":[]},"59":{"title":"var SYNC_ON_RECEIVE_FUNC","titles":["Module liteyuki.comm.channel"]},"60":{"title":"var ASYNC_ON_RECEIVE_FUNC","titles":["Module liteyuki.comm.channel"]},"61":{"title":"var ON_RECEIVE_FUNC","titles":["Module liteyuki.comm.channel"]},"62":{"title":"var SYNC_FILTER_FUNC","titles":["Module liteyuki.comm.channel"]},"63":{"title":"var ASYNC_FILTER_FUNC","titles":["Module liteyuki.comm.channel"]},"64":{"title":"var FILTER_FUNC","titles":["Module liteyuki.comm.channel"]},"65":{"title":"class Channel(Generic[T])","titles":["Module liteyuki.comm.channel"]},"66":{"title":"func __init__(self, name: str, type_check: Optional[bool] = None)","titles":["Module liteyuki.comm.channel","class Channel(Generic[T])"]},"67":{"title":"func send(self, data: T)","titles":["Module liteyuki.comm.channel","class Channel(Generic[T])"]},"68":{"title":"func receive(self) -> T","titles":["Module liteyuki.comm.channel","class Channel(Generic[T])"]},"69":{"title":"async func async_receive(self) -> T","titles":["Module liteyuki.comm.channel","class Channel(Generic[T])"]},"70":{"title":"func on_receive(self, filter_func: Optional[FILTER_FUNC] = None) -> Callable[[Callable[[T], Any]], Callable[[T], Any]]","titles":["Module liteyuki.comm.channel","class Channel(Generic[T])"]},"71":{"title":"var active_channel","titles":["Module liteyuki.comm.channel"]},"72":{"title":"var passive_channel","titles":["Module liteyuki.comm.channel"]},"73":{"title":"var publish_channel","titles":["Module liteyuki.comm.channel"]},"74":{"title":"var channel_deliver_active_channel","titles":["Module liteyuki.comm.channel"]},"75":{"title":"var channel_deliver_passive_channel","titles":["Module liteyuki.comm.channel"]},"76":{"title":"func set_channel(name: str, channel: Channel)","titles":["Module liteyuki.comm.channel"]},"77":{"title":"func set_channels(channels: dict[str, Channel])","titles":["Module liteyuki.comm.channel"]},"78":{"title":"func get_channel(name: str) -> Channel","titles":["Module liteyuki.comm.channel"]},"79":{"title":"func get_channels() -> dict[str, Channel]","titles":["Module liteyuki.comm.channel"]},"80":{"title":"var channel_deliver_active_channel","titles":["Module liteyuki.comm.channel"]},"81":{"title":"var channel_deliver_passive_channel","titles":["Module liteyuki.comm.channel"]},"82":{"title":"func on_set_channel(data: tuple[str, dict[str, Any]])","titles":["Module liteyuki.comm.channel"]},"83":{"title":"func on_get_channel(data: tuple[str, dict[str, Any]])","titles":["Module liteyuki.comm.channel"]},"84":{"title":"func on_get_channels(data: tuple[str, dict[str, Any]])","titles":["Module liteyuki.comm.channel"]},"85":{"title":"Module liteyuki.comm.event","titles":[]},"86":{"title":"class Event","titles":["Module liteyuki.comm.event"]},"87":{"title":"func __init__(self, name: str, data: dict[str, Any])","titles":["Module liteyuki.comm.event","class Event"]},"88":{"title":"Module liteyuki.comm","titles":[]},"89":{"title":"Module liteyuki.comm.rpc","titles":[]},"90":{"title":"class RPC","titles":["Module liteyuki.comm.rpc"]},"91":{"title":"func __init__(self, on_calling: ON_CALLING_FUNC) -> None","titles":["Module liteyuki.comm.rpc","class RPC"]},"92":{"title":"func call(self, args: tuple, kwargs: dict) -> Any","titles":["Module liteyuki.comm.rpc","class RPC"]},"93":{"title":"Module liteyuki.comm.socks_channel","titles":[]},"94":{"title":"class SocksChannel","titles":["Module liteyuki.comm.socks_channel"]},"95":{"title":"func __init__(self, name: str)","titles":["Module liteyuki.comm.socks_channel","class SocksChannel"]},"96":{"title":"func send(self, data)","titles":["Module liteyuki.comm.socks_channel","class SocksChannel"]},"97":{"title":"func receive(self)","titles":["Module liteyuki.comm.socks_channel","class SocksChannel"]},"98":{"title":"func close(self)","titles":["Module liteyuki.comm.socks_channel","class SocksChannel"]},"99":{"title":"Module liteyuki.comm.storage","titles":[]},"100":{"title":"var _on_main_subscriber_receive_funcs","titles":["Module liteyuki.comm.storage"]},"101":{"title":"var _on_sub_subscriber_receive_funcs","titles":["Module liteyuki.comm.storage"]},"102":{"title":"class KeyValueStore","titles":["Module liteyuki.comm.storage"]},"103":{"title":"func __init__(self)","titles":["Module liteyuki.comm.storage","class KeyValueStore"]},"104":{"title":"func set(self, key: str, value: Any) -> None","titles":["Module liteyuki.comm.storage","class KeyValueStore"]},"105":{"title":"func get(self, key: str, default: Optional[Any] = None) -> Optional[Any]","titles":["Module liteyuki.comm.storage","class KeyValueStore"]},"106":{"title":"func delete(self, key: str, ignore_key_error: bool = True) -> None","titles":["Module liteyuki.comm.storage","class KeyValueStore"]},"107":{"title":"func get_all(self) -> dict[str, Any]","titles":["Module liteyuki.comm.storage","class KeyValueStore"]},"108":{"title":"func publish(self, channel_: str, data: Any) -> None","titles":["Module liteyuki.comm.storage","class KeyValueStore"]},"109":{"title":"func on_subscriber_receive(self, channel_: str) -> Callable[[ON_RECEIVE_FUNC], ON_RECEIVE_FUNC]","titles":["Module liteyuki.comm.storage","class KeyValueStore"]},"110":{"title":"async func run_subscriber_receive_funcs(channel_: str, data: Any)","titles":["Module liteyuki.comm.storage","class KeyValueStore"]},"111":{"title":"async func start_receive_loop(self)","titles":["Module liteyuki.comm.storage","class KeyValueStore"]},"112":{"title":"class GlobalKeyValueStore","titles":["Module liteyuki.comm.storage"]},"113":{"title":"func get_instance(cls)","titles":["Module liteyuki.comm.storage","class GlobalKeyValueStore"]},"114":{"title":"attr _instance = None","titles":["Module liteyuki.comm.storage","class GlobalKeyValueStore"]},"115":{"title":"attr _lock = threading.Lock()","titles":["Module liteyuki.comm.storage","class GlobalKeyValueStore"]},"116":{"title":"var shared_memory","titles":["Module liteyuki.comm.storage"]},"117":{"title":"var _ref_count","titles":["Module liteyuki.comm.storage"]},"118":{"title":"func on_get(data: tuple[str, dict[str, Any]])","titles":["Module liteyuki.comm.storage"]},"119":{"title":"func on_set(data: tuple[str, dict[str, Any]])","titles":["Module liteyuki.comm.storage"]},"120":{"title":"func on_delete(data: tuple[str, dict[str, Any]])","titles":["Module liteyuki.comm.storage"]},"121":{"title":"func on_get_all(data: tuple[str, dict[str, Any]])","titles":["Module liteyuki.comm.storage"]},"122":{"title":"Module liteyuki.config","titles":[]},"123":{"title":"func flat_config(config: dict[str, Any]) -> dict[str, Any]","titles":["Module liteyuki.config"]},"124":{"title":"func load_from_yaml(file_: str) -> dict[str, Any]","titles":["Module liteyuki.config"]},"125":{"title":"func load_from_json(file_: str) -> dict[str, Any]","titles":["Module liteyuki.config"]},"126":{"title":"func load_from_toml(file_: str) -> dict[str, Any]","titles":["Module liteyuki.config"]},"127":{"title":"func load_from_files(*files: str, *, no_warning: bool = False) -> dict[str, Any]","titles":["Module liteyuki.config"]},"128":{"title":"func load_configs_from_dirs(*directories: str, *, no_waring: bool = False) -> dict[str, Any]","titles":["Module liteyuki.config"]},"129":{"title":"func load_config_in_default(no_waring: bool = False) -> dict[str, Any]","titles":["Module liteyuki.config"]},"130":{"title":"Module liteyuki.core","titles":[]},"131":{"title":"Module liteyuki.core.manager","titles":[]},"132":{"title":"class ChannelDeliver","titles":["Module liteyuki.core.manager"]},"133":{"title":"func __init__(self, active: Channel[Any], passive: Channel[Any], channel_deliver_active: Channel[Channel[Any]], channel_deliver_passive: Channel[tuple[str, dict]], publish: Channel[tuple[str, Any]])","titles":["Module liteyuki.core.manager","class ChannelDeliver"]},"134":{"title":"class ProcessManager","titles":["Module liteyuki.core.manager"]},"135":{"title":"func __init__(self, lifespan: Lifespan)","titles":["Module liteyuki.core.manager","class ProcessManager"]},"136":{"title":"func start_all(self)","titles":["Module liteyuki.core.manager","class ProcessManager"]},"137":{"title":"func add_target(self, name: str, target: TARGET_FUNC, args: tuple = (), kwargs = None)","titles":["Module liteyuki.core.manager","class ProcessManager"]},"138":{"title":"func join_all(self)","titles":["Module liteyuki.core.manager","class ProcessManager"]},"139":{"title":"func terminate(self, name: str)","titles":["Module liteyuki.core.manager","class ProcessManager"]},"140":{"title":"func terminate_all(self)","titles":["Module liteyuki.core.manager","class ProcessManager"]},"141":{"title":"func is_process_alive(self, name: str) -> bool","titles":["Module liteyuki.core.manager","class ProcessManager"]},"142":{"title":"Module liteyuki.dev","titles":[]},"143":{"title":"Module liteyuki.dev.observer","titles":[]},"144":{"title":"var CALLBACK_FUNC","titles":["Module liteyuki.dev.observer"]},"145":{"title":"var FILTER_FUNC","titles":["Module liteyuki.dev.observer"]},"146":{"title":"func debounce(wait)","titles":["Module liteyuki.dev.observer"]},"147":{"title":"class CodeModifiedHandler(FileSystemEventHandler)","titles":["Module liteyuki.dev.observer"]},"148":{"title":"func on_modified(self, event)","titles":["Module liteyuki.dev.observer","class CodeModifiedHandler(FileSystemEventHandler)"]},"149":{"title":"func on_created(self, event)","titles":["Module liteyuki.dev.observer","class CodeModifiedHandler(FileSystemEventHandler)"]},"150":{"title":"func on_deleted(self, event)","titles":["Module liteyuki.dev.observer","class CodeModifiedHandler(FileSystemEventHandler)"]},"151":{"title":"func on_moved(self, event)","titles":["Module liteyuki.dev.observer","class CodeModifiedHandler(FileSystemEventHandler)"]},"152":{"title":"func on_any_event(self, event)","titles":["Module liteyuki.dev.observer","class CodeModifiedHandler(FileSystemEventHandler)"]},"153":{"title":"func on_file_system_event(directories: tuple[str], recursive: bool = True, event_filter: FILTER_FUNC = None) -> Callable[[CALLBACK_FUNC], CALLBACK_FUNC]","titles":["Module liteyuki.dev.observer"]},"154":{"title":"Module liteyuki.dev.plugin","titles":[]},"155":{"title":"func run_plugins(*module_path: str | Path)","titles":["Module liteyuki.dev.plugin"]},"156":{"title":"Module liteyuki.exception","titles":[]},"157":{"title":"class LiteyukiException(BaseException)","titles":["Module liteyuki.exception"]},"158":{"title":"Module liteyuki","titles":[]},"159":{"title":"var __version__","titles":["Module liteyuki"]},"160":{"title":"Module liteyuki.log","titles":[]},"161":{"title":"func get_format(level: str) -> str","titles":["Module liteyuki.log"]},"162":{"title":"func init_log(config: dict)","titles":["Module liteyuki.log"]},"163":{"title":"Module liteyuki.message.event","titles":[]},"164":{"title":"class MessageEvent","titles":["Module liteyuki.message.event"]},"165":{"title":"func __init__(self, bot_id: str, message: list[dict[str, Any]] | str, message_type: str, raw_message: str, session_id: str, user_id: str, session_type: str, receive_channel: Optional[Channel[MessageEvent]] = None, data: Optional[dict[str, Any]] = None)","titles":["Module liteyuki.message.event","class MessageEvent"]},"166":{"title":"func reply(self, message: str | dict[str, Any])","titles":["Module liteyuki.message.event","class MessageEvent"]},"167":{"title":"Module liteyuki.message","titles":[]},"168":{"title":"Module liteyuki.message.matcher","titles":[]},"169":{"title":"class Matcher","titles":["Module liteyuki.message.matcher"]},"170":{"title":"func __init__(self, rule: Rule, priority: int, block: bool)","titles":["Module liteyuki.message.matcher","class Matcher"]},"171":{"title":"func handle(self) -> Callable[[EventHandler], EventHandler]","titles":["Module liteyuki.message.matcher","class Matcher"]},"172":{"title":"async func run(self, event: MessageEvent) -> None","titles":["Module liteyuki.message.matcher","class Matcher"]},"173":{"title":"Module liteyuki.message.on","titles":[]},"174":{"title":"func add_matcher(matcher: Matcher)","titles":["Module liteyuki.message.on"]},"175":{"title":"func on_message(rule: Rule = empty_rule, priority: int = 0, block: bool = False) -> Matcher","titles":["Module liteyuki.message.on"]},"176":{"title":"func on_keywords(keywords: list[str], rule = empty_rule, priority: int = 0, block: bool = False) -> Matcher","titles":["Module liteyuki.message.on"]},"177":{"title":"Module liteyuki.message.session","titles":[]},"178":{"title":"Module liteyuki.message.rule","titles":[]},"179":{"title":"var RuleHandlerFunc","titles":["Module liteyuki.message.rule"]},"180":{"title":"class Rule","titles":["Module liteyuki.message.rule"]},"181":{"title":"func __init__(self, handler: RuleHandlerFunc)","titles":["Module liteyuki.message.rule","class Rule"]},"182":{"title":"func self | other: Rule => Rule","titles":["Module liteyuki.message.rule","class Rule"]},"183":{"title":"func self & other: Rule => Rule","titles":["Module liteyuki.message.rule","class Rule"]},"184":{"title":"async func self () event: MessageEvent => bool","titles":["Module liteyuki.message.rule","class Rule"]},"185":{"title":"async func empty_rule(event: MessageEvent) -> bool","titles":["Module liteyuki.message.rule"]},"186":{"title":"async func is_su_rule(event: MessageEvent) -> bool","titles":["Module liteyuki.message.rule"]},"187":{"title":"Module liteyuki.mkdoc","titles":[]},"188":{"title":"class DefType(Enum)","titles":["Module liteyuki.mkdoc"]},"189":{"title":"attr FUNCTION = 'function'","titles":["Module liteyuki.mkdoc","class DefType(Enum)"]},"190":{"title":"attr METHOD = 'method'","titles":["Module liteyuki.mkdoc","class DefType(Enum)"]},"191":{"title":"attr STATIC_METHOD = 'staticmethod'","titles":["Module liteyuki.mkdoc","class DefType(Enum)"]},"192":{"title":"attr CLASS_METHOD = 'classmethod'","titles":["Module liteyuki.mkdoc","class DefType(Enum)"]},"193":{"title":"attr PROPERTY = 'property'","titles":["Module liteyuki.mkdoc","class DefType(Enum)"]},"194":{"title":"class FunctionInfo(BaseModel)","titles":["Module liteyuki.mkdoc"]},"195":{"title":"attr name: str = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class FunctionInfo(BaseModel)"]},"196":{"title":"attr args: list[tuple[str, str]] = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class FunctionInfo(BaseModel)"]},"197":{"title":"attr return_type: str = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class FunctionInfo(BaseModel)"]},"198":{"title":"attr docstring: str = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class FunctionInfo(BaseModel)"]},"199":{"title":"attr source_code: str = ''","titles":["Module liteyuki.mkdoc","class FunctionInfo(BaseModel)"]},"200":{"title":"attr type: DefType = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class FunctionInfo(BaseModel)"]},"201":{"title":"attr is_async: bool = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class FunctionInfo(BaseModel)"]},"202":{"title":"class AttributeInfo(BaseModel)","titles":["Module liteyuki.mkdoc"]},"203":{"title":"attr name: str = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class AttributeInfo(BaseModel)"]},"204":{"title":"attr type: str = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class AttributeInfo(BaseModel)"]},"205":{"title":"attr value: Any = None","titles":["Module liteyuki.mkdoc","class AttributeInfo(BaseModel)"]},"206":{"title":"attr docstring: str = ''","titles":["Module liteyuki.mkdoc","class AttributeInfo(BaseModel)"]},"207":{"title":"class ClassInfo(BaseModel)","titles":["Module liteyuki.mkdoc"]},"208":{"title":"attr name: str = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class ClassInfo(BaseModel)"]},"209":{"title":"attr docstring: str = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class ClassInfo(BaseModel)"]},"210":{"title":"attr methods: list[FunctionInfo] = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class ClassInfo(BaseModel)"]},"211":{"title":"attr attributes: list[AttributeInfo] = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class ClassInfo(BaseModel)"]},"212":{"title":"attr inherit: list[str] = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class ClassInfo(BaseModel)"]},"213":{"title":"class ModuleInfo(BaseModel)","titles":["Module liteyuki.mkdoc"]},"214":{"title":"attr module_path: str = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class ModuleInfo(BaseModel)"]},"215":{"title":"attr functions: list[FunctionInfo] = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class ModuleInfo(BaseModel)"]},"216":{"title":"attr classes: list[ClassInfo] = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class ModuleInfo(BaseModel)"]},"217":{"title":"attr attributes: list[AttributeInfo] = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class ModuleInfo(BaseModel)"]},"218":{"title":"attr docstring: str = NO_DEFAULT","titles":["Module liteyuki.mkdoc","class ModuleInfo(BaseModel)"]},"219":{"title":"func get_relative_path(base_path: str, target_path: str) -> str","titles":["Module liteyuki.mkdoc"]},"220":{"title":"func write_to_files(file_data: dict[str, str])","titles":["Module liteyuki.mkdoc"]},"221":{"title":"func get_file_list(module_folder: str)","titles":["Module liteyuki.mkdoc"]},"222":{"title":"func get_module_info_normal(file_path: str, ignore_private: bool = True) -> ModuleInfo","titles":["Module liteyuki.mkdoc"]},"223":{"title":"func generate_markdown(module_info: ModuleInfo, front_matter = None, lang: str = 'zh-CN') -> str","titles":["Module liteyuki.mkdoc"]},"224":{"title":"func generate_docs(module_folder: str, output_dir: str, with_top: bool = False, lang: str = 'zh-CN', ignored_paths = None)","titles":["Module liteyuki.mkdoc"]},"225":{"title":"var no_module_name_pyfile_path","titles":["Module liteyuki.mkdoc"]},"226":{"title":"Module liteyuki.plugin","titles":[]},"227":{"title":"func get_loaded_plugins() -> dict[str, Plugin]","titles":["Module liteyuki.plugin"]},"228":{"title":"Module liteyuki.plugin.load","titles":[]},"229":{"title":"func load_plugin(module_path: str | Path) -> Optional[Plugin]","titles":["Module liteyuki.plugin.load"]},"230":{"title":"func load_plugins(*plugin_dir: str, *, ignore_warning: bool = True) -> set[Plugin]","titles":["Module liteyuki.plugin.load"]},"231":{"title":"func format_display_name(display_name: str, plugin_type: PluginType) -> str","titles":["Module liteyuki.plugin.load"]},"232":{"title":"Module liteyuki.plugin.manager","titles":[]},"233":{"title":"Module liteyuki.plugin.model","titles":[]},"234":{"title":"class PluginType(Enum)","titles":["Module liteyuki.plugin.model"]},"235":{"title":"attr APPLICATION = 'application'","titles":["Module liteyuki.plugin.model","class PluginType(Enum)"]},"236":{"title":"attr SERVICE = 'service'","titles":["Module liteyuki.plugin.model","class PluginType(Enum)"]},"237":{"title":"attr MODULE = 'module'","titles":["Module liteyuki.plugin.model","class PluginType(Enum)"]},"238":{"title":"attr UNCLASSIFIED = 'unclassified'","titles":["Module liteyuki.plugin.model","class PluginType(Enum)"]},"239":{"title":"attr TEST = 'test'","titles":["Module liteyuki.plugin.model","class PluginType(Enum)"]},"240":{"title":"class PluginMetadata(BaseModel)","titles":["Module liteyuki.plugin.model"]},"241":{"title":"attr name: str = NO_DEFAULT","titles":["Module liteyuki.plugin.model","class PluginMetadata(BaseModel)"]},"242":{"title":"attr description: str = ''","titles":["Module liteyuki.plugin.model","class PluginMetadata(BaseModel)"]},"243":{"title":"attr usage: str = ''","titles":["Module liteyuki.plugin.model","class PluginMetadata(BaseModel)"]},"244":{"title":"attr type: PluginType = PluginType.UNCLASSIFIED","titles":["Module liteyuki.plugin.model","class PluginMetadata(BaseModel)"]},"245":{"title":"attr author: str = ''","titles":["Module liteyuki.plugin.model","class PluginMetadata(BaseModel)"]},"246":{"title":"attr homepage: str = ''","titles":["Module liteyuki.plugin.model","class PluginMetadata(BaseModel)"]},"247":{"title":"attr extra: dict[str, Any] = {}","titles":["Module liteyuki.plugin.model","class PluginMetadata(BaseModel)"]},"248":{"title":"class Plugin(BaseModel)","titles":["Module liteyuki.plugin.model"]},"249":{"title":"func hash self","titles":["Module liteyuki.plugin.model","class Plugin(BaseModel)"]},"250":{"title":"attr model_config = {'arbitrary_types_allowed': True}","titles":["Module liteyuki.plugin.model","class Plugin(BaseModel)"]},"251":{"title":"attr name: str = NO_DEFAULT","titles":["Module liteyuki.plugin.model","class Plugin(BaseModel)"]},"252":{"title":"attr module: ModuleType = NO_DEFAULT","titles":["Module liteyuki.plugin.model","class Plugin(BaseModel)"]},"253":{"title":"attr module_name: str = NO_DEFAULT","titles":["Module liteyuki.plugin.model","class Plugin(BaseModel)"]},"254":{"title":"attr metadata: Optional[PluginMetadata] = None","titles":["Module liteyuki.plugin.model","class Plugin(BaseModel)"]},"255":{"title":"Module liteyuki.plugins","titles":[]},"256":{"title":"Module liteyuki.plugins.liteecho","titles":[]},"257":{"title":"async func liteecho(event: MessageEvent)","titles":["Module liteyuki.plugins.liteecho"]},"258":{"title":"Module liteyuki.plugins.plugin_loader","titles":[]},"259":{"title":"func default_plugins_loader()","titles":["Module liteyuki.plugins.plugin_loader"]},"260":{"title":"Module liteyuki.utils","titles":[]},"261":{"title":"func is_coroutine_callable(call: Callable[..., Any]) -> bool","titles":["Module liteyuki.utils"]},"262":{"title":"func run_coroutine(*coro: Coroutine)","titles":["Module liteyuki.utils"]},"263":{"title":"func run_coroutine_in_thread(*coro: Coroutine)","titles":["Module liteyuki.utils"]},"264":{"title":"func path_to_module_name(path: Path) -> str","titles":["Module liteyuki.utils"]},"265":{"title":"func async_wrapper(func: Callable[..., Any]) -> Callable[..., Coroutine]","titles":["Module liteyuki.utils"]},"266":{"title":"Channel Communication","titles":[]},"267":{"title":"Introduction","titles":["Channel Communication"]},"268":{"title":"Example","titles":["Channel Communication"]},"269":{"title":"共享内存通信","titles":["Channel Communication"]},"270":{"title":"简介","titles":["Channel Communication","共享内存通信"]},"271":{"title":"示例","titles":["Channel Communication","共享内存通信"]},"272":{"title":"Development Guide","titles":[]},"273":{"title":"How to Develop","titles":["Development Guide"]},"274":{"title":"Suggestions","titles":["Development Guide","How to Develop"]},"275":{"title":"Project Structure","titles":["Development Guide"]},"276":{"title":"Standardization","titles":["Development Guide"]},"277":{"title":"Finally","titles":["Development Guide"]},"278":{"title":"轻雪函数","titles":[]},"279":{"title":"函数文件","titles":["轻雪函数"]},"280":{"title":"命令文档","titles":["轻雪函数"]},"281":{"title":"示例","titles":["轻雪函数","命令文档"]},"282":{"title":"API","titles":["轻雪函数"]},"283":{"title":"结束关键字","titles":["轻雪函数"]},"284":{"title":"简介","titles":[]},"285":{"title":"开始","titles":["简介"]},"286":{"title":"创建插件","titles":["简介","开始"]},"287":{"title":"编写逻辑部分","titles":["简介","开始"]},"288":{"title":"加载插件","titles":["简介","开始"]},"289":{"title":"方法1","titles":["简介","开始","加载插件"]},"290":{"title":"方法2","titles":["简介","开始","加载插件"]},"291":{"title":"简介","titles":[]},"292":{"title":"加载资源包","titles":["简介"]},"293":{"title":"用户协议","titles":[]},"294":{"title":"基础插件","titles":[]},"295":{"title":"轻雪命令liteyuki_command","titles":["基础插件"]},"296":{"title":"命令别名","titles":["基础插件","轻雪命令liteyuki_command"]},"297":{"title":"插件/包管理器 liteyuki_pacman","titles":["基础插件"]},"298":{"title":"命令别名","titles":["基础插件","插件/包管理器 liteyuki_pacman"]},"299":{"title":"用户管理liteyuki_user","titles":["基础插件"]},"300":{"title":"功能插件命令","titles":[]},"301":{"title":"轻雪天气liteyuki_weather","titles":["功能插件命令"]},"302":{"title":"命令别名","titles":["功能插件命令","轻雪天气liteyuki_weather"]},"303":{"title":"统计信息liteyuki_statistics","titles":["功能插件命令"]},"304":{"title":"命令别名","titles":["功能插件命令","统计信息liteyuki_statistics"]}},"dirtCount":0,"index":[["或",{"2":{"303":2}}],["或插件路径",{"2":{"229":1}}],["当前bot",{"2":{"303":1}}],["当前群聊",{"2":{"303":1}}],["当前会话启用",{"2":{"297":1}}],["秒",{"2":{"303":2}}],["小时",{"2":{"303":2}}],["天",{"2":{"303":2}}],["天气",{"2":{"301":1,"302":1}}],["格式",{"2":{"303":1}}],["格式为onebot",{"2":{"295":1}}],["统计时间范围为duration",{"2":{"303":1}}],["统计周期为period",{"2":{"303":1}}],["统计信息",{"2":{"303":1}}],["统计信息liteyuki",{"0":{"303":1},"1":{"304":1}}],["功能",{"2":{"303":1}}],["功能插件命令",{"0":{"300":1},"1":{"301":1,"302":1,"303":1,"304":1}}],["绑定城市",{"2":{"302":1}}],["绑定查询城市",{"2":{"301":1}}],["个人全局生效",{"2":{"301":1}}],["个人信息",{"2":{"299":1}}],["海淀",{"2":{"301":1}}],["北京",{"2":{"301":1}}],["支持中英文",{"2":{"301":2}}],["支持中英文城市名",{"2":{"301":1}}],["支持多个关键词查询",{"2":{"301":1}}],["支持绑定城市",{"2":{"301":1}}],["支持单行注释",{"2":{"279":1}}],["受限于nonebot2钩子函数的依赖注入参数",{"2":{"298":1}}],["帮助",{"2":{"298":1}}],["列表",{"2":{"298":1}}],["列出所有资源包",{"2":{"297":1}}],["列出所有插件",{"2":{"297":1}}],["更改",{"2":{"298":1}}],["更新",{"2":{"298":1}}],["更新插件商店索引",{"2":{"297":1}}],["更新轻雪",{"2":{"295":1,"296":1}}],["全局停用",{"2":{"298":1}}],["全局启用",{"2":{"297":1,"298":1}}],["搜索",{"2":{"298":1}}],["卸载",{"2":{"298":2}}],["卸载资源包",{"2":{"297":1}}],["卸载插件",{"2":{"297":1}}],["私聊所有人可用",{"2":{"297":2}}],["包管理器",{"0":{"297":1},"1":{"298":1}}],["包括子task",{"2":{"280":1}}],["切换图片模式",{"2":{"296":1}}],["状态",{"2":{"296":1}}],["别名",{"2":{"296":1,"298":1,"299":1,"302":1,"304":1}}],["所有人",{"2":{"295":1,"297":1,"299":3}}],["所以在编写lyfunction时也要注意异步的调用",{"2":{"283":1}}],["群聊",{"2":{"296":1}}],["群聊仅群主",{"2":{"295":1,"297":2}}],["群号",{"2":{"295":1}}],["管理员",{"2":{"295":1,"297":2}}],["停用插件",{"2":{"297":2}}],["停用",{"2":{"296":1,"298":1}}],["停用机器人",{"2":{"295":1}}],["停止后钩子",{"2":{"55":1}}],["停止前钩子",{"2":{"54":1}}],["停止",{"2":{"44":1}}],["停止轻雪",{"2":{"23":1,"26":1}}],["该功能需要commit",{"2":{"295":1}}],["该模块封装通道实现",{"2":{"270":1}}],["该模块用于存放一些开发工具",{"2":{"142":1}}],["该模块用于常用配置文件的加载",{"2":{"122":1}}],["该模块用于轻雪主进程和nonebot子进程之间的通信",{"2":{"88":1}}],["推荐私聊使用",{"2":{"295":1}}],["推荐在编写html时同时更改对应js代码",{"2":{"291":1}}],["查询目标地实时天气",{"2":{"301":1}}],["查询实时天气",{"2":{"301":1}}],["查询",{"2":{"296":1,"299":1}}],["查询配置项",{"2":{"295":1}}],["查看用户信息菜单",{"2":{"299":1}}],["查看插件帮助",{"2":{"297":1}}],["查看轻雪文档",{"2":{"295":1}}],["查看统计信息和状态",{"2":{"295":1}}],["查看当前bot",{"2":{"295":1}}],["和风天气的天气key",{"2":{"301":1}}],["和",{"2":{"295":1}}],["和10是不一样的",{"2":{"295":1}}],["和config目录下的所有配置文件",{"2":{"129":1}}],["输入值会被执行以转换为正确的类型",{"2":{"295":1}}],["输出",{"2":{"279":1}}],["输出文件夹",{"2":{"224":1}}],["输出文件",{"2":{"220":1}}],["版本",{"2":{"295":1}}],["❌",{"2":{"295":11}}],["超级用户可用",{"2":{"295":1,"297":2}}],["超级用户",{"2":{"295":10,"297":10}}],["重载",{"2":{"298":1}}],["重载所有资源包",{"2":{"297":1}}],["重载资源",{"2":{"296":1}}],["重载轻雪",{"2":{"295":1}}],["重启轻雪",{"2":{"296":1}}],["重启轻雪即可加载插件",{"2":{"289":1}}],["重启轻雪本体",{"2":{"22":1}}],["重启后钩子",{"2":{"57":1}}],["重启前钩子",{"2":{"56":1}}],["重启",{"2":{"44":1}}],["举例",{"2":{"295":1}}],["权限",{"2":{"295":1,"297":2,"299":1}}],["说明",{"2":{"295":1,"297":2,"299":1}}],["~代替",{"2":{"294":1}}],["~可以使用插件",{"2":{"294":1}}],["安装插件",{"2":{"297":1}}],["安装",{"2":{"294":1,"298":1}}],["安装的插件",{"2":{"229":1}}],["命令",{"2":{"295":1,"296":1,"297":2,"298":1,"299":2,"301":1,"302":1,"303":1,"304":1}}],["命令别名",{"0":{"296":1,"298":1,"302":1,"304":1},"2":{"294":1,"299":1}}],["命令文档",{"0":{"280":1},"1":{"281":1}}],["为可选参数",{"2":{"294":1}}],["为必填参数",{"2":{"294":1}}],["为子进程重启时调用",{"2":{"31":1}}],["为子进程停止时调用",{"2":{"30":1}}],["且通过安全的方式传输到轻雪的服务器",{"2":{"293":1}}],["且通道标识为",{"2":{"268":1}}],["系统信息及python信息",{"2":{"293":1}}],["内存",{"2":{"293":1}}],["内存共享是线程安全的",{"2":{"270":1}}],["内存共享使得代码编写更加简洁",{"2":{"270":1}}],["分钟",{"2":{"303":2}}],["分发",{"2":{"293":1}}],["分工明确",{"2":{"122":1}}],["修改优先级",{"2":{"297":1}}],["修改",{"2":{"293":1}}],["本项目不会收集用户的任何隐私信息",{"2":{"293":1}}],["本项目遵循mit协议",{"2":{"293":1}}],["本模块用于实现rpc",{"2":{"89":1}}],["本模块用于轻雪主进程和子进程之间的通信的事件类",{"2":{"85":1}}],["本模块定义了一个通用的通道类",{"2":{"58":1}}],["同时用户也应该自行选择可用的资源包",{"2":{"292":1}}],["同步接收数据",{"2":{"68":1}}],["同步接收函数",{"2":{"59":1}}],["同步过滤函数",{"2":{"62":1}}],["同步进程生命周期函数",{"2":{"40":1}}],["同步生命周期函数",{"2":{"37":1}}],["第三方资源包开发者需要注意版本兼容性",{"2":{"292":1}}],["对于主动推送的插件不生效",{"2":{"298":1}}],["对于不同资源包的不同文件",{"2":{"292":1}}],["对外启动方法",{"2":{"136":1}}],["└─",{"2":{"292":1}}],["└───",{"2":{"292":1}}],["└─resource",{"2":{"292":2}}],["├─templates",{"2":{"292":1}}],["├─metadata",{"2":{"292":2}}],["正常的路径应该是这样的",{"2":{"292":1}}],["只需要将其解压到根目录resources目录下即可",{"2":{"292":1}}],["zip格式压缩的",{"2":{"292":1}}],["zh",{"0":{"223":1,"224":1},"2":{"2":1,"223":2,"224":1,"275":1}}],["以上内容仅用于项目的优化",{"2":{"293":1}}],["以避免出现无法预料的问题",{"2":{"291":1}}],["以下我们会编写一个简单的插件",{"2":{"287":1}}],["错位等无法预料的事情发生",{"2":{"291":1}}],["异常",{"2":{"291":1}}],["异步任务结束关键字",{"2":{"283":1}}],["异步等待",{"2":{"280":1}}],["异步包装器",{"2":{"265":1}}],["异步接收数据",{"2":{"69":1}}],["异步接收函数",{"2":{"60":1}}],["异步过滤函数",{"2":{"63":1}}],["异步进程生命周期函数",{"2":{"41":1}}],["异步生命周期函数",{"2":{"38":1}}],["请阅读插件主页的说明",{"2":{"298":1}}],["请确保您所编写的html代码能被bot解析",{"2":{"291":1}}],["请注意",{"2":{"291":1}}],["请不要将需要动态加载的内容写入配置文件",{"2":{"122":1}}],["欢迎各位投稿资源包到轻雪资源商店",{"2":{"291":1}}],["部分异常信息",{"2":{"293":1}}],["部分内容制作需要一点点前端基础",{"2":{"291":1}}],["部分来源于",{"2":{"260":1}}],["讲起打包成一个新的资源包",{"2":{"291":1}}],["仅需按照原有路径进行文件替换即可",{"2":{"291":1}}],["那么加载b包后",{"2":{"292":1}}],["那么你能够很快就上手",{"2":{"291":1}}],["那么当前所有函数包的task都会被截停销毁",{"2":{"283":1}}],["如果你接触过minecraft的资源包",{"2":{"291":1}}],["如果你想同时输出多行内容可以尝试换行符",{"2":{"279":1}}],["资源",{"2":{"291":1}}],["资源包管理",{"2":{"297":1}}],["资源包的结构会随着轻雪的更新而有变动",{"2":{"292":1}}],["资源包的制作很简单",{"2":{"291":1}}],["资源包加载遵循一个优先级",{"2":{"292":1}}],["资源包描述",{"2":{"292":1}}],["资源包名称",{"2":{"292":1}}],["资源包通常是以",{"2":{"292":1}}],["资源包",{"2":{"291":1,"298":1}}],["它允许你一定程度上自定义轻雪的外观",{"2":{"291":1}}],["它允许你在轻雪中运行一些自定义的由数据驱动的命令",{"2":{"278":1}}],["字体包",{"2":{"291":1}}],["字符串",{"2":{"223":1}}],["亦可根据用途称为主题包",{"2":{"291":1}}],["保存后轻雪会自动重载nonebot进程",{"2":{"290":1}}],["保持轻雪运行",{"2":{"21":1}}],["我们在src",{"2":{"290":1}}],["然后运行python",{"2":{"290":1}}],["方法2",{"0":{"290":1}}],["方法1",{"0":{"289":1}}],["用户管理liteyuki",{"0":{"299":1}}],["用户协议",{"0":{"293":1}}],["用observer的on",{"2":{"287":1}}],["用于统计bot接收到的消息",{"2":{"303":1}}],["用于开发nonebot时进行文件系统变更重载",{"2":{"287":1}}],["用于结束当前已完成function的执行",{"2":{"283":1}}],["用于存放内置插件",{"2":{"255":1}}],["用于获取和唯一标识",{"2":{"137":1}}],["用于进程间通信",{"2":{"58":1}}],["排除的文件扩展名",{"2":{"287":1}}],["因此插件主要是一些后台任务或者与聊天机器人的通信",{"2":{"287":1}}],["定义插件元数据",{"2":{"286":1}}],["定义变量",{"2":{"280":1}}],["导入轻雪bot和日志",{"2":{"287":1}}],["导入文件系统事件",{"2":{"287":1}}],["导入文件系统观察器",{"2":{"287":1}}],["导入文件夹下多个插件",{"2":{"230":1}}],["导入逻辑部分",{"2":{"286":1}}],["即后加载的资源包会覆盖前面的资源包",{"2":{"292":1}}],["即可创建一个插件",{"2":{"286":1}}],["即不等待",{"2":{"280":1}}],["首先创建一个文件夹",{"2":{"286":1}}],["开始",{"0":{"285":1},"1":{"286":1,"287":1,"288":1,"289":1,"290":1}}],["编写逻辑部分",{"0":{"287":1}}],["编写轻雪函数推荐你使用vs",{"2":{"283":1}}],["编辑时的语法高亮可采取shell格式",{"2":{"279":1}}],["有一个task任务没有完成而await被执行了",{"2":{"283":1}}],["的情况是效率提升的关键",{"2":{"283":1}}],["单线程走到底",{"2":{"283":1}}],["单位s",{"2":{"280":1}}],["避免出现",{"2":{"283":1}}],["由于liteyukibot基于异步运行",{"2":{"283":1}}],["结束关键字",{"0":{"283":1}}],["结束函数关键字",{"2":{"280":1}}],["理论上所有基于onebotv11的api都可调用",{"2":{"282":1}}],["则该文件夹不会被识别为资源包",{"2":{"292":1}}],["则需要删除await",{"2":{"281":1}}],["则传入泛型默认开启",{"2":{"66":1}}],["无需手动创建实例",{"2":{"290":1}}],["无需手动初始化bot",{"2":{"155":1}}],["无限戳",{"2":{"281":1}}],["执行",{"2":{"281":1}}],["疯狂戳好友",{"2":{"281":1}}],["否则会导致渲染失败或渲染结果不理想",{"2":{"291":1}}],["否则task对象会被销毁",{"2":{"280":1}}],["否则默认关闭",{"2":{"66":1}}],["需要在最后调用",{"2":{"280":1}}],["等待所有异步任务结束",{"2":{"280":1}}],["使用通用日期简写",{"2":{"303":2}}],["使用此项目代表你已经同意以上协议",{"2":{"293":1}}],["使用开发工具快速运行插件",{"2":{"290":1}}],["使用",{"2":{"281":1}}],["使用新的task执行命令",{"2":{"280":1}}],["使用watchdog监控文件变化并重启bot",{"2":{"143":1}}],["也支持句末注释",{"2":{"279":1}}],["例如npm",{"2":{"294":1}}],["例如nonebot插件中",{"2":{"268":1}}],["例如你在a中定义了templates",{"2":{"292":1}}],["例如html",{"2":{"291":1}}],["例如main",{"2":{"290":1}}],["例如watchdog",{"2":{"286":1,"289":1}}],["例如",{"2":{"279":2,"292":1,"301":1}}],["例如test",{"2":{"279":1,"290":1}}],["函数文件放在资源包的functions目录下",{"2":{"279":1}}],["函数文件",{"0":{"279":1}}],["函数列表",{"2":{"45":1}}],["属于资源包的一部分",{"2":{"278":1}}],["类似于minecraft的mcfunction",{"2":{"278":1}}],["类似于redis",{"2":{"99":1}}],["是可以相对引用的",{"2":{"292":1}}],["是轻雪的一个功能",{"2":{"278":1}}],["是否为协程可调用对象",{"2":{"261":1}}],["是否忽略警告",{"2":{"230":1}}],["是否忽略键不存在的错误",{"2":{"106":1}}],["是否包含顶层文件夹",{"2":{"224":1}}],["是否阻断后续优先级更低的匹配器",{"2":{"170":1}}],["是否递归监听子目录",{"2":{"153":1}}],["是否开启类型检查",{"2":{"66":1}}],["示例",{"0":{"271":1,"281":1}}],["线程锁会自动保护共享内存的读写操作",{"2":{"270":1}}],["相比于普通进程通信",{"2":{"270":1}}],["相对路径",{"2":{"220":1}}],["简介",{"0":{"270":1,"284":1,"291":1},"1":{"285":1,"286":1,"287":1,"288":1,"289":1,"290":1,"292":1}}],["被动模式",{"2":{"268":1}}],["被动通道传递通道",{"2":{"75":1,"81":1}}],["被动通道",{"2":{"72":1}}],["每隔0",{"2":{"281":1}}],["每行一个命令",{"2":{"279":1}}],["每次接收到字符串数据时都会运行",{"2":{"268":1}}],["每3秒发送一次消息",{"2":{"268":1}}],["每个配置文件给一个或一类服务提供配置",{"2":{"122":1}}],["创建入口文件",{"2":{"290":1}}],["创建插件",{"0":{"286":1}}],["创建子进程的同时会初始化一个被动通道和一个主动通道",{"2":{"268":1}}],["创建asyncio",{"2":{"136":1}}],["路径a",{"2":{"264":1}}],["转换路径为模块名",{"2":{"264":1}}],["可用",{"2":{"295":1}}],["可用参数",{"2":{"295":1}}],["可以在配置文件中把auto",{"2":{"293":1}}],["可以在a的index",{"2":{"292":1}}],["可以在此基础上进行修改",{"2":{"291":1}}],["可以很高程度地扩展轻雪的功能",{"2":{"284":1}}],["可以是本地插件或是通过",{"2":{"229":1}}],["可递归",{"2":{"280":1}}],["可调用对象",{"2":{"261":1}}],["判断是否为协程可调用对象",{"2":{"261":1}}],["并且应该在metadata",{"2":{"292":1}}],["并且不用修改源代码",{"2":{"291":1}}],["并在其中写入一些代码",{"2":{"290":1}}],["并在其中写入以下代码",{"2":{"290":1}}],["并在其中创建一个",{"2":{"286":1}}],["并遵循其许可进行修改",{"2":{"260":1}}],["并发运行异步函数",{"2":{"45":1}}],["一个",{"2":{"286":1}}],["一个键不要多次出现",{"2":{"122":1}}],["一些常用的工具类",{"2":{"260":1}}],["应在初始化时调用",{"2":{"259":1}}],["根据不同类型插件设置颜色",{"2":{"231":1}}],["加载",{"2":{"298":1}}],["加载资源包",{"0":{"292":1},"2":{"297":1}}],["加载插件",{"0":{"288":1},"1":{"289":1,"290":1}}],["加载插件加载器",{"2":{"19":1}}],["加载单个插件",{"2":{"229":1}}],["插件停用只能阻断传入响应",{"2":{"298":1}}],["插件管理",{"2":{"297":1,"298":1}}],["插件",{"0":{"297":1},"1":{"298":1}}],["插件信息",{"2":{"293":1}}],["插件描述",{"2":{"286":1}}],["插件版本",{"2":{"286":1}}],["插件类型",{"2":{"231":1,"286":1}}],["插件名称",{"2":{"229":1,"231":1,"286":1}}],["插件字典",{"2":{"227":1}}],["插件路径",{"2":{"155":1}}],["去头路径",{"2":{"225":1}}],["忽略的路径",{"2":{"224":1}}],["忽略私有函数和类",{"2":{"222":1}}],["模块名",{"2":{"264":1}}],["模块文件夹",{"2":{"224":1}}],["模块信息",{"2":{"222":1,"223":1}}],["源代码",{"2":{"223":1,"271":1}}],["+",{"2":{"223":2,"264":1}}],["+=",{"2":{"22":1,"70":1,"223":15}}],["语言包等",{"2":{"291":1}}],["语言",{"2":{"223":1,"224":1}}],["自定义选项title",{"2":{"223":1}}],["自动调用",{"2":{"24":1}}],["你在a包中定义了一个index",{"2":{"292":1}}],["你自己制作的资源包也应该遵循这个规则",{"2":{"292":1}}],["你也可以自己制作资源包",{"2":{"291":1}}],["你的插件代码",{"2":{"286":1}}],["你可以选择开启auto",{"2":{"293":1}}],["你可以自由使用",{"2":{"293":1}}],["你可以自定义一些信息",{"2":{"292":1}}],["你可以在多个线程中读写共享内存",{"2":{"270":1}}],["你可以通过storage模块实现内存共享通信",{"2":{"270":1}}],["你可在此自定义生成的markdown格式",{"2":{"223":1}}],["你应该使用其他储存方式",{"2":{"122":1}}],["生成文档",{"2":{"224":1}}],["生成模块的markdown",{"2":{"223":1}}],["生命周期函数",{"2":{"27":2,"28":2,"29":2,"30":2,"31":2,"32":2,"39":1,"46":2,"47":2,"49":2,"51":2}}],["生命周期管理",{"2":{"19":1}}],["文件内容为一系列的命令",{"2":{"279":1}}],["文件名以",{"2":{"279":1}}],["文件夹路径",{"2":{"230":1}}],["文件路径",{"2":{"222":1}}],["文件数据",{"2":{"220":1}}],["目标路径",{"2":{"219":1}}],["基础插件",{"0":{"294":1},"1":{"295":1,"296":1,"297":1,"298":1,"299":1}}],["基础路径",{"2":{"219":1}}],["基于socket的通道",{"2":{"93":1}}],["基于ipc",{"2":{"89":1}}],["x26",{"2":{"176":1,"223":4}}],["x3c",{"2":{"20":4,"22":1,"162":5,"174":1,"223":8,"229":2,"231":2,"280":6,"301":2,"303":2}}],["505468b及以后的lagrange",{"2":{"295":1}}],["59",{"2":{"228":1,"232":1}}],["55",{"2":{"178":1}}],["52",{"2":{"173":1}}],["51",{"2":{"168":1}}],["添加配置项",{"2":{"295":1}}],["添加sleep",{"2":{"281":1}}],["添加处理函数",{"2":{"171":1}}],["添加进程",{"2":{"137":1}}],["优先级",{"2":{"170":1}}],["规则函数签名",{"2":{"179":1}}],["规则",{"2":{"170":1}}],["匹配器",{"2":{"170":1}}],["回复消息",{"2":{"166":1}}],["下午12",{"2":{"256":1}}],["下午11",{"2":{"228":1,"232":1}}],["下午10",{"2":{"163":1,"167":1,"168":1,"173":1,"177":1,"178":1,"258":1}}],["下午8",{"2":{"36":1}}],["⭕",{"2":{"162":1}}],["⚠️",{"2":{"162":1}}],["✅",{"2":{"162":1}}],["ℹ️信息",{"2":{"268":4}}],["ℹ️",{"2":{"162":1}}],["🐛",{"2":{"162":1}}],["在群聊启用",{"2":{"295":1}}],["在普通图片和markdown大图之间切换",{"2":{"295":1}}],["在b中定义了templates",{"2":{"292":1}}],["在配置文件中的liteyuki",{"2":{"289":1}}],["在设备上执行命令",{"2":{"280":1}}],["在发信器输出",{"2":{"279":1}}],["在任意进程中均可使用",{"2":{"271":1}}],["在子进程中",{"2":{"268":1}}],["在轻雪插件中",{"2":{"268":1}}],["在新线程中运行协程",{"2":{"263":1}}],["在语言加载完成后执行",{"2":{"162":1}}],["在主进程中运行",{"2":{"111":1}}],["31",{"2":{"256":1}}],["3",{"2":{"159":1,"230":1,"268":1}}],["300~500mb",{"2":{"15":1}}],["6",{"2":{"159":1}}],["测试版本号",{"2":{"159":1}}],["此模块为内置插件文件夹",{"2":{"255":1}}],["此模块为liteyuki的框架整体",{"2":{"158":1}}],["此模块用于注册观察者函数",{"2":{"143":1}}],["参考liteyuki",{"2":{"155":1}}],["参数列表",{"2":{"295":2}}],["参数为调用set",{"2":{"268":1}}],["参数",{"2":{"24":1,"294":1,"303":1}}],["运行环境的设备信息",{"2":{"293":1}}],["运行在主进程中",{"2":{"284":1}}],["运行协程",{"2":{"262":1}}],["运行处理函数",{"2":{"172":1}}],["运行插件",{"2":{"155":1}}],["运行订阅者接收函数",{"2":{"110":1}}],["上午12",{"2":{"233":1}}],["上午11",{"2":{"131":1}}],["上午6",{"2":{"187":1}}],["上午9",{"2":{"160":1}}],["上午5",{"2":{"154":1}}],["装饰一个函数在接收到数据后执行",{"2":{"153":1}}],["装饰器",{"2":{"70":1,"109":1,"153":1,"171":2}}],["返回true则执行回调函数",{"2":{"153":1}}],["事件过滤器",{"2":{"153":1}}],["事件循环",{"2":{"19":1}}],["监听目录们",{"2":{"153":1}}],["防抖函数",{"2":{"146":1}}],["防止获取空指针",{"2":{"117":1}}],["位置1为filesystemevent",{"2":{"144":1,"145":1}}],["启用",{"2":{"296":1,"298":1}}],["启用插件后",{"2":{"290":1}}],["启用该模块需要在配置文件中设置dev",{"2":{"143":1}}],["启动后控制台输出",{"2":{"268":1}}],["启动后钩子",{"2":{"53":1}}],["启动所有进程",{"2":{"136":1}}],["启动发布订阅接收器循环",{"2":{"111":1}}],["启动前钩子",{"2":{"52":1}}],["启动",{"2":{"44":1}}],["检查进程是否存活",{"2":{"141":1}}],["终止进程并从进程字典中删除",{"2":{"139":1}}],["项目目录下的配置文件优先",{"2":{"129":1}}],["项目目录下的配置文件优先级高于config目录下的配置文件",{"2":{"122":1}}],["项目目录下的config",{"2":{"129":1}}],["按照读取文件的优先级反向覆盖",{"2":{"128":1}}],["不带key返回配置项列表",{"2":{"295":1}}],["不包含任何隐私信息",{"2":{"293":1}}],["不含隐私部分",{"2":{"293":1}}],["不含插件数据",{"2":{"293":1}}],["不同adapter",{"2":{"282":1}}],["不递归",{"2":{"128":1}}],["不要出现过多的嵌套",{"2":{"122":1}}],["从一个标准的轻雪项目加载配置文件",{"2":{"129":1}}],["从目录下加载配置文件",{"2":{"128":1}}],["从指定文件加载配置项",{"2":{"127":1}}],["默认普通图片",{"2":{"295":1}}],["默认开启",{"2":{"293":1}}],["默认插件加载器",{"2":{"259":1}}],["默认执行扁平化选项",{"2":{"127":1,"128":1}}],["默认值",{"2":{"34":1,"35":1,"105":1}}],["8",{"2":{"124":1,"125":1,"126":1,"154":1,"163":1,"167":1,"168":1,"173":1,"177":1,"178":1,"187":1,"220":1,"222":1,"256":1,"257":1,"258":1}}],["但请注意甄别第三方插件的安全性",{"2":{"293":1}}],["但请保证以上三个字段",{"2":{"292":1}}],["但是请保留原作者信息",{"2":{"293":1}}],["但是更加轻量级并且线程安全",{"2":{"99":1}}],["但若出现非单function的情况",{"2":{"283":1}}],["但需单独起篇幅",{"2":{"278":1}}],["但也包含原有的键值对",{"2":{"123":1}}],["扁平化后的配置文件",{"2":{"123":1}}],["扁平化配置文件",{"2":{"123":1}}],["扁平化编写",{"2":{"122":1}}],["注意不要嵌套文件夹",{"2":{"292":1}}],["注意冲突时的优先级",{"2":{"122":1}}],["注册一个函数在nonebot启动后运行",{"2":{"268":1}}],["注册一个函数在轻雪启动后运行",{"2":{"268":1}}],["注册文件系统变化监听器",{"2":{"153":1}}],["注册重启后的函数",{"2":{"32":1,"51":1}}],["注册进程重启前的函数",{"2":{"31":1,"50":1}}],["注册进程停止前的函数",{"2":{"30":1,"48":1}}],["注册停止后的函数",{"2":{"29":1,"49":1}}],["注册启动时的函数",{"2":{"46":1,"47":1}}],["注册启动后的函数",{"2":{"28":1}}],["注册启动前的函数",{"2":{"27":1}}],["尽量不要冲突",{"2":{"122":1}}],["多配置文件编写原则",{"2":{"122":1}}],["引用计数",{"2":{"117":1}}],["共享内存通信",{"0":{"269":1},"1":{"270":1,"271":1}}],["共享内存对象",{"2":{"116":1}}],["共享内存模块",{"2":{"99":1}}],["若不存在则返回空",{"2":{"295":1}}],["若不存在则创建于config",{"2":{"295":1}}],["若存在则返回",{"2":{"295":1}}],["若存在则覆盖",{"2":{"295":1}}],["若存在则会覆盖",{"2":{"295":1}}],["若你不希望提供这些信息",{"2":{"293":1}}],["若没有metadata",{"2":{"292":1}}],["若要戳20s后停止",{"2":{"281":1}}],["若函数中启动了其他task",{"2":{"280":1}}],["若有子进程订阅则推送给子进程",{"2":{"111":1}}],["若为空",{"2":{"66":1}}],["订阅者接收消息时的回调",{"2":{"109":1}}],["频道",{"2":{"108":1,"109":1,"110":1}}],["发布消息",{"2":{"108":1}}],["发送函数为同步函数",{"2":{"67":1}}],["发送数据",{"2":{"67":1,"96":1}}],["删除键值对",{"2":{"106":1}}],["值",{"2":{"104":1,"105":1}}],["键值对",{"2":{"107":1}}],["键",{"2":{"104":1,"105":1,"106":1}}],["设置用户信息或打开属性设置菜单",{"2":{"299":1}}],["设置",{"2":{"296":1,"299":1}}],["设置共享内存",{"2":{"271":1}}],["设置后的插件名称",{"2":{"231":1}}],["设置插件名称颜色",{"2":{"231":1}}],["设置键值对",{"2":{"104":1}}],["设置通道实例",{"2":{"76":1,"77":1}}],["关闭通道",{"2":{"98":1}}],["关键字参数",{"2":{"24":1}}],["调用机器人函数",{"2":{"295":1}}],["调用机器人api",{"2":{"295":1}}],["调用重启进程方法",{"2":{"287":1}}],["调用函数",{"2":{"280":1}}],["调用bot",{"2":{"280":1}}],["调用",{"2":{"92":1}}],["通过关键词搜索插件",{"2":{"297":1}}],["通过装饰器注册一个函数在接收到消息时运行",{"2":{"268":1}}],["通常是目录不存在或目录为空",{"2":{"230":1}}],["通常会默认传入chan",{"2":{"137":1}}],["通信",{"2":{"89":1}}],["通道实例",{"2":{"76":1,"77":1,"78":1,"79":1}}],["通道名称",{"2":{"76":1,"78":1}}],["通道传递通道",{"2":{"73":1,"74":1}}],["通道id",{"2":{"66":1,"95":1}}],["依赖关系",{"2":{"88":1}}],["主题包中的html渲染使用js来规定数据的渲染位置",{"2":{"291":1}}],["主题商店提供了一些资源包供你选择",{"2":{"291":1}}],["主进程中",{"2":{"268":1}}],["主进程中通过get",{"2":{"268":1}}],["主进程订阅者接收函数",{"2":{"100":1}}],["主进程创建单例",{"2":{"73":1,"74":1}}],["主动通道传递通道",{"2":{"80":1}}],["子进程中获取通道直接导入进程全局单例即可",{"2":{"268":1}}],["子进程中导入单例active",{"2":{"268":1}}],["子进程订阅者接收函数",{"2":{"101":1}}],["子进程初始化时实例化",{"2":{"73":1,"74":1}}],["子进程可用的主动和被动通道",{"2":{"71":1}}],["接收数据",{"2":{"97":1}}],["接收数据并执行函数",{"2":{"70":1}}],["接收函数",{"2":{"61":1}}],["会自动判断key版本",{"2":{"301":1}}],["会自动识别文件格式",{"2":{"127":1}}],["会话负载信息",{"2":{"293":1}}],["会触发最大递归深度限制",{"2":{"281":1}}],["会挂起等待",{"2":{"69":1}}],["会阻塞线程",{"2":{"68":1}}],["数据",{"2":{"67":1,"68":1,"69":1,"96":1,"97":1,"108":1,"110":1}}],["没有异步的必要",{"2":{"67":1}}],["过滤函数",{"2":{"64":1,"70":1}}],["轻雪天气liteyuki",{"0":{"301":1},"1":{"302":1}}],["轻雪文档",{"2":{"296":1}}],["轻雪命令liteyuki",{"0":{"295":1},"1":{"296":1}}],["轻雪会收集以下内容",{"2":{"293":1}}],["轻雪原版资源包请查看liteyukibot",{"2":{"291":1}}],["轻雪主进程不涉及聊天部分",{"2":{"287":1}}],["轻雪插件是轻雪内置的一部分功能",{"2":{"284":1}}],["轻雪函数",{"0":{"278":1},"1":{"279":1,"280":1,"281":1,"282":1,"283":1},"2":{"278":1}}],["轻雪框架提供了一个内存共享通信的接口",{"2":{"270":1}}],["轻雪抽象消息事件",{"2":{"165":1}}],["轻雪生命周期管理",{"2":{"44":1}}],["轻雪实例",{"2":{"33":1}}],["进程生命周期函数",{"2":{"48":2,"50":2}}],["进程函数关键字参数",{"2":{"137":1}}],["进程函数参数",{"2":{"137":1}}],["进程函数",{"2":{"42":1,"137":1}}],["进程名",{"2":{"23":1,"137":1}}],["|",{"0":{"45":1,"155":1,"165":1,"166":1,"182":1,"229":1},"2":{"39":1,"42":1,"45":2,"61":1,"64":1,"155":1,"165":1,"166":1,"229":1}}],["7",{"2":{"36":1,"131":1,"160":1,"228":1,"232":1,"233":1}}],["兼容键",{"2":{"35":1}}],["兼容旧版本",{"2":{"35":1}}],["获取用户信息",{"2":{"299":1}}],["获取唯一的轻雪bot实例",{"2":{"287":1}}],["获取共享内存",{"2":{"271":1}}],["获取主动通道",{"2":{"268":1}}],["获取被动通道",{"2":{"268":1}}],["获取已加载的插件",{"2":{"227":1}}],["获取函数和类",{"2":{"222":1}}],["获取相对路径",{"2":{"219":1}}],["获取所有键值对",{"2":{"107":1}}],["获取键值对",{"2":{"105":1}}],["获取通道实例们",{"2":{"79":1}}],["获取通道实例",{"2":{"78":1}}],["获取配置",{"2":{"34":1,"35":1}}],["获取轻雪实例",{"2":{"33":1}}],["未实现",{"2":{"29":1,"32":1,"55":1,"57":1}}],["延迟重启时间",{"2":{"22":1}}],["外部启动接口",{"2":{"20":1}}],["初始化通道",{"2":{"66":1,"95":1}}],["初始化日志",{"2":{"25":1}}],["初始化轻雪",{"2":{"24":1}}],["初始化轻雪实例",{"2":{"19":1}}],["初始化",{"2":{"19":1}}],["=none",{"2":{"23":1,"66":1,"70":1,"105":1,"165":2}}],["==",{"2":{"22":3,"81":1,"82":2,"83":2,"84":1,"111":1,"117":1,"118":2,"119":2,"120":2,"121":1,"161":1,"222":4,"223":2,"264":1}}],["=",{"0":{"22":1,"23":1,"34":1,"35":1,"66":1,"70":1,"105":1,"106":1,"114":1,"115":1,"127":1,"128":1,"129":1,"137":2,"153":2,"165":2,"175":3,"176":3,"182":1,"183":1,"184":1,"189":1,"190":1,"191":1,"192":1,"193":1,"195":1,"196":1,"197":1,"198":1,"199":1,"200":1,"201":1,"203":1,"204":1,"205":1,"206":1,"208":1,"209":1,"210":1,"211":1,"212":1,"214":1,"215":1,"216":1,"217":1,"218":1,"222":1,"223":2,"224":3,"230":1,"235":1,"236":1,"237":1,"238":1,"239":1,"241":1,"242":1,"243":1,"244":1,"245":1,"246":1,"247":1,"250":1,"251":1,"252":1,"253":1,"254":1},"2":{"19":7,"22":6,"23":2,"44":7,"45":1,"66":10,"67":1,"68":1,"69":2,"70":1,"76":1,"78":1,"79":1,"82":1,"83":1,"84":1,"87":2,"91":1,"95":4,"103":6,"104":2,"105":2,"106":1,"107":1,"109":2,"111":1,"113":1,"118":3,"119":2,"120":1,"121":1,"123":2,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"133":5,"135":3,"137":5,"139":1,"146":3,"153":2,"155":4,"162":1,"165":10,"166":1,"170":5,"175":1,"181":1,"221":1,"222":17,"223":16,"224":13,"229":12,"230":6,"231":5,"261":1,"262":2,"264":1,"265":1,"268":5,"271":1,"286":1,"287":2}}],["常规操作",{"2":{"19":1}}],[">",{"2":{"19":1,"27":1,"31":1,"33":1,"34":1,"35":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"68":1,"69":1,"70":3,"78":1,"79":1,"91":1,"92":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":2,"123":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"141":1,"146":1,"153":2,"161":1,"171":2,"172":1,"175":1,"176":1,"182":2,"183":2,"184":1,"185":1,"186":1,"219":1,"222":1,"223":3,"224":1,"227":1,"229":1,"230":1,"231":3,"261":1,"264":1,"265":1,"301":2}}],["配置项",{"2":{"301":1}}],["配置项目",{"2":{"123":1}}],["配置了命令别名的命令可以使用别名代替原命令",{"2":{"294":1}}],["配置文件尽量扁平化",{"2":{"122":1}}],["配置值",{"2":{"34":1,"35":1}}],["配置键",{"2":{"34":1,"35":1}}],["配置",{"2":{"19":2,"296":1}}],["$",{"2":{"13":3}}],["kill",{"2":{"139":1}}],["k",{"2":{"123":2,"223":2}}],["keyword",{"2":{"176":2}}],["keywords为城市名",{"2":{"301":2}}],["keywords",{"0":{"176":2},"2":{"176":5,"297":1,"301":2}}],["keyerror",{"2":{"106":1}}],["keyvaluestore",{"0":{"102":1},"1":{"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1},"2":{"113":1,"116":1}}],["keys",{"0":{"35":1},"2":{"35":3}}],["key",{"0":{"34":1,"35":1,"104":1,"105":1,"106":2},"2":{"34":3,"35":10,"104":6,"105":6,"106":11,"118":3,"119":3,"120":3,"123":2,"271":2,"295":4,"299":2,"301":1}}],["keyboardinterrupt",{"2":{"20":1}}],["keeping",{"2":{"21":1}}],["keep",{"0":{"21":1},"2":{"21":1}}],["kwargs=none",{"2":{"137":1}}],["kwargs",{"0":{"19":1,"24":1,"45":1,"54":1,"56":1,"92":1,"137":1},"2":{"19":3,"24":2,"45":3,"54":2,"56":2,"92":2,"137":4,"146":2,"265":2,"295":2}}],["kritor",{"2":{"8":1}}],["knowledge",{"2":{"273":1}}],["know",{"2":{"6":2}}],["qq群号",{"2":{"303":1}}],["qq",{"0":{"8":1},"2":{"7":1,"8":3}}],["question",{"2":{"6":1}}],["questions",{"0":{"6":1,"7":1,"16":1}}],["quotes",{"2":{"276":2}}],["quot",{"2":{"3":2,"276":1,"283":2,"295":2,"301":4}}],["js",{"2":{"8":1}}],["json",{"0":{"125":1},"2":{"0":2,"125":4,"127":2,"129":1}}],["join",{"0":{"138":1},"2":{"7":1,"22":1,"128":1,"138":2,"139":1,"221":1,"223":4,"224":1,"230":2,"264":2}}],["guidelines",{"2":{"276":2}}],["guide",{"0":{"272":1},"1":{"273":1,"274":1,"275":1,"276":1,"277":1},"2":{"276":1}}],["g",{"2":{"231":1,"304":1}}],["group",{"2":{"295":9,"296":1,"297":2,"303":3,"304":1}}],["group775840726",{"2":{"7":1}}],["green>",{"2":{"162":1}}],["gather",{"2":{"45":1,"262":1}}],["getattr",{"2":{"261":1}}],["get",{"0":{"33":1,"34":1,"35":1,"78":1,"79":1,"83":1,"84":1,"105":1,"107":1,"113":1,"118":1,"121":1,"161":1,"219":1,"221":1,"222":1,"227":1},"2":{"23":2,"33":2,"34":3,"35":5,"66":2,"67":1,"69":1,"78":2,"79":2,"82":1,"83":4,"84":3,"104":1,"105":4,"106":1,"107":2,"113":1,"116":1,"117":1,"118":3,"120":1,"121":3,"155":1,"161":1,"162":2,"219":1,"221":1,"222":5,"224":3,"225":1,"227":1,"229":3,"230":1,"259":2,"262":1,"268":8,"271":1,"287":2,"295":3,"296":1,"299":2}}],["generic",{"0":{"65":1},"1":{"66":1,"67":1,"68":1,"69":1,"70":1},"2":{"66":2,"67":1}}],["generate",{"0":{"223":1,"224":1},"2":{"0":1,"223":1,"224":3,"276":1}}],["gensokyo",{"2":{"8":1}}],["globalkeyvaluestore",{"0":{"112":1},"1":{"113":1,"114":1,"115":1},"2":{"116":1}}],["global",{"2":{"19":1,"70":1,"297":2,"298":2}}],["gt",{"0":{"19":1,"27":1,"31":1,"33":1,"34":1,"35":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"68":1,"69":1,"70":1,"78":1,"79":1,"91":1,"92":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"123":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"141":1,"153":1,"161":1,"171":1,"172":1,"175":1,"176":1,"182":1,"183":1,"184":1,"185":1,"186":1,"219":1,"222":1,"223":1,"227":1,"229":1,"230":1,"231":1,"261":1,"264":1,"265":1},"2":{"88":3,"123":1,"170":1,"264":1,"276":2,"294":1,"295":7,"297":10,"299":2}}],["google",{"2":{"276":2}}],["go",{"2":{"8":2,"267":1}}],["gitmoji",{"2":{"276":2}}],["github",{"2":{"7":1,"12":1,"13":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"66":1,"67":1,"68":1,"69":1,"70":1,"76":1,"77":1,"78":1,"79":1,"82":1,"83":1,"84":1,"87":1,"91":1,"92":1,"95":1,"96":1,"97":1,"98":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1,"113":1,"118":1,"119":1,"120":1,"121":1,"123":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"133":1,"135":1,"136":1,"137":1,"138":1,"139":1,"140":1,"141":1,"146":1,"148":1,"149":1,"150":1,"151":1,"152":1,"153":1,"155":1,"161":1,"162":1,"165":1,"166":1,"170":1,"171":1,"172":1,"174":1,"175":1,"176":1,"181":1,"182":1,"183":1,"184":1,"185":1,"186":1,"219":1,"220":1,"221":1,"222":1,"223":1,"224":1,"227":1,"229":1,"230":1,"231":1,"249":1,"257":1,"259":1,"261":1,"262":1,"263":1,"264":1,"265":1}}],["git",{"2":{"6":1,"12":2,"13":1,"15":2}}],["\`",{"2":{"3":1,"223":14}}],["validate",{"2":{"67":1}}],["value=ast",{"2":{"222":1}}],["valueerror",{"2":{"66":2,"76":1}}],["value2",{"2":{"2":1}}],["value1",{"2":{"2":1}}],["value",{"0":{"104":1,"205":1},"2":{"2":1,"3":3,"104":5,"119":3,"123":3,"222":6,"223":3,"271":2,"295":2,"299":1}}],["var=value",{"2":{"280":1}}],["var2=value2",{"2":{"280":1}}],["var1=value1>",{"2":{"280":1}}],["var",{"0":{"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"71":1,"72":1,"73":1,"74":1,"75":1,"80":1,"81":1,"100":1,"101":1,"116":1,"117":1,"144":1,"145":1,"159":1,"179":1,"225":1},"2":{"223":2}}],["version=",{"2":{"286":1}}],["version",{"0":{"159":1},"2":{"15":1,"292":1}}],["venv",{"2":{"12":4}}],["v",{"2":{"13":2,"123":2,"223":2}}],["vitepress",{"2":{"276":1}}],["view",{"2":{"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"66":1,"67":1,"68":1,"69":1,"70":1,"76":1,"77":1,"78":1,"79":1,"82":1,"83":1,"84":1,"87":1,"91":1,"92":1,"95":1,"96":1,"97":1,"98":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1,"113":1,"118":1,"119":1,"120":1,"121":1,"123":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"133":1,"135":1,"136":1,"137":1,"138":1,"139":1,"140":1,"141":1,"146":1,"148":1,"149":1,"150":1,"151":1,"152":1,"153":1,"155":1,"161":1,"162":1,"165":1,"166":1,"170":1,"171":1,"172":1,"174":1,"175":1,"176":1,"181":1,"182":1,"183":1,"184":1,"185":1,"186":1,"219":1,"220":1,"221":1,"222":1,"223":1,"224":1,"227":1,"229":1,"230":1,"231":1,"249":1,"257":1,"259":1,"261":1,"262":1,"263":1,"264":1,"265":1}}],["virtual",{"2":{"6":1,"12":3}}],["visit",{"2":{"3":1}}],["v11协议api",{"2":{"295":2}}],["v11",{"2":{"3":1,"282":1}}],["2s戳两次",{"2":{"281":1}}],["22",{"2":{"256":1}}],["27",{"2":{"131":1,"160":1}}],["24",{"2":{"36":1,"233":1}}],["23",{"2":{"36":1,"187":1,"228":1,"232":1}}],["20代替空格",{"2":{"295":1}}],["20和end",{"2":{"281":1}}],["2024",{"2":{"36":2,"131":2,"154":2,"160":2,"163":2,"167":2,"168":2,"173":2,"177":2,"178":2,"187":2,"228":2,"232":2,"233":2,"256":2,"258":2}}],["2020",{"2":{"36":1,"131":1,"154":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"178":1,"187":1,"228":1,"232":1,"233":1,"256":1,"258":1}}],["20216",{"2":{"1":1,"3":1,"13":4}}],["20",{"2":{"15":1}}],["2019+",{"2":{"15":1}}],["2",{"2":{"2":1,"281":1,"292":1}}],["object",{"2":{"267":1}}],["observer",{"0":{"143":1},"1":{"144":1,"145":1,"146":1,"147":1,"148":1,"149":1,"150":1,"151":1,"152":1,"153":1},"2":{"153":1,"287":2}}],["occurred",{"2":{"262":1}}],["occupy",{"2":{"15":1}}],["overall",{"2":{"158":1}}],["os",{"2":{"127":1,"128":3,"219":1,"220":4,"221":2,"222":1,"224":2,"230":9,"287":2}}],["outlook",{"2":{"36":1,"131":1,"154":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"178":1,"187":1,"228":1,"232":1,"233":1,"256":1,"258":1}}],["output",{"0":{"224":1},"2":{"2":1,"224":5}}],["open",{"2":{"22":1,"124":1,"125":1,"126":1,"220":1,"222":1,"277":1}}],["openshamrock",{"2":{"8":1}}],["option",{"2":{"294":1}}],["optional",{"0":{"23":1,"66":1,"70":1,"105":2,"165":2,"229":1,"254":1},"2":{"22":1,"23":2,"34":1,"35":1,"66":1,"70":3,"103":2,"105":3,"165":2,"229":1}}],["opt",{"2":{"20":2,"229":3}}],["ordinary",{"2":{"276":1}}],["order",{"2":{"224":1}}],["organization",{"2":{"273":1}}],["or",{"2":{"4":1,"6":2,"15":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"66":1,"67":1,"68":1,"69":1,"70":1,"76":1,"77":1,"78":1,"79":1,"82":1,"83":1,"84":1,"87":1,"91":1,"92":1,"95":1,"96":1,"97":1,"98":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1,"113":1,"118":1,"119":1,"120":1,"121":1,"123":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"133":1,"135":1,"136":1,"137":1,"138":1,"139":1,"140":1,"141":1,"146":1,"148":1,"149":1,"150":1,"151":1,"152":1,"153":1,"155":1,"161":1,"162":1,"165":1,"166":1,"170":1,"171":1,"172":1,"174":1,"175":1,"176":1,"181":1,"182":3,"183":1,"184":1,"185":1,"186":1,"219":1,"220":1,"221":1,"222":5,"223":1,"224":1,"227":1,"229":1,"230":1,"231":1,"249":1,"257":1,"259":1,"261":1,"262":1,"263":1,"264":1,"265":1,"276":3}}],["of",{"0":{"3":1},"2":{"6":3,"9":1,"13":1,"15":1,"67":1,"76":1,"158":1,"229":1,"273":4,"276":5}}],["other",{"0":{"2":1,"4":1,"7":1,"16":1,"182":1,"183":1},"2":{"2":1,"3":1,"9":1,"15":2,"182":2,"183":2,"267":3}}],["one",{"2":{"6":1,"268":1}}],["onebotv11",{"2":{"8":4}}],["onebot",{"0":{"3":1},"2":{"2":2,"3":2,"4":1,"6":2,"8":1,"282":1,"295":1}}],["only",{"2":{"0":1,"6":1,"70":1,"268":1}}],["on",{"0":{"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"59":1,"60":1,"61":1,"70":1,"82":1,"83":1,"84":1,"91":2,"100":1,"101":1,"109":3,"118":1,"119":1,"120":1,"121":1,"148":1,"149":1,"150":1,"151":1,"152":1,"153":1,"173":1,"175":1,"176":1},"1":{"174":1,"175":1,"176":1},"2":{"0":1,"3":1,"6":1,"7":1,"8":4,"12":1,"15":3,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":3,"28":3,"29":3,"30":3,"31":3,"32":3,"33":1,"34":1,"35":1,"44":1,"45":1,"46":2,"47":2,"48":2,"49":2,"50":2,"51":2,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"61":2,"66":3,"67":1,"68":1,"69":1,"70":5,"76":1,"77":1,"78":1,"79":1,"81":1,"82":4,"83":4,"84":3,"87":1,"91":5,"92":2,"95":1,"96":1,"97":1,"98":1,"100":1,"101":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":12,"110":2,"111":1,"113":1,"117":1,"118":4,"119":4,"120":4,"121":3,"123":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"133":1,"135":1,"136":1,"137":1,"138":1,"139":1,"140":1,"141":1,"146":1,"148":3,"149":3,"150":3,"151":3,"152":3,"153":3,"155":1,"161":1,"162":1,"165":1,"166":1,"170":1,"171":1,"172":1,"173":1,"174":1,"175":2,"176":5,"181":1,"182":1,"183":1,"184":1,"185":1,"186":1,"219":1,"220":1,"221":1,"222":1,"223":1,"224":1,"227":1,"229":1,"230":1,"231":1,"249":1,"256":1,"257":2,"259":1,"261":1,"262":1,"263":1,"264":1,"265":1,"268":6,"276":1,"287":1}}],["45m",{"2":{"303":2}}],["44",{"2":{"167":1}}],["47",{"2":{"163":1,"177":1}}],["41",{"2":{"13":1}}],["40",{"2":{"13":1}}],["4",{"2":{"1":1}}],["utility",{"2":{"275":1}}],["utils",{"0":{"260":1},"1":{"261":1,"262":1,"263":1,"264":1,"265":1},"2":{"275":1}}],["utf",{"2":{"124":1,"125":1,"126":1,"220":1,"222":1}}],["ubuntu",{"2":{"15":1}}],["unload",{"2":{"297":1,"298":1}}],["understand",{"2":{"276":1}}],["underlying",{"2":{"10":1}}],["unit",{"2":{"275":1}}],["uninstall",{"2":{"6":2,"297":1,"298":1}}],["until",{"2":{"262":2}}],["unclassified",{"0":{"238":2,"244":1}}],["unparse",{"2":{"222":10}}],["unsupported",{"2":{"127":1}}],["usage",{"0":{"243":1},"2":{"273":1}}],["using",{"2":{"6":2,"13":1}}],["users",{"2":{"276":1}}],["user",{"0":{"165":1,"299":1},"2":{"165":3,"166":2,"186":1,"276":1,"281":3}}],["used",{"2":{"70":1,"255":1,"268":1,"276":1}}],["use",{"0":{"14":1},"2":{"1":1,"3":2,"4":2,"6":6,"8":1,"12":4,"13":1,"14":1,"15":2,"35":1,"229":1,"274":1,"276":2}}],["updates",{"2":{"1":1}}],["update",{"2":{"1":2,"2":2,"6":1,"15":2,"127":3,"128":1,"129":1,"295":1,"296":1,"297":1,"298":1}}],["feat",{"2":{"276":1}}],["features",{"2":{"276":2}}],["feature",{"2":{"276":1}}],["flake8",{"2":{"274":1}}],["flat",{"0":{"123":1},"2":{"123":2,"124":1,"125":1,"126":1}}],["flag",{"2":{"44":1}}],["f",{"2":{"22":1,"23":2,"35":1,"66":4,"67":1,"76":2,"123":1,"124":1,"125":1,"126":1,"127":2,"128":1,"136":1,"139":2,"141":1,"220":2,"223":19,"224":1,"229":5,"230":9,"231":1,"262":1,"268":2,"287":1}}],["friend",{"2":{"281":2}}],["front",{"0":{"223":1},"2":{"223":5,"224":3,"273":1}}],["from",{"0":{"124":1,"125":1,"126":1,"127":1,"128":1},"2":{"68":1,"124":3,"125":3,"126":3,"127":4,"128":2,"129":2,"267":1,"268":4,"286":1,"287":3}}],["framework",{"2":{"10":1,"158":1,"267":1,"273":1,"275":3}}],["frequently",{"0":{"6":1}}],["future",{"2":{"262":1}}],["func=none",{"2":{"153":1}}],["func=lambda",{"2":{"81":1,"82":2,"83":2,"84":1,"268":1}}],["funcs",{"0":{"45":2,"100":1,"101":1,"110":1},"2":{"44":6,"45":4,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":2,"53":2,"54":2,"55":2,"56":2,"57":2,"70":1,"109":6,"110":2,"111":1}}],["func",{"0":{"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":4,"28":3,"29":3,"30":3,"31":4,"32":3,"33":1,"34":1,"35":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"44":1,"45":3,"46":4,"47":4,"48":4,"49":4,"50":4,"51":4,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"66":1,"67":1,"68":1,"69":1,"70":3,"76":1,"77":1,"78":1,"79":1,"82":1,"83":1,"84":1,"87":1,"91":2,"92":1,"95":1,"96":1,"97":1,"98":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":3,"110":1,"111":1,"113":1,"118":1,"119":1,"120":1,"121":1,"123":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"133":1,"135":1,"136":1,"137":2,"138":1,"139":1,"140":1,"141":1,"144":1,"145":1,"146":1,"148":1,"149":1,"150":1,"151":1,"152":1,"153":4,"155":1,"161":1,"162":1,"165":1,"166":1,"170":1,"171":1,"172":1,"174":1,"175":1,"176":1,"181":1,"182":1,"183":1,"184":1,"185":1,"186":1,"219":1,"220":1,"221":1,"222":1,"223":1,"224":1,"227":1,"229":1,"230":1,"231":1,"249":1,"257":1,"259":1,"261":1,"262":1,"263":1,"264":1,"265":2},"2":{"27":7,"28":6,"29":6,"30":6,"31":7,"32":6,"39":2,"42":2,"44":6,"45":8,"46":8,"47":8,"48":8,"49":8,"50":8,"51":8,"61":2,"64":2,"66":2,"70":20,"91":1,"100":1,"101":1,"109":8,"110":2,"137":1,"146":2,"153":7,"222":2,"223":9,"261":2,"265":4,"280":1}}],["function实现语法高亮",{"2":{"283":1}}],["functiondef",{"2":{"222":3}}],["functioninfo",{"0":{"194":1,"210":1,"215":1},"1":{"195":1,"196":1,"197":1,"198":1,"199":1,"200":1,"201":1},"2":{"222":2}}],["functions=",{"2":{"222":1}}],["functions",{"0":{"215":1},"2":{"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"222":1,"223":1}}],["function",{"0":{"189":2},"2":{"6":2,"15":2,"222":3,"268":1,"278":1,"280":1,"281":2,"295":3}}],["full",{"2":{"6":1,"268":1}}],["familiar",{"2":{"273":2}}],["failed",{"2":{"6":2,"229":1}}],["faq",{"0":{"5":1},"1":{"6":1,"7":1,"8":1,"9":1,"10":1}}],["false时例如docs",{"2":{"224":1}}],["false",{"0":{"127":1,"128":1,"129":1,"175":1,"176":1,"224":1},"2":{"2":4,"66":2,"95":1,"103":2,"261":1}}],["follow",{"2":{"276":4}}],["following",{"2":{"2":1,"273":1,"276":2}}],["folder",{"0":{"221":1,"224":1},"2":{"221":2,"224":4,"225":1,"255":1}}],["found",{"2":{"67":1,"76":1,"127":1,"128":1,"139":1,"141":1}}],["font",{"2":{"10":1}}],["fonts",{"2":{"1":1}}],["fork",{"2":{"273":1}}],["formatting",{"2":{"274":1}}],["format=get",{"2":{"162":1}}],["formats",{"2":{"128":1}}],["format",{"0":{"161":1,"231":1},"2":{"127":1,"161":3,"162":1,"229":2,"231":1,"276":1}}],["for",{"0":{"16":1},"2":{"1":1,"3":2,"6":2,"8":1,"23":1,"35":1,"45":1,"66":1,"77":1,"110":1,"123":2,"127":1,"128":2,"136":1,"138":1,"140":1,"153":1,"172":1,"174":1,"176":1,"220":1,"221":2,"222":12,"223":9,"224":3,"230":2,"259":2,"262":2,"267":1,"268":1,"274":1,"276":5,"286":1}}],["finally",{"0":{"277":1}}],["field",{"2":{"276":3}}],["fields",{"2":{"0":1,"3":2}}],["fixing",{"2":{"276":2}}],["filter=lambda",{"2":{"287":1}}],["filter",{"0":{"62":1,"63":1,"64":1,"70":2,"145":1,"153":2},"2":{"64":2,"70":8,"81":1,"82":2,"83":2,"84":1,"153":5,"268":1}}],["file",{"0":{"124":1,"125":1,"126":1,"153":1,"220":1,"221":1,"222":1},"2":{"3":1,"6":1,"36":1,"124":4,"125":4,"126":4,"127":12,"128":3,"131":1,"153":1,"154":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"178":1,"187":1,"220":3,"221":7,"222":8,"224":6,"228":1,"232":1,"233":1,"256":1,"258":1,"275":1,"287":3}}],["filesystemeventhandler",{"0":{"147":1},"1":{"148":1,"149":1,"150":1,"151":1,"152":1}}],["filesystemevent",{"2":{"144":1,"145":1,"153":1,"287":2}}],["files",{"0":{"127":2,"220":1},"2":{"0":4,"127":3,"128":1,"129":1,"220":1,"221":2,"224":1}}],["fill",{"2":{"1":1,"3":1,"276":1}}],["first",{"2":{"0":1,"6":1,"222":2,"273":1}}],["b包也定义了一个index",{"2":{"292":1}}],["bilingual",{"2":{"276":1}}],["bind",{"2":{"302":1}}],["binding",{"2":{"1":1}}],["bin",{"2":{"12":1}}],["brief",{"2":{"276":1}}],["branch",{"2":{"273":4}}],["break",{"2":{"174":1}}],["browser",{"2":{"6":1}}],["black",{"2":{"274":1}}],["block",{"0":{"170":1,"175":1,"176":1},"2":{"170":4,"175":2,"176":2}}],["blue>",{"2":{"162":1}}],["b",{"2":{"123":1,"224":2,"264":2,"304":1}}],["body",{"2":{"222":1}}],["bool=false",{"2":{"127":1,"128":1,"129":1,"175":1,"176":1,"224":1}}],["bool=true",{"2":{"106":1,"153":1,"222":1,"230":1}}],["bool",{"0":{"66":1,"106":1,"127":1,"128":1,"129":1,"141":1,"153":1,"170":1,"175":1,"176":1,"184":1,"185":1,"186":1,"201":1,"222":1,"224":1,"230":1,"261":1},"2":{"62":1,"63":1,"66":1,"141":1,"145":1,"170":1,"179":1,"182":1,"183":1,"184":1,"185":1,"186":1,"261":2}}],["both",{"2":{"275":1}}],["bot",{"0":{"17":1,"33":1,"36":1,"165":1},"1":{"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1},"2":{"1":1,"2":1,"6":2,"9":1,"12":1,"15":1,"19":2,"33":4,"34":1,"35":4,"155":2,"165":3,"166":2,"268":4,"275":2,"279":1,"287":2,"295":1,"303":3,"304":1}}],["bugs",{"2":{"276":2}}],["bug",{"2":{"276":2}}],["business",{"2":{"275":1}}],["built",{"2":{"255":2,"275":1}}],["build",{"2":{"13":2}}],["but",{"2":{"3":1,"6":1,"268":1,"276":1}}],["bases",{"2":{"222":1}}],["base",{"0":{"219":1},"2":{"219":3,"222":2}}],["basemodel",{"0":{"194":1,"202":1,"207":1,"213":1,"240":1,"248":1},"1":{"195":1,"196":1,"197":1,"198":1,"199":1,"200":1,"201":1,"203":1,"204":1,"205":1,"206":1,"208":1,"209":1,"210":1,"211":1,"212":1,"214":1,"215":1,"216":1,"217":1,"218":1,"241":1,"242":1,"243":1,"244":1,"245":1,"246":1,"247":1,"249":1,"250":1,"251":1,"252":1,"253":1,"254":1}}],["baseexception",{"0":{"157":1}}],["based",{"2":{"8":4}}],["bash",{"2":{"12":1}}],["basically",{"2":{"3":1}}],["basic",{"0":{"1":1},"2":{"273":2}}],["better",{"2":{"277":1}}],["between",{"2":{"6":1}}],["before",{"0":{"27":1,"30":1,"31":1,"46":1,"48":1,"50":1,"52":1,"54":1,"56":1},"2":{"27":2,"30":2,"31":2,"44":3,"46":2,"48":2,"50":2,"52":3,"54":3,"56":3}}],["below",{"2":{"6":1}}],["been",{"2":{"6":1}}],["be",{"2":{"3":1,"6":2,"15":1,"35":1,"67":1,"70":1,"76":1,"148":1,"268":1,"276":2}}],["by",{"2":{"3":1,"4":1,"6":2,"268":1,"274":1}}],["14s",{"2":{"303":2}}],["1h",{"2":{"303":2}}],["1d",{"2":{"303":2}}],["1145141919810",{"2":{"295":1}}],["11",{"2":{"258":1}}],["19",{"2":{"163":1,"167":1,"168":1,"173":1,"177":1,"178":1,"187":1}}],["1919810",{"2":{"1":1}}],["10",{"2":{"159":1,"295":1}}],["10+",{"2":{"12":1,"15":1}}],["18",{"2":{"154":1}}],["12",{"2":{"131":1,"160":1}}],["127",{"2":{"1":1,"3":1}}],["1gb",{"2":{"15":2}}],["1vcpu",{"2":{"15":1}}],["1",{"2":{"1":1,"2":1,"3":1,"21":1,"22":2,"23":2,"70":1,"82":2,"83":2,"84":1,"111":2,"118":3,"119":2,"120":1,"121":1,"123":1,"147":1,"148":1,"223":6,"224":1,"229":4,"264":2,"286":1,"292":2}}],["03",{"2":{"268":2}}],["0000",{"2":{"268":3}}],["00",{"2":{"268":18}}],["02",{"2":{"233":1,"258":1}}],["04",{"2":{"154":1}}],["04+",{"2":{"15":1}}],["0",{"0":{"22":1,"175":1,"176":1},"2":{"1":2,"3":2,"19":1,"21":1,"22":2,"44":1,"81":1,"82":2,"83":2,"84":1,"111":1,"117":2,"118":2,"119":2,"120":2,"121":1,"170":1,"222":1,"223":7,"281":1,"286":2,"292":2}}],["html中用",{"2":{"292":1}}],["html",{"2":{"292":1}}],["html文件会被覆盖",{"2":{"292":1}}],["html文件",{"2":{"292":2}}],["https",{"2":{"12":1,"13":1}}],["hints",{"2":{"276":1}}],["hint",{"2":{"66":1,"222":1,"223":1}}],["harmless",{"2":{"276":1}}],["handlers",{"2":{"170":1,"171":1,"172":1}}],["handler",{"0":{"181":1},"2":{"153":3,"171":4,"172":2,"181":3,"182":4,"183":4,"184":2}}],["handle",{"0":{"171":1},"2":{"6":1,"171":1,"256":1,"257":1}}],["hash",{"0":{"249":1},"2":{"249":2}}],["has",{"2":{"6":1,"276":1}}],["have",{"2":{"3":1,"6":3,"7":1,"13":1,"15":1}}],["homepage",{"0":{"246":1}}],["how",{"0":{"273":1},"1":{"274":1},"2":{"6":2}}],["host",{"2":{"1":1}}],["hello",{"2":{"279":5,"295":1}}],["help",{"2":{"6":2,"297":1,"298":1}}],["here",{"2":{"3":2}}],["header",{"2":{"1":1,"6":1}}],["echo",{"2":{"279":3}}],["easy",{"2":{"276":1}}],["each",{"2":{"276":2}}],["editing",{"2":{"276":1}}],["etc",{"2":{"276":1}}],["e",{"2":{"106":2,"229":1,"231":1,"262":2}}],["emoji",{"2":{"276":1}}],["emsp",{"2":{"223":4}}],["email",{"2":{"36":1,"131":1,"154":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"178":1,"187":1,"228":1,"232":1,"233":1,"256":1,"258":1}}],["empty",{"0":{"175":1,"176":1,"185":1},"2":{"1":1,"185":1,"229":1,"230":1}}],["else",{"2":{"22":1,"23":1,"33":1,"45":1,"66":1,"70":2,"76":1,"78":1,"79":1,"104":1,"105":1,"106":1,"107":1,"109":2,"124":1,"125":1,"126":1,"161":1,"162":5,"174":1,"222":9,"223":10,"224":2,"229":2,"262":1,"264":1}}],["elif",{"2":{"22":2,"66":1,"70":1,"127":4,"222":5,"229":2,"230":1}}],["event装饰器监听文件系统事件",{"2":{"287":1}}],["events",{"2":{"287":1}}],["eventhandler",{"0":{"171":2},"2":{"170":1,"171":4}}],["event",{"0":{"85":1,"86":1,"148":1,"149":1,"150":1,"151":1,"152":2,"153":2,"163":1,"172":1,"184":1,"185":1,"186":1,"257":1},"1":{"86":1,"87":2,"164":1,"165":1,"166":1},"2":{"19":4,"21":1,"26":1,"88":1,"148":1,"149":2,"150":2,"151":2,"152":3,"153":8,"163":1,"166":2,"172":4,"176":2,"182":3,"183":3,"184":2,"185":1,"186":2,"257":3,"262":2,"276":1,"287":8}}],["every",{"2":{"1":1}}],["errors=true",{"2":{"224":1}}],["errors",{"2":{"6":1}}],["error",{"0":{"106":1},"2":{"6":1,"106":3,"162":2,"262":1}}],["extra",{"0":{"247":1}}],["extensions",{"2":{"287":2}}],["extend",{"2":{"155":1}}],["external",{"2":{"1":1}}],["exclude",{"2":{"287":2}}],["exc",{"2":{"172":1,"229":1}}],["exception模块包含了liteyuki运行中的所有错误",{"2":{"156":1}}],["exception",{"0":{"156":1},"1":{"157":1},"2":{"21":1,"172":1,"229":1,"262":2}}],["except",{"2":{"20":1,"21":1,"106":1,"172":1,"229":1,"262":2}}],["executor",{"2":{"69":1}}],["executable",{"2":{"6":1,"15":1,"22":3}}],["exist",{"2":{"230":1}}],["exists",{"2":{"66":2,"76":1,"127":1,"128":1,"220":1,"230":2}}],["exit",{"2":{"22":1}}],["exiting",{"2":{"21":1}}],["example",{"0":{"3":1,"268":1},"2":{"6":2}}],["enclosed",{"2":{"276":1}}],["encoding=",{"2":{"124":1,"125":1,"126":1,"220":1,"222":1}}],["encountered",{"2":{"9":1}}],["english",{"2":{"275":1}}],["en",{"2":{"275":1}}],["entry",{"2":{"275":1}}],["enter",{"2":{"6":1}}],["end",{"2":{"273":1,"280":1}}],["endswith",{"2":{"127":3,"128":1,"221":1,"230":1,"287":1}}],["enum",{"0":{"188":1,"234":1},"1":{"189":1,"190":1,"191":1,"192":1,"193":1,"235":1,"236":1,"237":1,"238":1,"239":1}}],["enumerate",{"2":{"174":1}}],["enforcing",{"2":{"66":1}}],["environment",{"2":{"12":4}}],["environments",{"2":{"3":1,"6":1,"15":1}}],["ensure",{"2":{"1":1,"262":1,"273":1,"276":7}}],["enable",{"2":{"1":1,"274":1,"295":2,"296":1,"297":2,"298":2}}],["msg",{"2":{"295":1}}],["mcfunction",{"2":{"279":2}}],["mkdir",{"2":{"224":1}}],["mkdoc",{"0":{"187":1},"1":{"188":1,"189":1,"190":1,"191":1,"192":1,"193":1,"194":1,"195":1,"196":1,"197":1,"198":1,"199":1,"200":1,"201":1,"202":1,"203":1,"204":1,"205":1,"206":1,"207":1,"208":1,"209":1,"210":1,"211":1,"212":1,"213":1,"214":1,"215":1,"216":1,"217":1,"218":1,"219":1,"220":1,"221":1,"222":1,"223":1,"224":1,"225":1},"2":{"187":1}}],["md",{"2":{"224":13}}],["m",{"2":{"12":1,"15":1,"174":2,"231":1,"304":1}}],["mix",{"2":{"276":1}}],["minimum",{"2":{"15":1}}],["minecraftonebot",{"2":{"9":1}}],["minecraft",{"0":{"9":1},"2":{"9":1}}],["misans",{"2":{"10":1}}],["must",{"2":{"67":1,"76":1,"148":1}}],["much",{"2":{"6":1,"276":3}}],["multiple",{"2":{"0":1,"15":1,"276":1}}],["mypy",{"2":{"274":1}}],["my",{"2":{"6":1}}],["member",{"2":{"295":1}}],["memory",{"0":{"116":1},"2":{"15":1,"103":3,"117":1,"118":3,"119":3,"120":3,"121":2,"137":1,"267":1,"271":3}}],["meta",{"2":{"229":4,"286":1}}],["metadata",{"0":{"254":1},"2":{"229":13}}],["method",{"0":{"190":2,"191":1,"192":1},"2":{"222":5,"223":13}}],["methods=",{"2":{"222":1}}],["methods",{"0":{"210":1},"2":{"3":1,"222":1,"223":1}}],["means",{"2":{"6":1}}],["message=",{"2":{"166":1,"295":1}}],["message=message",{"2":{"166":1}}],["messageevent",{"0":{"164":1,"165":1,"172":1,"184":1,"185":1,"186":1,"257":1},"1":{"165":1,"166":1},"2":{"165":1,"166":1,"172":1,"176":1,"179":1,"182":1,"183":1,"184":1,"185":1,"186":1,"257":1}}],["messages",{"2":{"6":2,"267":2}}],["message",{"0":{"163":1,"165":3,"166":1,"167":1,"168":1,"173":1,"175":1,"177":1,"178":1},"1":{"164":1,"165":1,"166":1,"169":1,"170":1,"171":1,"172":1,"174":1,"175":1,"176":1,"179":1,"180":1,"181":1,"182":1,"183":1,"184":1,"185":1,"186":1},"2":{"4":1,"6":1,"165":9,"166":5,"175":1,"176":2,"257":1,"276":5,"303":1,"304":1}}],["merge",{"2":{"0":1,"273":1}}],["mark",{"2":{"276":1}}],["markdown",{"0":{"223":1},"2":{"223":2,"224":1,"273":1,"276":1}}],["match",{"2":{"231":1}}],["matcher",{"0":{"168":1,"169":1,"174":3,"175":1,"176":1},"1":{"169":1,"170":2,"171":2,"172":2},"2":{"168":1,"174":9,"175":6,"176":1}}],["matter=none",{"2":{"223":1}}],["matter",{"0":{"223":1},"2":{"223":4,"224":3}}],["maplemono",{"2":{"10":1}}],["makedirs",{"2":{"220":1}}],["make",{"2":{"6":2,"277":1}}],["maintainer",{"2":{"273":1}}],["mainprocess",{"2":{"267":1}}],["main",{"0":{"100":1},"2":{"6":1,"12":1,"33":1,"66":4,"70":4,"76":1,"78":1,"79":1,"103":1,"104":1,"105":1,"106":1,"107":1,"109":5,"110":1,"111":1,"267":1,"268":6,"273":1,"275":1,"290":1}}],["manager",{"0":{"131":1,"232":1},"1":{"132":1,"133":1,"134":1,"135":1,"136":1,"137":1,"138":1,"139":1,"140":1,"141":1},"2":{"19":1,"20":1,"22":1,"23":1,"26":1,"131":1,"232":1}}],["manage",{"2":{"14":1}}],["management",{"2":{"14":1}}],["many",{"2":{"6":1}}],["manually",{"2":{"2":1,"66":1}}],["may",{"2":{"3":1}}],["moved",{"0":{"151":1},"2":{"151":1}}],["more",{"2":{"2":1,"14":1,"15":1,"274":1}}],["moduletype",{"0":{"252":1}}],["module=module",{"2":{"229":1}}],["moduleinfo",{"0":{"213":1,"222":1,"223":1},"1":{"214":1,"215":1,"216":1,"217":1,"218":1},"2":{"222":2,"223":1}}],["module",{"0":{"17":1,"36":1,"58":1,"85":1,"88":1,"89":1,"93":1,"99":1,"122":1,"130":1,"131":1,"142":1,"143":1,"154":1,"155":1,"156":1,"158":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"178":1,"187":1,"214":1,"221":1,"222":1,"223":1,"224":1,"225":1,"226":1,"228":1,"229":1,"232":1,"233":1,"237":2,"252":1,"253":1,"255":1,"256":1,"258":1,"260":1,"264":1},"1":{"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"65":1,"66":1,"67":1,"68":1,"69":1,"70":1,"71":1,"72":1,"73":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"81":1,"82":1,"83":1,"84":1,"86":1,"87":1,"90":1,"91":1,"92":1,"94":1,"95":1,"96":1,"97":1,"98":1,"100":1,"101":1,"102":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"123":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"132":1,"133":1,"134":1,"135":1,"136":1,"137":1,"138":1,"139":1,"140":1,"141":1,"144":1,"145":1,"146":1,"147":1,"148":1,"149":1,"150":1,"151":1,"152":1,"153":1,"155":1,"157":1,"159":1,"161":1,"162":1,"164":1,"165":1,"166":1,"169":1,"170":1,"171":1,"172":1,"174":1,"175":1,"176":1,"179":1,"180":1,"181":1,"182":1,"183":1,"184":1,"185":1,"186":1,"188":1,"189":1,"190":1,"191":1,"192":1,"193":1,"194":1,"195":1,"196":1,"197":1,"198":1,"199":1,"200":1,"201":1,"202":1,"203":1,"204":1,"205":1,"206":1,"207":1,"208":1,"209":1,"210":1,"211":1,"212":1,"213":1,"214":1,"215":1,"216":1,"217":1,"218":1,"219":1,"220":1,"221":1,"222":1,"223":1,"224":1,"225":1,"227":1,"229":1,"230":1,"231":1,"234":1,"235":1,"236":1,"237":1,"238":1,"239":1,"240":1,"241":1,"242":1,"243":1,"244":1,"245":1,"246":1,"247":1,"248":1,"249":1,"250":1,"251":1,"252":1,"253":1,"254":1,"257":1,"259":1,"261":1,"262":1,"263":1,"264":1,"265":1},"2":{"155":3,"158":1,"221":2,"222":11,"223":5,"224":19,"225":1,"229":26,"230":9,"231":1,"249":1,"255":1,"264":1}}],["modified",{"0":{"148":1},"2":{"13":1,"148":2,"149":1,"150":1,"151":1,"152":1,"153":4}}],["modify",{"2":{"0":2}}],["modes",{"2":{"268":1}}],["model",{"0":{"233":1,"250":1},"1":{"234":1,"235":1,"236":1,"237":1,"238":1,"239":1,"240":1,"241":1,"242":1,"243":1,"244":1,"245":1,"246":1,"247":1,"248":1,"249":1,"250":1,"251":1,"252":1,"253":1,"254":1},"2":{"233":1}}],["mode为true",{"2":{"143":1}}],["mode",{"2":{"2":5,"6":3,"268":5,"274":2,"295":2,"296":1}}],["most",{"2":{"0":1}}],["lyf结尾",{"2":{"279":1}}],["lyfunction语法",{"2":{"295":1}}],["lyfunction",{"2":{"279":1}}],["lt",{"2":{"276":2,"294":1,"295":7,"297":10,"299":2}}],["lead",{"2":{"276":1}}],["least",{"2":{"15":2}}],["level=0",{"2":{"162":1}}],["level",{"0":{"161":1},"2":{"1":3,"161":2,"162":6}}],["lsposed",{"2":{"8":1}}],["llonebot",{"2":{"8":1}}],["laptop",{"2":{"224":2}}],["lang",{"0":{"223":1,"224":1},"2":{"223":3,"224":2}}],["language",{"2":{"2":2,"273":1,"276":3}}],["last",{"2":{"146":4}}],["lambda",{"2":{"117":1,"118":2,"119":2,"120":2,"121":1}}],["lagrange",{"2":{"8":2}}],["locks",{"2":{"106":1}}],["lock",{"0":{"115":2},"2":{"104":3,"105":3,"106":3,"113":1}}],["local",{"2":{"1":1}}],["loop",{"0":{"111":1},"2":{"19":4,"66":1,"69":3,"103":2,"111":2,"262":10}}],["log0000",{"2":{"268":1}}],["logger",{"0":{"25":1},"2":{"19":1,"20":2,"21":2,"22":1,"24":1,"25":1,"35":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"66":2,"124":1,"125":1,"126":1,"127":2,"128":1,"136":1,"139":2,"141":1,"162":7,"229":3,"230":3,"262":1,"268":3,"287":2}}],["logo",{"2":{"19":1}}],["logic",{"2":{"6":1,"275":1}}],["login",{"2":{"6":2}}],["logs",{"2":{"2":1}}],["log",{"0":{"160":1,"162":1},"1":{"161":1,"162":1},"2":{"1":4,"6":1,"25":1,"160":1,"162":3,"268":1}}],["loaded",{"0":{"227":1},"2":{"227":1}}],["loader",{"0":{"258":1,"259":1},"1":{"259":1},"2":{"19":1,"259":1}}],["loading",{"2":{"124":1,"125":1,"126":1}}],["load",{"0":{"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"228":1,"229":1,"230":1},"1":{"229":1,"230":1,"231":1},"2":{"0":1,"2":2,"19":1,"124":3,"125":3,"126":3,"127":4,"128":2,"129":3,"155":2,"228":1,"229":3,"230":2,"259":2,"297":1,"298":1}}],["links",{"2":{"276":2}}],["linux",{"2":{"8":1,"12":1,"14":1,"15":1,"22":1}}],["like",{"2":{"267":1}}],["life",{"2":{"44":1}}],["lifespan=self",{"2":{"19":1}}],["lifespan",{"0":{"27":2,"28":1,"29":1,"30":1,"31":2,"32":1,"36":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"45":2,"46":2,"47":2,"48":2,"49":2,"50":2,"51":2,"135":2},"1":{"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":2,"45":2,"46":2,"47":2,"48":2,"49":2,"50":2,"51":2,"52":2,"53":2,"54":2,"55":2,"56":2,"57":2},"2":{"19":3,"27":5,"28":4,"29":4,"30":4,"31":5,"32":4,"36":1,"39":2,"42":2,"44":6,"45":4,"46":4,"47":4,"48":4,"49":4,"50":4,"51":4,"135":4}}],["litedoc",{"2":{"276":1}}],["liteecho",{"0":{"256":1,"257":1},"1":{"257":1},"2":{"256":2,"257":2,"295":1}}],["liteloader",{"2":{"8":1}}],["liteyukiexception",{"0":{"157":1}}],["liteyukistudio",{"2":{"12":1,"13":1,"36":1,"131":1,"154":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"178":1,"187":1,"228":1,"232":1,"233":1,"256":1,"258":1}}],["liteyuki",{"0":{"17":1,"36":1,"58":1,"85":1,"88":1,"89":1,"93":1,"99":1,"122":1,"130":1,"131":1,"142":1,"143":1,"154":1,"156":1,"158":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"178":1,"187":1,"226":1,"228":1,"232":1,"233":1,"255":1,"256":1,"258":1,"260":1,"297":1},"1":{"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"65":1,"66":1,"67":1,"68":1,"69":1,"70":1,"71":1,"72":1,"73":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"81":1,"82":1,"83":1,"84":1,"86":1,"87":1,"90":1,"91":1,"92":1,"94":1,"95":1,"96":1,"97":1,"98":1,"100":1,"101":1,"102":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"123":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"132":1,"133":1,"134":1,"135":1,"136":1,"137":1,"138":1,"139":1,"140":1,"141":1,"144":1,"145":1,"146":1,"147":1,"148":1,"149":1,"150":1,"151":1,"152":1,"153":1,"155":1,"157":1,"159":1,"161":1,"162":1,"164":1,"165":1,"166":1,"169":1,"170":1,"171":1,"172":1,"174":1,"175":1,"176":1,"179":1,"180":1,"181":1,"182":1,"183":1,"184":1,"185":1,"186":1,"188":1,"189":1,"190":1,"191":1,"192":1,"193":1,"194":1,"195":1,"196":1,"197":1,"198":1,"199":1,"200":1,"201":1,"202":1,"203":1,"204":1,"205":1,"206":1,"207":1,"208":1,"209":1,"210":1,"211":1,"212":1,"213":1,"214":1,"215":1,"216":1,"217":1,"218":1,"219":1,"220":1,"221":1,"222":1,"223":1,"224":1,"225":1,"227":1,"229":1,"230":1,"231":1,"234":1,"235":1,"236":1,"237":1,"238":1,"239":1,"240":1,"241":1,"242":1,"243":1,"244":1,"245":1,"246":1,"247":1,"248":1,"249":1,"250":1,"251":1,"252":1,"253":1,"254":1,"257":1,"259":1,"261":1,"262":1,"263":1,"264":1,"265":1,"298":1},"2":{"1":6,"2":4,"3":2,"4":2,"6":6,"12":1,"14":1,"15":1,"19":2,"21":2,"33":1,"155":2,"158":1,"229":5,"259":3,"267":1,"268":12,"271":2,"273":4,"275":6,"276":2,"277":1,"278":1,"286":1,"287":4,"290":1,"291":1,"295":4,"296":3}}],["liteyukibot",{"0":{"18":1,"33":1},"1":{"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1},"2":{"0":5,"9":1,"12":2,"13":6,"14":1,"22":1,"33":2,"155":1,"267":1,"275":3}}],["limited",{"2":{"4":1}}],["listdir",{"2":{"128":1,"230":2}}],["listen",{"2":{"267":1}}],["listening",{"2":{"1":1}}],["listed",{"2":{"6":1}}],["list",{"0":{"165":1,"176":1,"196":1,"210":1,"211":1,"212":1,"215":1,"216":1,"217":1,"221":1},"2":{"1":4,"44":6,"66":2,"100":1,"101":1,"165":1,"170":1,"174":3,"176":1,"221":4,"222":4,"224":3,"295":1,"297":2,"298":1}}],["switch",{"2":{"295":2,"296":1}}],["simple",{"2":{"286":1}}],["single",{"2":{"276":1}}],["signature",{"2":{"265":2}}],["sides",{"2":{"3":1,"6":1}}],["side",{"0":{"3":1},"2":{"6":4}}],["src",{"2":{"259":1,"275":2,"287":5}}],["schedule",{"2":{"153":1}}],["script",{"0":{"14":1},"2":{"14":1}}],["scripts",{"2":{"12":1}}],["shinjuku",{"2":{"301":1}}],["shellstatistic",{"2":{"303":1}}],["shellbind",{"2":{"301":1}}],["shellweather",{"2":{"301":1}}],["shellmain",{"2":{"292":1}}],["shellvar",{"2":{"280":1}}],["shellcmd",{"2":{"279":1}}],["shell",{"2":{"279":1,"281":1}}],["shutil",{"2":{"224":1}}],["shutdown",{"0":{"29":1,"30":1,"48":1,"49":1,"54":1,"55":1},"2":{"29":2,"30":2,"44":2,"48":2,"49":2,"54":3,"55":3}}],["show",{"2":{"162":6}}],["should",{"2":{"66":1,"276":7}}],["shared",{"0":{"116":1},"2":{"103":3,"117":1,"118":3,"119":3,"120":3,"121":2,"137":1,"267":1,"271":3}}],["syntax",{"2":{"273":1,"276":1}}],["sync",{"0":{"37":1,"40":1,"59":1,"62":1},"2":{"39":1,"42":1,"61":1,"64":1,"265":1}}],["sys",{"2":{"22":3,"162":1}}],["system",{"0":{"153":1},"2":{"15":2,"22":4,"153":1,"287":2}}],["snowykami",{"2":{"36":2,"131":2,"154":2,"160":2,"163":2,"167":2,"168":2,"173":2,"177":2,"178":2,"187":2,"228":2,"232":2,"233":2,"256":2,"258":2}}],["sleep",{"2":{"21":1,"22":1,"268":1,"280":1,"281":1}}],["style",{"2":{"276":2,"292":2}}],["stem",{"2":{"264":2}}],["stdout",{"2":{"162":1}}],["store",{"2":{"103":1,"104":1,"105":1,"106":2,"107":1,"255":1}}],["storage",{"0":{"99":1},"1":{"100":1,"101":1,"102":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1},"2":{"88":2,"271":2}}],["stopped",{"2":{"20":1}}],["stopping",{"2":{"20":1}}],["stop",{"0":{"26":1},"2":{"19":1,"20":1,"21":2,"26":2}}],["strings",{"2":{"276":2}}],["strip",{"2":{"257":2}}],["str=",{"2":{"223":1,"224":1}}],["structure",{"0":{"275":1},"2":{"67":1}}],["str",{"0":{"23":1,"34":1,"35":2,"66":1,"76":1,"77":1,"78":1,"79":1,"82":2,"83":2,"84":2,"87":2,"95":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"118":2,"119":2,"120":2,"121":2,"123":2,"124":2,"125":2,"126":2,"127":2,"128":2,"129":1,"133":2,"137":1,"139":1,"141":1,"153":1,"155":1,"161":2,"165":9,"166":2,"176":1,"195":1,"196":2,"197":1,"198":1,"199":1,"203":1,"204":1,"206":1,"208":1,"209":1,"212":1,"214":1,"218":1,"219":3,"220":2,"221":1,"222":1,"223":2,"224":3,"227":1,"229":1,"230":1,"231":2,"241":1,"242":1,"243":1,"245":1,"246":1,"247":1,"251":1,"253":1,"264":1},"2":{"19":1,"23":2,"34":2,"35":3,"40":1,"41":1,"66":2,"73":2,"75":2,"76":2,"77":2,"78":2,"79":3,"82":2,"83":2,"84":2,"87":2,"95":1,"100":1,"101":1,"103":5,"104":1,"105":1,"106":1,"107":3,"108":1,"109":1,"110":1,"118":2,"119":2,"120":2,"121":2,"123":2,"124":2,"125":2,"126":2,"127":2,"128":2,"129":1,"133":2,"135":2,"137":1,"139":1,"141":1,"153":1,"155":1,"161":2,"165":9,"166":2,"176":1,"186":1,"219":3,"220":2,"221":1,"222":1,"223":1,"224":4,"227":2,"229":1,"230":1,"231":3,"264":2,"268":1}}],["stat",{"2":{"304":1}}],["statistic",{"2":{"304":1}}],["statistics",{"0":{"303":1},"1":{"304":1}}],["static",{"0":{"191":1},"2":{"222":1}}],["staticmethod",{"0":{"191":1},"2":{"44":1,"45":1,"109":1,"110":1,"222":1}}],["status",{"2":{"295":1,"296":1}}],["standardization",{"0":{"276":1}}],["standard",{"2":{"6":2}}],["startup",{"2":{"268":2}}],["startswith",{"2":{"222":3,"256":1,"257":1}}],["started",{"2":{"6":1}}],["start",{"0":{"27":1,"28":1,"46":1,"47":1,"52":1,"53":1,"111":1,"136":1},"2":{"1":2,"6":3,"12":1,"20":1,"22":2,"27":2,"28":2,"44":2,"46":2,"47":2,"52":3,"53":3,"111":2,"136":2,"263":1,"268":1}}],["starting",{"2":{"0":1,"136":1}}],["s",{"2":{"15":1}}],["sparkles",{"2":{"276":2}}],["space",{"2":{"15":1}}],["split",{"2":{"229":4}}],["specified",{"2":{"229":1}}],["specific",{"2":{"15":1}}],["specify",{"2":{"6":1}}],["so",{"2":{"275":1}}],["sockschannel",{"0":{"94":1},"1":{"95":1,"96":1,"97":1,"98":1}}],["socks",{"0":{"93":1},"1":{"94":1,"95":1,"96":1,"97":1,"98":1}}],["software",{"2":{"36":1,"131":1,"154":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"178":1,"187":1,"228":1,"232":1,"233":1,"256":1,"258":1}}],["source",{"0":{"199":1},"2":{"12":1,"15":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"66":1,"67":1,"68":1,"69":1,"70":1,"76":1,"77":1,"78":1,"79":1,"82":1,"83":1,"84":1,"87":1,"91":1,"92":1,"95":1,"96":1,"97":1,"98":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1,"113":1,"118":1,"119":1,"120":1,"121":1,"123":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"133":1,"135":1,"136":1,"137":1,"138":1,"139":1,"140":1,"141":1,"146":1,"148":1,"149":1,"150":1,"151":1,"152":1,"153":1,"155":1,"161":1,"162":1,"165":1,"166":1,"170":1,"171":1,"172":1,"174":1,"175":1,"176":1,"181":1,"182":1,"183":1,"184":1,"185":1,"186":1,"219":1,"220":1,"221":1,"222":3,"223":7,"224":1,"227":1,"229":1,"230":1,"231":1,"249":1,"257":1,"259":1,"261":1,"262":1,"263":1,"264":1,"265":1,"275":1,"277":1}}],["solution",{"0":{"8":1,"9":1}}],["some",{"2":{"1":1,"6":2}}],["search",{"2":{"297":1,"298":1}}],["see",{"2":{"274":1}}],["service",{"0":{"236":2},"2":{"231":1,"286":1}}],["server",{"2":{"1":1,"3":1,"9":1,"15":1}}],["sep",{"2":{"222":3}}],["session",{"0":{"165":2,"177":1},"2":{"165":6,"166":5,"177":1}}],["sequence",{"0":{"45":1},"2":{"45":2}}],["setting",{"2":{"274":1}}],["set",{"0":{"76":1,"77":1,"82":1,"104":1,"119":1,"230":1},"2":{"19":1,"21":1,"26":1,"66":1,"76":2,"77":2,"81":1,"82":3,"104":2,"118":1,"119":3,"230":2,"262":1,"271":1,"295":2,"296":1,"299":2}}],["self",{"0":{"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"44":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"66":1,"67":1,"68":1,"69":1,"70":1,"87":1,"91":1,"92":1,"95":1,"96":1,"97":1,"98":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"111":1,"133":1,"135":1,"136":1,"137":1,"138":1,"139":1,"140":1,"141":1,"148":1,"149":1,"150":1,"151":1,"152":1,"165":1,"166":1,"170":1,"171":1,"172":1,"181":1,"182":1,"183":1,"184":1,"249":1},"2":{"19":11,"20":4,"21":3,"22":4,"23":2,"24":2,"25":1,"26":3,"27":2,"28":2,"29":2,"30":2,"31":2,"32":2,"44":8,"46":2,"47":2,"48":2,"49":2,"50":2,"51":2,"52":3,"53":3,"54":3,"55":3,"56":3,"57":3,"66":14,"67":6,"68":3,"69":2,"70":3,"87":3,"91":2,"92":2,"95":5,"96":1,"97":1,"98":1,"103":7,"104":3,"105":3,"106":4,"107":3,"108":2,"109":1,"111":4,"133":6,"135":4,"136":2,"137":2,"138":2,"139":3,"140":3,"141":3,"148":1,"149":2,"150":2,"151":2,"152":2,"165":10,"166":3,"170":5,"171":2,"172":3,"181":2,"182":2,"183":2,"184":3,"222":1,"223":1,"249":2}}],["send",{"0":{"67":1,"96":1},"2":{"6":1,"23":2,"66":2,"67":4,"76":1,"78":1,"79":1,"83":1,"84":1,"95":1,"96":1,"104":1,"105":1,"106":1,"107":1,"108":1,"111":1,"118":1,"121":1,"166":1,"267":1,"268":3,"295":1}}],["summary",{"2":{"276":1}}],["summary>",{"2":{"223":3}}],["summary>源代码",{"2":{"223":1}}],["suggestions",{"0":{"274":1}}],["su",{"0":{"186":1},"2":{"186":1,"256":1,"257":1}}],["succeeded",{"2":{"229":1}}],["success",{"2":{"139":1,"162":2,"229":2}}],["such",{"2":{"6":1,"274":1,"276":2}}],["subscribe",{"2":{"109":1}}],["subscriber",{"0":{"100":1,"101":1,"109":1,"110":1},"2":{"109":7,"110":2,"111":1}}],["sub",{"0":{"101":1},"2":{"33":1,"66":2,"70":1,"103":1,"109":4,"111":1}}],["submitted",{"2":{"276":1}}],["submit",{"2":{"7":1,"273":2}}],["sure",{"2":{"6":2}}],["support",{"2":{"276":1}}],["supported",{"2":{"4":1,"128":1}}],["supports",{"2":{"0":1,"8":5}}],["superuser",{"2":{"1":1}}],["superusers",{"2":{"0":1,"1":1,"6":1,"186":1}}],["same",{"2":{"3":2}}],["safe",{"2":{"2":2,"6":3,"124":1}}],["num为每页显示数量",{"2":{"297":2}}],["num",{"2":{"297":2}}],["number",{"2":{"13":2}}],["nliteyuki",{"2":{"279":1}}],["n\`\`\`",{"2":{"223":2}}],["n\`\`\`python",{"2":{"223":2}}],["n",{"2":{"223":52,"224":2}}],["name>",{"2":{"280":2}}],["name=module",{"2":{"229":3}}],["name=target",{"2":{"222":2}}],["name=class",{"2":{"222":1}}],["name=node",{"2":{"222":2}}],["name=f",{"2":{"137":2}}],["name=",{"2":{"71":1,"72":1,"73":1,"80":1,"81":1,"103":3,"286":1}}],["name",{"0":{"23":1,"66":1,"76":1,"78":1,"87":1,"95":1,"137":1,"139":1,"141":1,"195":1,"203":1,"208":1,"225":1,"231":2,"241":1,"251":1,"253":1,"264":1},"2":{"23":6,"66":11,"76":7,"77":2,"78":5,"82":3,"83":3,"87":3,"95":4,"136":3,"137":5,"138":1,"139":6,"140":2,"141":5,"222":11,"223":7,"224":2,"229":20,"230":9,"231":6,"249":1,"264":1,"268":2,"295":4,"297":8}}],["ntqq",{"2":{"8":1}}],["npm",{"2":{"6":1,"297":7,"298":1}}],["nesting",{"2":{"276":1}}],["new",{"2":{"19":1,"123":3,"262":1,"273":1,"276":2}}],["necessary",{"2":{"6":1}}],["needs",{"2":{"268":1}}],["need",{"2":{"0":1,"2":1,"6":1,"273":1}}],["non",{"2":{"277":1}}],["nonlocal",{"2":{"146":1}}],["nonedog",{"2":{"286":1}}],["none",{"0":{"19":1,"23":1,"34":1,"35":1,"44":1,"45":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"66":1,"70":1,"91":1,"104":1,"105":1,"106":1,"108":1,"114":1,"137":1,"153":1,"165":2,"172":1,"205":1,"223":1,"224":1,"254":1},"2":{"19":1,"23":2,"33":1,"34":1,"35":1,"44":1,"45":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"66":3,"67":1,"69":1,"70":2,"91":1,"95":2,"104":1,"106":1,"108":1,"113":2,"124":1,"125":1,"126":1,"137":1,"144":1,"146":1,"153":1,"165":1,"172":1,"179":2,"184":1,"222":3,"224":1,"229":4,"230":1,"261":1}}],["nonebot2",{"2":{"4":2,"10":1}}],["nonebot",{"0":{"3":1},"2":{"1":2,"2":2,"3":1,"10":1,"260":1,"268":3,"275":3,"286":1,"287":4,"290":1}}],["nohup",{"2":{"22":2,"280":1,"281":1}}],["nodes",{"2":{"222":2}}],["node",{"2":{"8":1,"15":1,"222":42}}],["notimplementederror",{"2":{"148":1}}],["not",{"2":{"1":1,"2":1,"4":1,"6":4,"15":2,"21":1,"23":1,"33":1,"66":1,"67":2,"70":4,"76":1,"106":1,"109":3,"111":1,"124":1,"125":1,"126":1,"127":3,"128":3,"139":2,"141":2,"153":2,"172":1,"220":1,"222":8,"229":1,"230":8,"276":3,"287":2}}],["normal>",{"2":{"162":1}}],["normal",{"0":{"12":1,"222":1},"2":{"1":1,"222":1,"224":1}}],["no",{"0":{"127":1,"128":1,"129":1,"195":1,"196":1,"197":1,"198":1,"200":1,"201":1,"203":1,"204":1,"208":1,"209":1,"210":1,"211":1,"212":1,"214":1,"215":1,"216":1,"217":1,"218":1,"225":1,"241":1,"251":1,"252":1,"253":1},"2":{"1":1,"74":1,"75":1,"127":3,"128":3,"129":3,"222":3,"223":1,"224":2,"276":1}}],["nickname",{"2":{"0":1,"1":2,"6":3}}],["ignored",{"0":{"224":1},"2":{"224":7}}],["ignore",{"0":{"106":1,"222":1,"230":1},"2":{"106":3,"222":5,"224":1,"230":5}}],["id仅超级用户可用",{"2":{"295":1}}],["id=user",{"2":{"281":2}}],["id=1234567",{"2":{"295":2}}],["id=123456",{"2":{"281":1}}],["id=self",{"2":{"166":3}}],["id",{"0":{"165":3},"2":{"70":5,"165":9,"166":3,"186":1,"222":6,"281":2,"295":2,"297":1,"303":4}}],["ids",{"2":{"66":2,"70":2}}],["impossible",{"2":{"267":1}}],["import",{"2":{"117":1,"229":1,"268":5,"271":1,"286":2,"287":3,"290":1}}],["implemented",{"2":{"148":1,"268":1}}],["implement",{"2":{"6":1,"268":1}}],["implementation",{"0":{"3":1},"2":{"3":1,"6":4,"8":1}}],["image",{"2":{"13":1,"295":2,"296":1}}],["i",{"2":{"6":2,"174":2,"268":6}}],["icon=f",{"2":{"162":5}}],["icon",{"2":{"1":2,"162":7,"223":1,"224":2}}],["isclass",{"2":{"261":1}}],["iscoroutinefunction",{"2":{"261":2}}],["isroutine",{"2":{"261":1}}],["isfile",{"2":{"230":1,"287":1}}],["isdir",{"2":{"230":2}}],["isinstance",{"2":{"76":1,"123":1,"222":13,"229":1,"268":1}}],["issues",{"2":{"9":2}}],["issue",{"2":{"7":1}}],["is",{"0":{"141":1,"186":1,"201":1,"261":1},"2":{"1":3,"2":1,"3":3,"4":1,"6":2,"12":1,"15":1,"19":1,"20":2,"21":3,"23":1,"33":2,"45":1,"66":6,"67":1,"70":5,"76":1,"78":1,"79":1,"103":2,"104":1,"105":1,"106":1,"107":1,"109":3,"111":1,"113":2,"124":1,"125":1,"126":1,"137":1,"139":1,"141":2,"153":1,"158":1,"165":1,"184":1,"186":1,"222":2,"223":2,"224":1,"229":1,"230":2,"255":1,"261":1,"262":1,"267":2,"268":3,"275":3,"276":12,"277":1}}],["if",{"2":{"1":2,"2":4,"3":1,"6":2,"7":1,"13":2,"15":2,"22":2,"23":1,"33":2,"35":2,"45":1,"66":5,"67":3,"68":1,"70":6,"76":3,"78":1,"79":1,"104":1,"105":1,"106":3,"107":1,"109":5,"111":2,"113":2,"123":1,"124":1,"125":1,"126":1,"127":2,"128":3,"137":1,"139":2,"141":1,"146":1,"153":1,"161":1,"162":5,"165":1,"166":1,"172":1,"174":1,"184":1,"220":1,"221":1,"222":20,"223":10,"224":4,"229":2,"230":9,"261":2,"262":1,"264":1,"273":3,"276":2}}],["inaccessible",{"2":{"276":1}}],["included",{"2":{"275":1}}],["including",{"2":{"15":1}}],["index",{"2":{"223":1,"224":1,"292":1}}],["inherit=",{"2":{"222":1}}],["inherit",{"0":{"212":1},"2":{"223":5}}],["inspect",{"2":{"261":4,"265":1}}],["insert",{"2":{"174":1}}],["instance",{"0":{"113":1,"114":1},"2":{"19":2,"33":4,"67":1,"76":1,"113":5,"116":1}}],["installed",{"2":{"15":1}}],["installation",{"0":{"12":1},"2":{"6":2}}],["install",{"0":{"11":1},"1":{"12":1,"13":1,"14":1,"15":1,"16":1},"2":{"6":3,"12":3,"13":1,"15":2,"294":1,"297":1,"298":1}}],["instead",{"2":{"6":2,"13":1,"35":1}}],["inner",{"2":{"66":2}}],["initialized",{"2":{"33":1,"66":2}}],["initializing",{"2":{"19":1}}],["init",{"0":{"19":1,"24":1,"25":1,"44":1,"66":1,"87":1,"91":1,"95":1,"103":1,"133":1,"135":1,"162":1,"165":1,"170":1,"181":1},"2":{"19":2,"24":2,"25":2,"44":1,"66":1,"87":1,"91":1,"95":1,"103":1,"133":1,"135":1,"162":1,"165":1,"167":1,"170":1,"181":1,"222":1,"224":2,"230":2,"258":1,"264":1,"286":3}}],["introducing",{"2":{"276":1}}],["introduction",{"0":{"267":1}}],["into",{"2":{"273":1}}],["inter",{"2":{"267":1}}],["interpreter",{"2":{"6":1}}],["interpreters",{"2":{"6":2}}],["int=0",{"2":{"22":1,"175":1,"176":1}}],["int",{"0":{"22":1,"170":1,"175":1,"176":1},"2":{"22":1,"44":1,"66":2,"170":1}}],["intact",{"2":{"6":1}}],["invalidgitrepositoryerror",{"2":{"6":1}}],["information",{"2":{"3":1,"274":1}}],["info",{"0":{"222":1,"223":1},"2":{"1":1,"19":1,"20":2,"21":2,"22":1,"162":3,"222":12,"223":5,"224":5,"268":2}}],["in",{"0":{"129":1,"263":1},"2":{"0":3,"1":1,"2":1,"3":2,"6":3,"23":1,"33":1,"35":3,"45":1,"66":5,"69":1,"70":1,"76":1,"77":1,"106":1,"109":3,"110":1,"111":1,"123":2,"127":1,"128":2,"129":1,"136":1,"138":1,"139":1,"140":1,"141":1,"153":1,"155":1,"172":1,"174":1,"176":2,"186":1,"220":1,"221":2,"222":13,"223":9,"224":5,"230":2,"255":2,"259":2,"262":2,"263":1,"267":1,"273":5,"274":2,"275":4,"276":6,"277":1,"287":1}}],["iter",{"2":{"222":2}}],["items",{"2":{"0":1,"6":1,"77":1,"123":2,"220":1,"223":1,"224":1}}],["itself",{"2":{"6":1,"9":1}}],["it",{"2":{"0":1,"2":2,"3":1,"6":5,"12":1,"267":2}}],["r>",{"2":{"229":2}}],["rv",{"2":{"224":2}}],["rk",{"2":{"224":2}}],["rmtree",{"2":{"224":1}}],["rpm",{"2":{"297":5,"298":1}}],["rp",{"2":{"220":4}}],["rpc",{"0":{"89":1,"90":1},"1":{"90":1,"91":2,"92":2},"2":{"88":1}}],["rule=is",{"2":{"256":1,"257":1}}],["rule=empty",{"2":{"175":1,"176":1}}],["rulehandlerfunc",{"0":{"179":1,"181":1},"2":{"181":1}}],["rule",{"0":{"170":2,"175":3,"176":2,"178":1,"180":1,"182":2,"183":2,"185":1,"186":1},"1":{"179":1,"180":1,"181":2,"182":2,"183":2,"184":2,"185":1,"186":1},"2":{"170":5,"172":1,"175":3,"176":5,"178":1,"182":3,"183":3,"184":1,"185":3,"186":2,"256":1,"257":1}}],["runnable",{"2":{"276":1}}],["running",{"2":{"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"66":1,"69":1,"103":2,"262":2,"267":1}}],["runtimeerror",{"2":{"33":2,"67":1,"68":1,"70":1,"109":1,"111":1,"262":1}}],["run",{"0":{"13":1,"20":1,"45":1,"110":1,"155":1,"172":1,"262":1,"263":1},"2":{"0":1,"12":1,"13":2,"15":1,"20":3,"45":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"69":1,"110":1,"111":1,"136":1,"155":2,"172":1,"262":3,"263":1,"290":2}}],["raw",{"0":{"165":1},"2":{"165":3,"166":1,"176":1,"257":1}}],["raise",{"2":{"33":2,"66":3,"67":2,"68":1,"70":1,"76":2,"106":1,"109":1,"111":1,"148":1}}],["rights",{"2":{"36":1,"131":1,"154":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"178":1,"187":1,"228":1,"232":1,"233":1,"256":1,"258":1}}],["root",{"2":{"13":1,"221":2}}],["r",{"2":{"12":1,"15":1,"124":1,"125":1,"126":1,"222":1}}],["revise",{"2":{"276":1}}],["reverse",{"2":{"3":2}}],["readme",{"2":{"224":2}}],["read",{"2":{"222":1,"273":2}}],["reload",{"2":{"295":1,"296":2,"297":1,"298":1}}],["reloading",{"2":{"287":1}}],["related",{"2":{"275":1,"276":1}}],["relative",{"0":{"219":1},"2":{"219":1,"224":1,"225":1,"264":1}}],["rel",{"2":{"224":4,"264":5}}],["relpath",{"2":{"219":1}}],["red>",{"2":{"162":1}}],["remove",{"2":{"162":1}}],["ref",{"0":{"117":1}}],["refer",{"0":{"16":1},"2":{"6":1,"276":1}}],["reference",{"2":{"3":1,"273":1}}],["returns",{"2":{"222":4}}],["return",{"0":{"197":1},"2":{"27":2,"28":2,"29":2,"30":2,"31":2,"32":2,"33":2,"34":2,"35":4,"46":2,"47":2,"48":2,"49":2,"50":2,"51":2,"68":2,"69":2,"70":7,"78":3,"79":3,"92":1,"97":1,"105":3,"107":3,"109":3,"113":1,"123":2,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"139":1,"141":1,"146":3,"153":4,"161":2,"171":3,"172":1,"175":1,"176":2,"182":2,"183":2,"184":2,"185":1,"186":1,"219":1,"221":1,"222":4,"223":4,"227":2,"229":2,"230":1,"231":2,"249":1,"261":4,"264":3,"265":3}}],["reply",{"0":{"166":1},"2":{"166":3,"257":1}}],["replace",{"2":{"13":1,"222":3,"223":4,"224":8}}],["repository",{"2":{"273":7,"275":2,"276":1}}],["repo",{"2":{"13":1}}],["report设定为false",{"2":{"293":1}}],["reports",{"2":{"6":1}}],["report",{"2":{"1":2,"6":2,"293":1}}],["request",{"2":{"273":1}}],["requests",{"2":{"1":1}}],["required",{"2":{"66":1,"276":1}}],["requires",{"2":{"15":1}}],["requirements",{"0":{"15":1},"1":{"16":1},"2":{"12":1,"15":1}}],["restriction",{"2":{"276":1}}],["restarting",{"2":{"22":1}}],["restart",{"0":{"22":1,"23":1,"31":1,"32":1,"50":1,"51":1,"56":1,"57":1},"2":{"0":1,"19":1,"22":3,"23":1,"31":2,"32":2,"44":2,"50":2,"51":2,"56":3,"57":3,"287":2}}],["resource",{"2":{"275":1}}],["resources",{"2":{"275":1,"291":1,"292":1,"296":1}}],["resolve",{"2":{"264":2}}],["reserved",{"2":{"36":1,"131":1,"154":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"178":1,"187":1,"228":1,"232":1,"233":1,"256":1,"258":1}}],["response",{"2":{"6":2}}],["respond",{"2":{"6":1}}],["receiving",{"2":{"268":1}}],["receive",{"0":{"59":1,"60":1,"61":1,"68":1,"69":1,"70":1,"97":1,"100":1,"101":1,"109":3,"110":1,"111":1,"165":1},"2":{"1":1,"61":2,"66":3,"68":2,"69":2,"70":4,"78":1,"79":1,"81":1,"82":2,"83":2,"84":1,"97":1,"100":1,"101":1,"103":2,"105":1,"107":1,"109":11,"110":2,"111":4,"117":1,"118":2,"119":2,"120":2,"121":1,"165":3,"166":3,"268":11}}],["recursive=recursive",{"2":{"153":1}}],["recursive",{"0":{"153":1},"2":{"153":2}}],["recv",{"2":{"66":2,"68":2,"78":5,"79":5,"83":3,"84":3,"95":1,"105":5,"107":5,"118":3,"121":3}}],["recommended",{"0":{"8":1,"9":1},"2":{"3":1,"6":1,"12":1,"14":1,"15":2,"276":1}}],["city",{"2":{"301":1,"302":1}}],["css相对路径引用b中的css",{"2":{"292":1}}],["css",{"2":{"291":1,"292":1}}],["cwd",{"2":{"264":1}}],["cfg",{"2":{"155":4}}],["current|bot",{"2":{"303":1}}],["current|group",{"2":{"303":1}}],["current",{"2":{"146":3,"303":2,"304":1}}],["custom",{"2":{"2":4}}],["customize",{"2":{"2":1}}],["c",{"2":{"36":1,"123":1,"131":1,"154":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"178":1,"187":1,"228":1,"231":1,"232":1,"233":1,"256":1,"258":1,"262":4,"264":2,"304":1}}],["cmd",{"2":{"22":5,"279":2,"280":1}}],["cpu",{"2":{"15":1,"293":1}}],["cd",{"2":{"12":1,"13":1}}],["cls",{"0":{"113":1},"2":{"113":6,"222":1,"223":11}}],["close",{"0":{"98":1},"2":{"98":1,"262":1}}],["closed",{"2":{"66":1,"67":2,"68":2,"95":1}}],["clone",{"2":{"12":2,"13":2}}],["cloning",{"2":{"6":1}}],["classdef",{"2":{"222":3}}],["classes=",{"2":{"222":1}}],["classes",{"0":{"216":1},"2":{"222":1,"223":1}}],["classinfo",{"0":{"207":1,"216":1},"1":{"208":1,"209":1,"210":1,"211":1,"212":1},"2":{"222":1}}],["classmethod",{"0":{"192":1},"2":{"112":1,"113":1,"222":1}}],["class",{"0":{"18":1,"43":1,"65":1,"86":1,"90":1,"94":1,"102":1,"112":1,"132":1,"134":1,"147":1,"157":1,"164":1,"169":1,"180":1,"188":1,"192":1,"194":1,"202":1,"207":1,"213":1,"234":1,"240":1,"248":1},"1":{"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"66":1,"67":1,"68":1,"69":1,"70":1,"87":1,"91":1,"92":1,"95":1,"96":1,"97":1,"98":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1,"113":1,"114":1,"115":1,"133":1,"135":1,"136":1,"137":1,"138":1,"139":1,"140":1,"141":1,"148":1,"149":1,"150":1,"151":1,"152":1,"165":1,"166":1,"170":1,"171":1,"172":1,"181":1,"182":1,"183":1,"184":1,"189":1,"190":1,"191":1,"192":1,"193":1,"195":1,"196":1,"197":1,"198":1,"199":1,"200":1,"201":1,"203":1,"204":1,"205":1,"206":1,"208":1,"209":1,"210":1,"211":1,"212":1,"214":1,"215":1,"216":1,"217":1,"218":1,"235":1,"236":1,"237":1,"238":1,"239":1,"241":1,"242":1,"243":1,"244":1,"245":1,"246":1,"247":1,"249":1,"250":1,"251":1,"252":1,"253":1,"254":1},"2":{"222":24,"223":2}}],["client",{"2":{"8":1}}],["cqhttp",{"2":{"8":1}}],["chinese",{"2":{"275":1}}],["child",{"2":{"222":2,"267":1}}],["chromium",{"2":{"15":1}}],["channel时的通道标识",{"2":{"268":1}}],["channel即可",{"2":{"268":1}}],["channel及passive",{"2":{"268":1}}],["channel函数获取通道对象",{"2":{"268":2}}],["channel=none",{"2":{"166":1}}],["channeldeliver",{"0":{"132":1},"1":{"133":1},"2":{"137":1}}],["channels",{"0":{"77":2,"79":1,"84":1},"2":{"77":4,"79":2,"83":1,"84":3}}],["channel",{"0":{"58":1,"65":1,"71":1,"72":1,"73":1,"74":2,"75":2,"76":3,"77":1,"78":2,"79":1,"80":2,"81":2,"82":1,"83":1,"93":1,"108":1,"109":1,"110":1,"133":8,"165":2,"266":1},"1":{"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"65":1,"66":2,"67":2,"68":2,"69":2,"70":2,"71":1,"72":1,"73":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"81":1,"82":1,"83":1,"84":1,"94":1,"95":1,"96":1,"97":1,"98":1,"267":1,"268":1,"269":1,"270":1,"271":1},"2":{"23":2,"66":7,"67":1,"68":1,"71":3,"72":3,"73":3,"74":2,"75":1,"76":19,"77":5,"78":9,"79":7,"80":3,"81":6,"82":11,"83":7,"84":2,"88":2,"103":4,"105":1,"107":1,"108":4,"109":8,"110":3,"111":2,"133":12,"137":12,"165":4,"166":2,"267":3,"268":14}}],["chan",{"2":{"23":4,"78":5,"79":5,"83":3,"84":3,"103":2,"104":1,"105":6,"106":1,"107":6,"108":1,"111":1,"117":1,"118":5,"119":2,"120":2,"121":4,"137":2,"268":2}}],["changed",{"2":{"287":1}}],["change",{"2":{"12":1,"13":1,"297":1,"298":1}}],["chat",{"2":{"6":1,"7":1,"9":1}}],["checking",{"2":{"274":1}}],["check",{"0":{"66":1},"2":{"1":1,"6":1,"66":8,"67":1}}],["cn",{"0":{"223":1,"224":1},"2":{"2":1,"223":2,"224":1}}],["color",{"2":{"231":7}}],["color=",{"2":{"162":5}}],["colors=true",{"2":{"20":2,"229":3}}],["copy",{"2":{"123":1,"273":1}}],["copyright",{"2":{"36":1,"131":1,"154":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"178":1,"187":1,"228":1,"232":1,"233":1,"256":1,"258":1}}],["count",{"0":{"117":1},"2":{"19":1,"22":2}}],["code插件liteyuki",{"2":{"283":1}}],["code=ast",{"2":{"222":2}}],["codemodifiedhandler",{"0":{"147":1},"1":{"148":1,"149":1,"150":1,"151":1,"152":1},"2":{"153":1}}],["code",{"0":{"199":1},"2":{"15":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"66":1,"67":1,"68":1,"69":1,"70":1,"76":1,"77":1,"78":1,"79":1,"82":1,"83":1,"84":1,"87":1,"91":1,"92":1,"95":1,"96":1,"97":1,"98":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1,"113":1,"118":1,"119":1,"120":1,"121":1,"123":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"133":1,"135":1,"136":1,"137":1,"138":1,"139":1,"140":1,"141":1,"146":1,"148":1,"149":1,"150":1,"151":1,"152":1,"153":4,"155":1,"161":1,"162":1,"165":1,"166":1,"170":1,"171":1,"172":1,"174":1,"175":1,"176":1,"181":1,"182":1,"183":1,"184":1,"185":1,"186":1,"219":1,"220":1,"221":1,"222":1,"223":7,"224":3,"227":1,"229":1,"230":1,"231":1,"249":1,"257":1,"259":1,"261":1,"262":1,"263":1,"264":1,"265":1,"273":2,"274":1,"275":1,"276":6}}],["corresponding",{"2":{"276":1}}],["correct",{"2":{"276":2}}],["correctly",{"2":{"6":2,"276":1}}],["coro",{"0":{"262":1,"263":1},"2":{"262":5,"263":2}}],["coroutine",{"0":{"261":1,"262":2,"263":2,"265":1},"2":{"45":1,"60":1,"63":1,"70":2,"109":1,"179":1,"261":1,"262":2,"263":3,"265":2}}],["core",{"0":{"130":1,"131":1},"1":{"132":1,"133":1,"134":1,"135":1,"136":1,"137":1,"138":1,"139":1,"140":1,"141":1},"2":{"8":1}}],["come",{"2":{"267":1}}],["combined",{"2":{"182":2,"183":2}}],["com",{"2":{"12":1,"13":1,"36":1,"131":1,"154":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"178":1,"187":1,"228":1,"232":1,"233":1,"256":1,"258":1}}],["compat",{"0":{"35":2},"2":{"35":8}}],["completing",{"2":{"276":1}}],["completion",{"2":{"2":2}}],["complete",{"2":{"262":2,"276":1}}],["complies",{"2":{"6":1}}],["computer",{"2":{"6":1}}],["commit",{"2":{"276":6}}],["comment",{"2":{"276":1}}],["communicate",{"2":{"267":1}}],["communication",{"0":{"266":1},"1":{"267":1,"268":1,"269":1,"270":1,"271":1},"2":{"3":1,"267":1}}],["comm",{"0":{"58":1,"85":1,"88":1,"89":1,"93":1,"99":1},"1":{"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"65":1,"66":1,"67":1,"68":1,"69":1,"70":1,"71":1,"72":1,"73":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"81":1,"82":1,"83":1,"84":1,"86":1,"87":1,"90":1,"91":1,"92":1,"94":1,"95":1,"96":1,"97":1,"98":1,"100":1,"101":1,"102":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1},"2":{"268":2,"271":2}}],["command>",{"2":{"280":2}}],["command",{"0":{"295":1},"1":{"296":1},"2":{"1":4,"6":5,"10":1}}],["conditions",{"2":{"276":1}}],["contributions",{"2":{"277":1}}],["content",{"2":{"222":2,"223":17,"224":2,"275":1,"276":1}}],["continue",{"2":{"128":1,"222":1,"224":1,"230":3}}],["container",{"2":{"13":1}}],["contact",{"2":{"6":1,"273":1}}],["conn",{"2":{"66":4,"67":1,"68":1,"95":2}}],["connect",{"2":{"6":1}}],["connected",{"0":{"3":1}}],["convenient",{"2":{"14":1}}],["confirm",{"2":{"6":1}}],["configs",{"0":{"128":1},"2":{"128":1,"129":1}}],["config=self",{"2":{"25":1}}],["configured",{"2":{"3":1}}],["configuration",{"0":{"1":1,"3":1},"2":{"0":5,"1":1,"2":2,"3":1,"6":2}}],["configurations",{"0":{"0":1,"2":1},"1":{"1":1,"2":1,"3":1,"4":1},"2":{"2":1}}],["config",{"0":{"34":1,"35":1,"122":1,"123":2,"129":1,"162":1,"250":1},"1":{"123":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1},"2":{"0":5,"2":2,"19":2,"25":1,"34":2,"35":6,"123":9,"124":6,"125":6,"126":6,"127":7,"128":4,"129":9,"155":1,"162":3,"259":2,"274":1,"295":4,"296":1}}],["conflict",{"2":{"6":1}}],["conflicts",{"2":{"6":1,"12":1,"273":1}}],["console",{"2":{"1":1,"274":1}}],["created",{"0":{"149":1},"2":{"149":1}}],["create",{"2":{"0":1,"12":1,"110":1,"273":2}}],["case",{"2":{"231":4,"273":1}}],["cases",{"2":{"0":1}}],["category",{"2":{"223":1,"224":2}}],["calling",{"0":{"91":2},"2":{"91":4,"92":1}}],["callback",{"0":{"144":1,"153":2},"2":{"70":1,"153":4,"268":1}}],["callable",{"0":{"70":3,"109":1,"153":1,"171":1,"261":2,"265":2},"2":{"37":1,"38":1,"40":1,"41":1,"45":1,"59":1,"60":1,"62":1,"63":1,"70":10,"109":2,"135":1,"144":1,"145":1,"153":1,"171":1,"179":1,"261":2,"265":4}}],["call",{"0":{"92":1,"261":1},"2":{"19":1,"22":2,"92":1,"146":4,"184":1,"261":7,"268":1}}],["cache",{"2":{"13":2}}],["cannot",{"2":{"6":1,"67":1,"68":1,"109":1,"111":1}}],["can",{"2":{"0":2,"4":1,"6":2,"7":1,"12":1,"33":1,"70":1,"267":1,"268":1,"274":1,"276":1}}],["duration>",{"2":{"303":1}}],["duration",{"2":{"303":2,"304":1}}],["during",{"2":{"274":1}}],["duplex",{"2":{"268":1}}],["driver",{"2":{"268":4}}],["d",{"2":{"117":2,"118":4,"119":4,"120":4,"121":2,"264":2,"304":1}}],["data=",{"2":{"166":1}}],["data",{"0":{"67":1,"82":1,"83":1,"84":1,"87":1,"96":1,"108":1,"110":1,"118":1,"119":1,"120":1,"121":1,"165":1,"220":1},"2":{"67":6,"68":2,"69":2,"70":5,"81":2,"82":7,"83":7,"84":4,"87":3,"96":2,"97":1,"108":4,"109":3,"110":3,"111":6,"118":4,"119":3,"120":2,"121":2,"165":5,"220":5,"224":5,"268":7}}],["daemon=true",{"2":{"22":1,"136":1,"263":1}}],["darwin",{"2":{"22":1}}],["day",{"2":{"1":1}}],["dog",{"2":{"286":1,"287":1}}],["double",{"2":{"276":1}}],["dot",{"2":{"222":1}}],["document",{"2":{"276":1}}],["documents",{"2":{"273":1}}],["documentation",{"2":{"6":1,"9":1,"273":1,"275":3,"276":7}}],["docs",{"0":{"224":1},"2":{"224":3,"275":1,"295":1,"296":1}}],["docstring=method",{"2":{"222":1}}],["docstring=module",{"2":{"222":1}}],["docstring=class",{"2":{"222":1}}],["docstring=function",{"2":{"222":1}}],["docstring",{"0":{"198":1,"206":1,"209":1,"218":1},"2":{"222":16,"223":12,"276":2}}],["docker",{"0":{"13":1},"2":{"13":4,"275":2}}],["don",{"2":{"6":1,"7":1,"9":1}}],["download",{"2":{"6":1}}],["does",{"2":{"6":4,"230":1}}],["do",{"2":{"6":1,"15":1,"276":1}}],["did",{"2":{"276":1}}],["diagnose=false",{"2":{"162":1}}],["dict",{"0":{"77":1,"79":1,"82":1,"83":1,"84":1,"87":1,"92":1,"107":1,"118":1,"119":1,"120":1,"121":1,"123":2,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"133":1,"162":1,"165":2,"166":1,"220":1,"227":1,"247":1},"2":{"19":1,"73":1,"75":1,"77":2,"79":3,"82":1,"83":1,"84":1,"87":1,"92":1,"100":1,"101":1,"103":2,"107":3,"118":1,"119":1,"120":1,"121":1,"123":3,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"133":1,"135":3,"162":1,"165":2,"166":1,"220":1,"224":1,"227":2,"229":6}}],["disable",{"2":{"295":1,"296":1,"297":2,"298":2}}],["disk",{"2":{"15":1}}],["display",{"0":{"231":2},"2":{"1":1,"229":7,"231":4}}],["different",{"2":{"3":2,"6":1}}],["dir",{"0":{"224":1,"230":1},"2":{"224":5,"230":16,"259":2}}],["dirname",{"2":{"220":2}}],["directories=",{"2":{"287":1}}],["directories",{"0":{"128":1,"153":1},"2":{"128":2,"153":3,"275":3}}],["directory",{"2":{"0":4,"1":1,"2":1,"12":1,"13":2,"128":6,"153":2,"230":1,"275":11}}],["directly",{"2":{"15":1}}],["direct",{"2":{"6":1,"267":1}}],["dirs",{"0":{"128":1},"2":{"1":1,"128":1,"129":1,"221":1,"259":1}}],["details",{"2":{"276":1}}],["details>",{"2":{"223":4}}],["detailed",{"2":{"2":1,"3":1,"276":1}}],["debounce",{"0":{"146":1},"2":{"146":1,"147":1,"148":1}}],["debugging",{"2":{"274":1}}],["debug",{"2":{"2":2,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"66":2,"124":1,"125":1,"126":1,"136":1,"161":2,"162":2,"287":1}}],["deepcopy",{"2":{"123":1}}],["decorator",{"2":{"70":2,"109":2,"146":2,"153":2,"171":2,"222":13,"268":1}}],["del",{"2":{"106":2}}],["deleted",{"0":{"150":1},"2":{"150":1}}],["delete",{"0":{"106":1,"120":1},"2":{"106":2,"119":1,"120":3}}],["deliver",{"0":{"74":1,"75":1,"80":1,"81":1,"133":2},"2":{"76":1,"78":1,"79":1,"80":1,"81":2,"82":2,"83":2,"84":1,"133":6,"137":6}}],["delivery",{"2":{"4":1,"137":1}}],["delay",{"0":{"22":1},"2":{"22":3}}],["deftype",{"0":{"188":1,"200":1},"1":{"189":1,"190":1,"191":1,"192":1,"193":1},"2":{"222":4,"223":1}}],["def",{"2":{"21":1,"45":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"69":1,"70":2,"82":1,"83":1,"84":1,"109":2,"110":1,"111":1,"113":1,"118":1,"119":1,"120":1,"121":1,"146":2,"148":1,"153":2,"171":1,"172":1,"176":1,"182":1,"183":1,"184":1,"185":1,"186":1,"222":4,"223":2,"257":1,"265":1,"268":3,"287":1}}],["defaults",{"2":{"22":1,"23":1,"34":1,"35":1,"70":1}}],["default",{"0":{"34":1,"35":1,"105":1,"129":1,"195":1,"196":1,"197":1,"198":1,"200":1,"201":1,"203":1,"204":1,"208":1,"209":1,"210":1,"211":1,"212":1,"214":1,"215":1,"216":1,"217":1,"218":1,"241":1,"251":1,"252":1,"253":1,"259":1},"2":{"1":1,"2":3,"3":1,"34":3,"35":3,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"71":1,"72":1,"73":1,"74":2,"75":2,"80":1,"81":1,"100":1,"101":1,"105":5,"116":1,"117":1,"118":3,"129":1,"144":1,"145":1,"155":1,"159":1,"161":1,"179":1,"225":1,"259":1}}],["deprecated",{"2":{"35":1}}],["depth=1",{"2":{"12":1,"13":1}}],["deploy",{"2":{"6":1}}],["depend",{"2":{"15":1}}],["dependency",{"2":{"12":1}}],["dependencies",{"2":{"12":1,"15":1}}],["depends",{"2":{"3":1,"15":1}}],["depending",{"2":{"0":1}}],["description=",{"2":{"286":1}}],["description",{"0":{"242":1},"2":{"3":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"66":1,"67":1,"68":1,"69":1,"70":1,"71":1,"72":1,"73":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"81":1,"92":1,"95":1,"96":1,"97":1,"98":1,"100":1,"101":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1,"116":1,"117":1,"123":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"136":1,"137":1,"139":1,"141":1,"144":1,"145":1,"146":1,"153":1,"155":1,"159":1,"162":1,"165":1,"166":1,"170":1,"171":1,"172":1,"179":1,"219":1,"220":1,"222":1,"223":1,"224":1,"225":1,"227":1,"229":1,"230":1,"231":1,"259":1,"261":1,"262":1,"263":1,"264":1,"265":1,"276":1,"292":1}}],["device",{"0":{"15":1},"1":{"16":1},"2":{"15":1}}],["developer",{"2":{"274":1,"286":1}}],["developers",{"2":{"9":1}}],["developing",{"2":{"273":2}}],["develop",{"0":{"273":1},"1":{"274":1},"2":{"9":1,"273":1,"275":2}}],["development",{"0":{"272":1},"1":{"273":1,"274":1,"275":1,"276":1,"277":1},"2":{"2":3,"273":2,"274":1,"276":1,"277":1}}],["dev",{"0":{"142":1,"143":1,"154":1},"1":{"144":1,"145":1,"146":1,"147":1,"148":1,"149":1,"150":1,"151":1,"152":1,"153":1,"155":1},"2":{"2":1,"274":1,"287":1,"290":1}}],["two",{"2":{"268":1}}],["target",{"0":{"137":3,"219":1},"2":{"137":5,"219":3,"222":5}}],["target=run",{"2":{"263":1}}],["target=self",{"2":{"136":1}}],["target=os",{"2":{"22":1}}],["targets",{"2":{"135":1,"136":1,"137":1,"138":1,"140":1,"141":1,"222":2}}],["task",{"2":{"110":1,"136":1}}],["tasks",{"2":{"45":2}}],["types",{"0":{"250":1}}],["type=plugintype",{"2":{"286":1}}],["type=attr",{"2":{"222":1}}],["type=ast",{"2":{"222":3}}],["type=def",{"2":{"222":1}}],["type=deftype",{"2":{"222":1}}],["type=self",{"2":{"166":2}}],["typeerror",{"2":{"66":1,"67":1,"76":1}}],["typealias",{"2":{"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"144":1,"145":1,"179":1}}],["type",{"0":{"66":1,"165":2,"197":1,"200":1,"204":1,"231":1,"244":1},"2":{"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"66":11,"67":7,"71":1,"72":1,"73":1,"74":1,"75":1,"76":1,"100":1,"101":1,"116":1,"144":1,"145":1,"165":6,"166":2,"179":1,"222":11,"223":13,"229":2,"231":4,"276":5}}],["tuple=",{"2":{"137":1}}],["tuplestr",{"2":{"35":1}}],["tuple",{"0":{"35":1,"82":1,"83":1,"84":1,"92":1,"118":1,"119":1,"120":1,"121":1,"133":2,"137":1,"153":1,"196":1},"2":{"35":1,"73":1,"75":1,"82":1,"83":1,"84":1,"92":1,"103":3,"118":1,"119":1,"120":1,"121":1,"133":2,"135":2,"153":1}}],["tests",{"2":{"275":1}}],["test",{"0":{"239":2},"2":{"231":1,"275":1}}],["text",{"2":{"223":3}}],["terminated",{"2":{"139":1}}],["terminate",{"0":{"139":1,"140":1},"2":{"22":1,"26":1,"139":2,"140":2}}],["telegram",{"2":{"6":1}}],["title",{"2":{"224":2}}],["time>",{"2":{"280":1}}],["timeout",{"2":{"139":1}}],["time",{"2":{"22":1,"36":1,"131":1,"146":9,"154":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"178":1,"187":1,"228":1,"232":1,"233":1,"256":1,"258":1}}],["tip",{"2":{"12":1,"13":1,"283":1,"292":1,"294":1}}],["txt",{"2":{"12":1,"15":1}}],["transfer",{"2":{"267":1}}],["traceback",{"2":{"172":1,"229":1}}],["tree",{"2":{"222":3}}],["try",{"2":{"20":1,"21":1,"106":1,"172":1,"229":1,"262":1}}],["trss",{"0":{"14":1},"2":{"8":1,"14":1}}],["true时例如docs",{"2":{"224":1}}],["true",{"0":{"106":1,"153":1,"222":1,"230":1,"250":1},"2":{"1":3,"2":4,"6":1,"68":1,"111":1,"162":1,"184":1,"185":1,"224":1,"268":2,"274":1}}],["t",{"0":{"65":1,"67":1,"68":1,"69":1,"70":2},"1":{"66":1,"67":1,"68":1,"69":1,"70":1},"2":{"6":1,"7":1,"9":1,"13":1,"33":1,"59":1,"60":1,"62":1,"63":1,"67":2,"68":2,"69":2,"70":7}}],["through",{"2":{"267":2}}],["thread",{"0":{"263":1},"2":{"22":1,"136":1,"263":2}}],["threading",{"0":{"115":1},"2":{"19":1,"22":1,"136":1,"263":1}}],["that",{"2":{"6":2,"267":1,"268":1,"273":2,"276":7}}],["this",{"2":{"6":3,"158":1,"255":1,"273":1,"275":2,"277":1}}],["then",{"2":{"6":1,"12":1}}],["therefore",{"2":{"267":1}}],["there",{"2":{"1":1,"6":1,"15":1,"276":2}}],["these",{"2":{"0":1,"275":1}}],["the",{"2":{"0":6,"1":1,"2":4,"3":6,"4":2,"6":20,"9":2,"10":3,"12":3,"13":2,"15":4,"158":1,"229":1,"255":1,"267":1,"268":2,"273":10,"274":1,"275":6,"276":24}}],["tokyo",{"2":{"301":1}}],["token",{"2":{"2":2}}],["together",{"2":{"276":1}}],["top",{"0":{"224":1},"2":{"224":3}}],["tools",{"2":{"274":1}}],["too",{"2":{"6":1}}],["to",{"0":{"3":1,"16":1,"220":1,"264":1,"273":1},"1":{"274":1},"2":{"0":1,"1":6,"2":3,"3":2,"4":1,"6":17,"12":6,"13":1,"14":2,"15":5,"22":1,"23":1,"34":1,"35":1,"67":1,"70":1,"220":1,"224":1,"229":5,"230":2,"255":1,"264":2,"267":3,"268":2,"273":5,"274":1,"276":7,"277":1}}],["toml",{"0":{"126":1},"2":{"0":2,"126":4,"127":2,"129":1}}],["world",{"2":{"279":5}}],["w",{"2":{"220":1}}],["write",{"0":{"220":1},"2":{"220":2,"224":1}}],["wrapper",{"0":{"265":1},"2":{"45":1,"70":2,"109":4,"137":1,"146":2,"153":2,"265":4}}],["watchdog",{"2":{"287":1,"290":1}}],["watch",{"2":{"286":1,"287":1}}],["walk",{"2":{"221":1,"222":1}}],["wait",{"0":{"146":1},"2":{"146":2}}],["waring=no",{"2":{"129":1}}],["waring",{"0":{"128":1,"129":1},"2":{"128":3,"129":3}}],["warning=no",{"2":{"128":1,"129":1}}],["warning",{"0":{"127":1,"230":1},"2":{"15":2,"35":1,"127":5,"128":1,"139":1,"141":1,"162":2,"229":1,"230":8,"283":1,"298":1}}],["way",{"2":{"14":1}}],["want",{"2":{"1":1}}],["weather",{"0":{"301":1},"1":{"302":1},"2":{"301":1,"302":1}}],["welcome",{"2":{"277":1}}],["we",{"2":{"9":1,"276":1,"277":1}}],["websocket",{"2":{"3":2}}],["windows10+",{"2":{"15":1}}],["windows",{"2":{"13":1,"15":2,"22":1}}],["without",{"2":{"15":1}}],["with",{"0":{"13":1,"35":1,"224":1},"2":{"6":2,"13":1,"35":1,"104":1,"105":1,"106":1,"113":1,"220":1,"222":1,"223":5,"224":3,"267":1,"268":1,"273":2}}],["will",{"2":{"0":3,"2":3,"6":1,"15":2,"35":1,"277":1}}],["what",{"2":{"276":1}}],["while",{"2":{"21":1,"68":1,"111":1,"268":2}}],["which",{"2":{"6":2,"14":1}}],["why",{"2":{"6":1}}],["where",{"2":{"276":1}}],["whether",{"2":{"1":3,"2":1}}],["when",{"2":{"0":2,"276":2}}],["ws",{"2":{"3":2}}],["poke",{"2":{"281":4}}],["possible",{"2":{"276":3}}],["port",{"2":{"1":2,"13":2}}],["pep8",{"2":{"276":1}}],["period\`",{"2":{"304":1}}],["period>",{"2":{"303":1}}],["period",{"2":{"303":2}}],["permit",{"2":{"276":1}}],["permission",{"2":{"6":1}}],["persists",{"2":{"6":1}}],["personal",{"2":{"0":1,"273":1}}],["pull",{"2":{"273":1}}],["publish=publish",{"2":{"137":1}}],["publish",{"0":{"73":1,"108":1,"133":1},"2":{"73":1,"103":2,"108":2,"111":2,"133":3}}],["pwd",{"2":{"13":3}}],["p",{"2":{"13":1,"304":1}}],["pipe",{"2":{"66":2}}],["pip",{"2":{"12":1,"15":1,"229":1}}],["py即可启动插件",{"2":{"290":1}}],["pyo",{"2":{"287":1}}],["pycache",{"2":{"287":1}}],["pyc",{"2":{"287":1}}],["pycharm",{"2":{"36":1,"131":1,"154":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"178":1,"187":1,"228":1,"232":1,"233":1,"256":1,"258":1}}],["py文件",{"2":{"286":1}}],["py文件或一个包含",{"2":{"286":1}}],["py的文件夹即可被识别为插件",{"2":{"286":1}}],["pyfile",{"0":{"225":1},"2":{"224":8,"225":1}}],["pyi",{"2":{"221":1,"222":1}}],["py",{"2":{"6":1,"12":1,"36":1,"131":1,"154":1,"160":1,"163":1,"167":2,"168":1,"173":1,"177":1,"178":1,"187":1,"221":1,"222":1,"224":1,"228":1,"230":3,"232":1,"233":1,"256":1,"258":2,"271":1,"275":1,"286":1,"287":1,"290":2,"292":1}}],["python格式",{"2":{"279":1}}],["pythonfrom",{"2":{"268":1,"271":1,"286":1,"290":1}}],["pythonimport",{"2":{"268":1,"287":1}}],["pythonasync",{"2":{"21":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"69":1,"111":1,"172":1,"184":1}}],["pythondef",{"2":{"19":1,"20":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"44":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"66":1,"67":1,"68":1,"70":1,"76":1,"77":1,"78":1,"79":1,"87":1,"91":1,"92":1,"95":1,"96":1,"97":1,"98":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"123":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"133":1,"135":1,"136":1,"137":1,"138":1,"139":1,"140":1,"141":1,"146":1,"149":1,"150":1,"151":1,"152":1,"153":1,"155":1,"161":1,"162":1,"165":1,"166":1,"170":1,"171":1,"174":1,"175":1,"176":1,"181":1,"182":1,"183":1,"219":1,"220":1,"221":1,"222":1,"223":1,"224":1,"227":1,"229":1,"230":1,"231":1,"249":1,"259":1,"261":1,"262":1,"263":1,"264":1,"265":1}}],["python3",{"2":{"12":1,"15":1}}],["python",{"2":{"6":5,"12":2,"15":3,"45":1,"82":1,"83":1,"84":1,"110":1,"113":1,"118":1,"119":1,"120":1,"121":1,"148":1,"185":1,"186":1,"222":1,"257":1,"273":1,"276":1}}],["page为页数",{"2":{"297":2}}],["page",{"2":{"297":2}}],["pacman",{"0":{"297":1},"1":{"298":1}}],["pack",{"2":{"292":2,"297":3}}],["packs",{"2":{"275":1}}],["param",{"2":{"294":1}}],["participate",{"2":{"277":1}}],["participation",{"2":{"273":1}}],["part",{"2":{"275":1,"276":1}}],["parts",{"2":{"264":2}}],["parent",{"2":{"222":4}}],["parse",{"2":{"222":1,"276":1}}],["parser",{"2":{"10":1}}],["parsed",{"2":{"6":1}}],["parsing",{"2":{"1":1}}],["pass",{"2":{"96":1,"97":1,"98":1}}],["passive=channel",{"2":{"137":1}}],["passive=chan",{"2":{"137":1}}],["passive",{"0":{"72":1,"75":1,"81":1,"133":2},"2":{"72":1,"76":1,"78":1,"79":1,"81":2,"82":2,"83":2,"84":1,"103":2,"104":1,"105":1,"106":1,"107":1,"117":1,"118":2,"119":2,"120":2,"121":1,"133":6,"137":5,"268":15}}],["pathlib",{"2":{"229":1}}],["paths=none",{"2":{"224":1}}],["paths",{"0":{"224":1},"2":{"224":4}}],["path=dot",{"2":{"222":1}}],["path",{"0":{"155":2,"214":1,"219":3,"222":1,"225":1,"229":2,"264":3},"2":{"6":2,"13":1,"15":3,"127":1,"128":2,"155":4,"219":8,"220":3,"221":1,"222":6,"224":22,"225":2,"229":16,"230":26,"264":11,"287":5}}],["platform",{"2":{"22":3}}],["platforms",{"2":{"6":1}}],["playwright",{"2":{"6":2}}],["plugintype",{"0":{"231":1,"234":1,"244":2},"1":{"235":1,"236":1,"237":1,"238":1,"239":1},"2":{"231":5,"286":1}}],["pluginmetadata",{"0":{"240":1,"254":1},"1":{"241":1,"242":1,"243":1,"244":1,"245":1,"246":1,"247":1},"2":{"229":4,"286":2}}],["plugin的函数签名",{"2":{"155":1}}],["plugin",{"0":{"154":1,"226":1,"227":1,"228":1,"229":2,"230":2,"231":1,"232":1,"233":1,"248":1,"258":1},"1":{"155":1,"227":1,"229":1,"230":1,"231":1,"234":1,"235":1,"236":1,"237":1,"238":1,"239":1,"240":1,"241":1,"242":1,"243":1,"244":1,"245":1,"246":1,"247":1,"248":1,"249":2,"250":2,"251":2,"252":2,"253":2,"254":2,"259":1},"2":{"1":3,"4":1,"6":3,"8":1,"10":1,"19":2,"154":1,"227":2,"229":14,"230":5,"231":4,"255":1,"259":6,"267":1,"273":2,"275":3,"286":4,"289":1,"290":2,"297":5}}],["plugins下创建一个文件",{"2":{"290":1}}],["plugins中添加你的插件路径",{"2":{"289":1}}],["plugins",{"0":{"155":1,"227":1,"230":1,"255":1,"256":1,"258":1,"259":1},"1":{"257":1,"259":1},"2":{"1":1,"2":2,"6":2,"15":3,"19":1,"155":6,"227":2,"229":3,"230":9,"255":1,"259":4,"275":5,"287":1,"290":2}}],["please",{"0":{"16":1},"2":{"1":2,"2":1,"3":2,"6":4,"9":1,"13":2,"15":1,"273":3,"275":2,"276":2}}],["private",{"0":{"222":1},"2":{"222":5}}],["priority",{"0":{"170":1,"175":1,"176":1},"2":{"170":4,"174":2,"175":2,"176":2}}],["prioritize",{"2":{"9":1}}],["print",{"2":{"19":1,"172":1,"224":1,"229":1}}],["profile",{"2":{"299":4}}],["profit",{"2":{"277":1}}],["property",{"0":{"193":2},"2":{"222":2}}],["provides",{"2":{"10":3,"14":1,"267":1}}],["provided",{"2":{"3":1,"6":1}}],["problematic",{"2":{"6":1}}],["problem",{"2":{"6":1}}],["problems",{"2":{"1":1}}],["processmanager",{"0":{"134":1},"1":{"135":1,"136":1,"137":1,"138":1,"139":1,"140":1,"141":1},"2":{"19":2}}],["process",{"0":{"23":1,"30":2,"31":3,"40":1,"41":1,"42":1,"45":1,"48":3,"50":3,"54":1,"56":1,"141":1},"2":{"19":1,"20":1,"22":1,"23":4,"26":1,"30":5,"31":6,"33":2,"42":2,"44":4,"45":2,"48":6,"50":6,"54":2,"56":2,"66":4,"70":3,"76":1,"78":1,"79":1,"104":1,"105":1,"106":1,"107":1,"109":3,"111":2,"135":1,"136":2,"138":2,"139":7,"141":2,"267":2,"268":8,"287":2}}],["processes",{"2":{"6":1,"15":1,"23":1,"135":1,"139":2,"141":1,"267":4}}],["processing",{"2":{"6":1}}],["protocol",{"2":{"3":1,"6":1,"8":6}}],["production",{"2":{"3":1}}],["project",{"0":{"275":1},"2":{"0":1,"6":2,"9":2,"12":1,"13":1,"275":1,"277":2}}],["prefix",{"2":{"1":1}}],["preference",{"2":{"0":1}}],["y",{"2":{"231":1}}],["yellow>",{"2":{"162":1}}],["y>",{"2":{"20":2}}],["y>liteyuki",{"2":{"20":2}}],["yunzai",{"2":{"8":1}}],["yml格式的所有合法内容",{"2":{"295":1}}],["yml文件",{"2":{"292":1}}],["yml中填写一些信息",{"2":{"292":1}}],["yml",{"2":{"0":2,"127":1,"129":1,"274":1,"292":2,"295":1}}],["you",{"2":{"0":4,"1":1,"2":1,"3":1,"4":1,"6":6,"7":2,"12":1,"13":2,"15":2,"267":1,"273":5,"274":1,"276":2}}],["your",{"2":{"0":1,"13":1,"15":1,"229":2,"273":6,"277":1}}],["yamlweather",{"2":{"301":1}}],["yamlname",{"2":{"292":1}}],["yaml",{"0":{"124":1},"2":{"0":2,"1":1,"2":2,"124":4,"127":2,"129":1}}],["a包中的index",{"2":{"292":1}}],["application",{"0":{"235":2},"2":{"231":1,"275":4}}],["append",{"2":{"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"70":2,"109":2,"171":1,"174":1,"221":1,"222":5}}],["api格式为onebot",{"2":{"295":1}}],["api文档",{"2":{"282":1}}],["api也有差别",{"2":{"282":1}}],["api",{"0":{"282":1},"2":{"224":6,"273":1,"280":3,"281":2,"295":3}}],["awaitable",{"2":{"38":1,"41":1}}],["await",{"2":{"21":1,"45":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"69":1,"70":2,"109":1,"111":2,"172":2,"182":2,"183":2,"184":1,"268":1,"280":1,"281":1,"283":1}}],["arbitrary",{"0":{"250":1}}],["arg",{"2":{"222":13,"223":16}}],["argv",{"2":{"22":1}}],["args=coro",{"2":{"263":1}}],["args=",{"2":{"22":1,"136":1,"222":2}}],["args",{"0":{"24":1,"45":1,"54":1,"56":1,"92":1,"137":1,"196":1},"2":{"22":2,"24":2,"45":3,"54":2,"56":2,"92":2,"137":3,"146":2,"222":8,"223":8,"265":2,"295":4}}],["arguments",{"2":{"19":1,"22":1,"23":1,"24":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"34":1,"35":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"66":1,"67":1,"70":1,"76":1,"77":1,"78":1,"95":1,"96":1,"104":1,"105":1,"106":1,"108":1,"109":1,"110":1,"123":1,"137":1,"139":1,"141":1,"153":1,"155":1,"166":1,"170":1,"172":1,"219":1,"220":1,"222":1,"223":1,"224":1,"229":1,"230":1,"231":1,"261":1,"262":1,"263":1,"264":1,"265":1}}],["arch",{"2":{"14":1}}],["are",{"2":{"1":1,"6":2,"13":1,"15":1,"267":1,"273":4,"275":1,"276":2}}],["abs",{"2":{"224":4}}],["absolute",{"2":{"13":1}}],["able",{"2":{"15":1}}],["about",{"2":{"6":1}}],["active和",{"2":{"268":1}}],["active和chan",{"2":{"137":1}}],["active=channel",{"2":{"137":1}}],["active=chan",{"2":{"137":1}}],["active",{"0":{"71":1,"74":1,"80":1,"133":2},"2":{"23":6,"71":1,"80":1,"103":2,"108":1,"111":1,"133":6,"137":4,"268":13}}],["activate",{"2":{"12":4}}],["acknowledgements",{"0":{"10":1}}],["account",{"2":{"7":1,"273":1}}],["according",{"2":{"6":1}}],["accesstoken",{"2":{"3":2}}],["access",{"2":{"2":2}}],["author",{"0":{"245":1},"2":{"6":1,"36":1,"131":1,"154":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"178":1,"187":1,"228":1,"232":1,"233":1,"256":1,"258":1}}],["auto",{"2":{"1":2,"2":2}}],["automatically",{"2":{"0":1,"1":2}}],["after",{"0":{"28":1,"29":1,"32":1,"47":1,"49":1,"51":1,"53":1,"55":1,"57":1},"2":{"6":2,"28":2,"29":2,"32":2,"44":3,"47":2,"49":2,"51":2,"53":3,"55":3,"57":3,"268":1,"276":1}}],["avoid",{"2":{"6":1,"12":1}}],["available",{"2":{"1":1}}],["a",{"2":{"3":1,"6":4,"7":1,"8":3,"9":1,"12":2,"14":1,"67":1,"68":1,"123":1,"224":2,"230":1,"264":1,"267":1,"268":1,"273":4,"276":4,"277":1,"286":1}}],["annassign",{"2":{"222":1}}],["annotation",{"2":{"222":6}}],["an",{"2":{"6":1,"7":1,"67":1,"76":1}}],["anyone",{"2":{"277":1}}],["any=none",{"2":{"34":1,"35":1}}],["any",{"0":{"34":2,"35":2,"70":2,"82":1,"83":1,"84":1,"87":1,"92":1,"104":1,"105":2,"107":1,"108":1,"110":1,"118":1,"119":1,"120":1,"121":1,"123":2,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"133":4,"152":1,"165":2,"166":1,"205":1,"247":1,"261":1,"265":1},"2":{"2":1,"4":1,"19":1,"34":3,"35":3,"37":1,"38":1,"40":1,"41":1,"59":1,"60":3,"63":2,"70":7,"73":1,"74":1,"75":1,"78":1,"79":1,"82":1,"83":1,"84":1,"87":1,"92":1,"103":3,"104":1,"105":4,"107":3,"108":1,"109":1,"110":1,"118":1,"119":1,"120":1,"121":1,"123":2,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"133":4,"152":1,"165":2,"166":1,"176":1,"222":7,"224":1,"261":1,"265":1}}],["and",{"2":{"0":6,"4":1,"6":7,"9":1,"12":2,"15":2,"67":1,"153":1,"183":2,"222":7,"223":1,"230":3,"267":3,"268":2,"273":4,"274":2,"275":2,"276":9,"277":1,"287":2}}],["adapter",{"2":{"3":1,"4":2}}],["advanced",{"2":{"2":1}}],["addition",{"2":{"276":1}}],["add",{"0":{"137":1,"174":1},"2":{"2":1,"137":1,"162":1,"174":1,"175":1,"230":1,"276":1}}],["address",{"2":{"1":1,"3":2}}],["amp",{"0":{"183":1},"2":{"13":2}}],["am",{"2":{"1":1,"268":6}}],["attributes=",{"2":{"222":2}}],["attributes",{"0":{"211":1,"217":1},"2":{"222":2,"223":2}}],["attributeinfo",{"0":{"202":1,"211":1,"217":1},"1":{"203":1,"204":1,"205":1,"206":1},"2":{"222":2}}],["attr",{"0":{"114":1,"115":1,"189":1,"190":1,"191":1,"192":1,"193":1,"195":1,"196":1,"197":1,"198":1,"199":1,"200":1,"201":1,"203":1,"204":1,"205":1,"206":1,"208":1,"209":1,"210":1,"211":1,"212":1,"214":1,"215":1,"216":1,"217":1,"218":1,"235":1,"236":1,"237":1,"238":1,"239":1,"241":1,"242":1,"243":1,"244":1,"245":1,"246":1,"247":1,"250":1,"251":1,"252":1,"253":1,"254":1},"2":{"222":2,"223":14}}],["at",{"2":{"1":1,"15":2}}],["already",{"2":{"66":2,"76":1,"273":1}}],["alive",{"0":{"21":1,"141":1},"2":{"21":2,"139":1,"141":2}}],["alconna",{"2":{"1":2,"2":2,"10":1}}],["allowed",{"0":{"250":1}}],["allow",{"2":{"2":2}}],["all",{"0":{"107":1,"121":1,"136":1,"138":1,"140":1},"2":{"0":1,"2":1,"20":1,"22":1,"26":1,"36":1,"107":2,"120":1,"121":3,"131":1,"136":1,"138":1,"140":1,"154":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"178":1,"187":1,"228":1,"232":1,"233":1,"256":1,"258":1}}],["assumes",{"2":{"273":1}}],["assign",{"2":{"222":2}}],["ast",{"2":{"222":29}}],["asynchronous",{"2":{"265":1}}],["async=isinstance",{"2":{"222":2}}],["asyncfunctiondef",{"2":{"222":3}}],["async",{"0":{"21":1,"38":1,"41":1,"45":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"60":1,"63":1,"69":2,"110":1,"111":1,"172":1,"184":1,"185":1,"186":1,"201":1,"257":1,"265":1},"2":{"39":1,"42":1,"45":3,"61":1,"64":1,"69":1,"70":1,"100":1,"101":1,"109":1,"110":1,"111":1,"176":1,"182":1,"183":1,"185":1,"186":1,"223":4,"257":1,"265":2,"268":2}}],["asyncio",{"2":{"19":2,"20":1,"21":1,"45":1,"69":1,"110":1,"262":5,"268":2}}],["ask",{"2":{"9":1}}],["asked",{"0":{"6":1}}],["as",{"2":{"0":1,"3":1,"6":2,"106":1,"220":1,"222":1,"229":1,"262":1,"274":1,"276":6}}]],"serializationVersion":2}`;export{e as default}; diff --git a/assets/chunks/@localSearchIndexroot.Bun9D1Sr.js b/assets/chunks/@localSearchIndexroot.Bun9D1Sr.js deleted file mode 100644 index 4c212f74..00000000 --- a/assets/chunks/@localSearchIndexroot.Bun9D1Sr.js +++ /dev/null @@ -1 +0,0 @@ -const e=`{"documentCount":305,"nextId":305,"documentIds":{"0":"/deploy/config.html#配置","1":"/deploy/config.html#基础配置项","2":"/deploy/config.html#其他配置","3":"/deploy/config.html#示例-与nonebot对接的onebot实现端配置","4":"/deploy/config.html#其他","5":"/deploy/fandq.html#答疑","6":"/deploy/fandq.html#常见问题","7":"/deploy/fandq.html#其他问题","8":"/deploy/fandq.html#推荐方案-qq","9":"/deploy/fandq.html#推荐方案-minecraft","10":"/deploy/fandq.html#鸣谢","11":"/deploy/install.html#安装","12":"/deploy/install.html#常规部署","13":"/deploy/install.html#使用docker构建","14":"/deploy/install.html#使用trss-scripts部署","15":"/deploy/install.html#装置要求","16":"/deploy/install.html#其他问题请移步至答疑","17":"/dev/api/bot/#模块-liteyuki-bot","18":"/dev/api/bot/#class-liteyukibot","19":"/dev/api/bot/#func-init-self-kwargs-none","20":"/dev/api/bot/#func-run-self","21":"/dev/api/bot/#async-func-keep-alive-self","22":"/dev/api/bot/#func-restart-self-delay-int-0","23":"/dev/api/bot/#func-restart-process-self-name-optional-str-none","24":"/dev/api/bot/#func-init-self-args-kwargs","25":"/dev/api/bot/#func-init-logger-self","26":"/dev/api/bot/#func-stop-self","27":"/dev/api/bot/#func-on-before-start-self-func-lifespan-func-lifespan-func","28":"/dev/api/bot/#func-on-after-start-self-func-lifespan-func","29":"/dev/api/bot/#func-on-after-shutdown-self-func-lifespan-func","30":"/dev/api/bot/#func-on-before-process-shutdown-self-func-process-lifespan-func","31":"/dev/api/bot/#func-on-before-process-restart-self-func-process-lifespan-func-process-lifespan-func","32":"/dev/api/bot/#func-on-after-restart-self-func-lifespan-func","33":"/dev/api/bot/#func-get-bot-liteyukibot","34":"/dev/api/bot/#func-get-config-key-str-default-any-none-any","35":"/dev/api/bot/#func-get-config-with-compat-key-str-compat-keys-tuple-str-default-any-none-any","36":"/dev/api/bot/lifespan.html#模块-liteyuki-bot-lifespan","37":"/dev/api/bot/lifespan.html#var-sync-lifespan-func","38":"/dev/api/bot/lifespan.html#var-async-lifespan-func","39":"/dev/api/bot/lifespan.html#var-lifespan-func","40":"/dev/api/bot/lifespan.html#var-sync-process-lifespan-func","41":"/dev/api/bot/lifespan.html#var-async-process-lifespan-func","42":"/dev/api/bot/lifespan.html#var-process-lifespan-func","43":"/dev/api/bot/lifespan.html#class-lifespan","44":"/dev/api/bot/lifespan.html#func-init-self-none","45":"/dev/api/bot/lifespan.html#async-func-run-funcs-funcs-sequence-lifespan-func-process-lifespan-func-args-kwargs-none","46":"/dev/api/bot/lifespan.html#func-on-before-start-self-func-lifespan-func-lifespan-func","47":"/dev/api/bot/lifespan.html#func-on-after-start-self-func-lifespan-func-lifespan-func","48":"/dev/api/bot/lifespan.html#func-on-before-process-shutdown-self-func-process-lifespan-func-process-lifespan-func","49":"/dev/api/bot/lifespan.html#func-on-after-shutdown-self-func-lifespan-func-lifespan-func","50":"/dev/api/bot/lifespan.html#func-on-before-process-restart-self-func-process-lifespan-func-process-lifespan-func","51":"/dev/api/bot/lifespan.html#func-on-after-restart-self-func-lifespan-func-lifespan-func","52":"/dev/api/bot/lifespan.html#async-func-before-start-self-none","53":"/dev/api/bot/lifespan.html#async-func-after-start-self-none","54":"/dev/api/bot/lifespan.html#async-func-before-process-shutdown-self-args-kwargs-none","55":"/dev/api/bot/lifespan.html#async-func-after-shutdown-self-none","56":"/dev/api/bot/lifespan.html#async-func-before-process-restart-self-args-kwargs-none","57":"/dev/api/bot/lifespan.html#async-func-after-restart-self-none","58":"/dev/api/comm/event.html#模块-liteyuki-comm-event","59":"/dev/api/comm/event.html#class-event","60":"/dev/api/comm/event.html#func-init-self-name-str-data-dict-str-any","61":"/dev/api/comm/#模块-liteyuki-comm","62":"/dev/api/comm/channel.html#模块-liteyuki-comm-channel","63":"/dev/api/comm/channel.html#var-sync-on-receive-func","64":"/dev/api/comm/channel.html#var-async-on-receive-func","65":"/dev/api/comm/channel.html#var-on-receive-func","66":"/dev/api/comm/channel.html#var-sync-filter-func","67":"/dev/api/comm/channel.html#var-async-filter-func","68":"/dev/api/comm/channel.html#var-filter-func","69":"/dev/api/comm/channel.html#class-channel-generic-t","70":"/dev/api/comm/channel.html#func-init-self-name-str-type-check-optional-bool-none","71":"/dev/api/comm/channel.html#func-send-self-data-t","72":"/dev/api/comm/channel.html#func-receive-self-t","73":"/dev/api/comm/channel.html#async-func-async-receive-self-t","74":"/dev/api/comm/channel.html#func-on-receive-self-filter-func-optional-filter-func-none-callable-callable-t-any-callable-t-any","75":"/dev/api/comm/channel.html#var-active-channel","76":"/dev/api/comm/channel.html#var-passive-channel","77":"/dev/api/comm/channel.html#var-publish-channel","78":"/dev/api/comm/channel.html#var-channel-deliver-active-channel","79":"/dev/api/comm/channel.html#var-channel-deliver-passive-channel","80":"/dev/api/comm/channel.html#func-set-channel-name-str-channel-channel","81":"/dev/api/comm/channel.html#func-set-channels-channels-dict-str-channel","82":"/dev/api/comm/channel.html#func-get-channel-name-str-channel","83":"/dev/api/comm/channel.html#func-get-channels-dict-str-channel","84":"/dev/api/comm/channel.html#var-channel-deliver-active-channel-1","85":"/dev/api/comm/channel.html#var-channel-deliver-passive-channel-1","86":"/dev/api/comm/channel.html#func-on-set-channel-data-tuple-str-dict-str-any","87":"/dev/api/comm/channel.html#func-on-get-channel-data-tuple-str-dict-str-any","88":"/dev/api/comm/channel.html#func-on-get-channels-data-tuple-str-dict-str-any","89":"/dev/api/comm/rpc.html#模块-liteyuki-comm-rpc","90":"/dev/api/comm/rpc.html#class-rpc","91":"/dev/api/comm/rpc.html#func-init-self-on-calling-on-calling-func-none","92":"/dev/api/comm/rpc.html#func-call-self-args-tuple-kwargs-dict-any","93":"/dev/api/comm/socks_channel.html#模块-liteyuki-comm-socks-channel","94":"/dev/api/comm/socks_channel.html#class-sockschannel","95":"/dev/api/comm/socks_channel.html#func-init-self-name-str","96":"/dev/api/comm/socks_channel.html#func-send-self-data","97":"/dev/api/comm/socks_channel.html#func-receive-self","98":"/dev/api/comm/socks_channel.html#func-close-self","99":"/dev/api/comm/storage.html#模块-liteyuki-comm-storage","100":"/dev/api/comm/storage.html#var-on-main-subscriber-receive-funcs","101":"/dev/api/comm/storage.html#var-on-sub-subscriber-receive-funcs","102":"/dev/api/comm/storage.html#class-keyvaluestore","103":"/dev/api/comm/storage.html#func-init-self","104":"/dev/api/comm/storage.html#func-set-self-key-str-value-any-none","105":"/dev/api/comm/storage.html#func-get-self-key-str-default-optional-any-none-optional-any","106":"/dev/api/comm/storage.html#func-delete-self-key-str-ignore-key-error-bool-true-none","107":"/dev/api/comm/storage.html#func-get-all-self-dict-str-any","108":"/dev/api/comm/storage.html#func-publish-self-channel-str-data-any-none","109":"/dev/api/comm/storage.html#func-on-subscriber-receive-self-channel-str-callable-on-receive-func-on-receive-func","110":"/dev/api/comm/storage.html#async-func-run-subscriber-receive-funcs-channel-str-data-any","111":"/dev/api/comm/storage.html#async-func-start-receive-loop-self","112":"/dev/api/comm/storage.html#class-globalkeyvaluestore","113":"/dev/api/comm/storage.html#func-get-instance-cls","114":"/dev/api/comm/storage.html#attr-instance-none","115":"/dev/api/comm/storage.html#attr-lock-threading-lock","116":"/dev/api/comm/storage.html#var-shared-memory","117":"/dev/api/comm/storage.html#var-ref-count","118":"/dev/api/comm/storage.html#func-on-get-data-tuple-str-dict-str-any","119":"/dev/api/comm/storage.html#func-on-set-data-tuple-str-dict-str-any","120":"/dev/api/comm/storage.html#func-on-delete-data-tuple-str-dict-str-any","121":"/dev/api/comm/storage.html#func-on-get-all-data-tuple-str-dict-str-any","122":"/dev/api/core/#模块-liteyuki-core","123":"/dev/api/dev/#模块-liteyuki-dev","124":"/dev/api/config.html#模块-liteyuki-config","125":"/dev/api/config.html#func-flat-config-config-dict-str-any-dict-str-any","126":"/dev/api/config.html#func-load-from-yaml-file-str-dict-str-any","127":"/dev/api/config.html#func-load-from-json-file-str-dict-str-any","128":"/dev/api/config.html#func-load-from-toml-file-str-dict-str-any","129":"/dev/api/config.html#func-load-from-files-files-str-no-warning-bool-false-dict-str-any","130":"/dev/api/config.html#func-load-configs-from-dirs-directories-str-no-waring-bool-false-dict-str-any","131":"/dev/api/config.html#func-load-config-in-default-no-waring-bool-false-dict-str-any","132":"/dev/api/core/manager.html#模块-liteyuki-core-manager","133":"/dev/api/core/manager.html#class-channeldeliver","134":"/dev/api/core/manager.html#func-init-self-active-channel-any-passive-channel-any-channel-deliver-active-channel-channel-any-channel-deliver-passive-channel-tuple-str-dict-publish-channel-tuple-str-any","135":"/dev/api/core/manager.html#class-processmanager","136":"/dev/api/core/manager.html#func-init-self-lifespan-lifespan","137":"/dev/api/core/manager.html#func-start-all-self","138":"/dev/api/core/manager.html#func-add-target-self-name-str-target-target-func-args-tuple-kwargs-none","139":"/dev/api/core/manager.html#func-join-all-self","140":"/dev/api/core/manager.html#func-terminate-self-name-str","141":"/dev/api/core/manager.html#func-terminate-all-self","142":"/dev/api/core/manager.html#func-is-process-alive-self-name-str-bool","143":"/dev/api/dev/observer.html#模块-liteyuki-dev-observer","144":"/dev/api/dev/observer.html#var-callback-func","145":"/dev/api/dev/observer.html#var-filter-func","146":"/dev/api/dev/observer.html#func-debounce-wait","147":"/dev/api/dev/observer.html#class-codemodifiedhandler-filesystemeventhandler","148":"/dev/api/dev/observer.html#func-on-modified-self-event","149":"/dev/api/dev/observer.html#func-on-created-self-event","150":"/dev/api/dev/observer.html#func-on-deleted-self-event","151":"/dev/api/dev/observer.html#func-on-moved-self-event","152":"/dev/api/dev/observer.html#func-on-any-event-self-event","153":"/dev/api/dev/observer.html#func-on-file-system-event-directories-tuple-str-recursive-bool-true-event-filter-filter-func-none-callable-callback-func-callback-func","154":"/dev/api/dev/plugin.html#模块-liteyuki-dev-plugin","155":"/dev/api/dev/plugin.html#func-run-plugins-module-path-str-path","156":"/dev/api/exception.html#模块-liteyuki-exception","157":"/dev/api/exception.html#class-liteyukiexception-baseexception","158":"/dev/api/#模块-liteyuki","159":"/dev/api/#var-version","160":"/dev/api/log.html#模块-liteyuki-log","161":"/dev/api/log.html#func-get-format-level-str-str","162":"/dev/api/log.html#func-init-log-config-dict","163":"/dev/api/message/event.html#模块-liteyuki-message-event","164":"/dev/api/message/event.html#class-messageevent","165":"/dev/api/message/event.html#func-init-self-bot-id-str-message-list-dict-str-any-str-message-type-str-raw-message-str-session-id-str-user-id-str-session-type-str-receive-channel-optional-channel-messageevent-none-data-optional-dict-str-any-none","166":"/dev/api/message/event.html#func-reply-self-message-str-dict-str-any","167":"/dev/api/message/#模块-liteyuki-message","168":"/dev/api/message/matcher.html#模块-liteyuki-message-matcher","169":"/dev/api/message/matcher.html#class-matcher","170":"/dev/api/message/matcher.html#func-init-self-rule-rule-priority-int-block-bool","171":"/dev/api/message/matcher.html#func-handle-self-callable-eventhandler-eventhandler","172":"/dev/api/message/matcher.html#async-func-run-self-event-messageevent-none","173":"/dev/api/message/on.html#模块-liteyuki-message-on","174":"/dev/api/message/on.html#func-add-matcher-matcher-matcher","175":"/dev/api/message/on.html#func-on-message-rule-rule-empty-rule-priority-int-0-block-bool-false-matcher","176":"/dev/api/message/on.html#func-on-keywords-keywords-list-str-rule-empty-rule-priority-int-0-block-bool-false-matcher","177":"/dev/api/message/rule.html#模块-liteyuki-message-rule","178":"/dev/api/message/rule.html#var-rulehandlerfunc","179":"/dev/api/message/rule.html#class-rule","180":"/dev/api/message/rule.html#func-init-self-handler-rulehandlerfunc","181":"/dev/api/message/rule.html#func-self-other-rule-rule","182":"/dev/api/message/rule.html#func-self-other-rule-rule-1","183":"/dev/api/message/rule.html#async-func-self-event-messageevent-bool","184":"/dev/api/message/rule.html#async-func-empty-rule-event-messageevent-bool","185":"/dev/api/message/rule.html#async-func-is-su-rule-event-messageevent-bool","186":"/dev/api/message/session.html#模块-liteyuki-message-session","187":"/dev/api/plugin/#模块-liteyuki-plugin","188":"/dev/api/plugin/#func-get-loaded-plugins-dict-str-plugin","189":"/dev/api/mkdoc.html#模块-liteyuki-mkdoc","190":"/dev/api/mkdoc.html#class-deftype-enum","191":"/dev/api/mkdoc.html#attr-function-function","192":"/dev/api/mkdoc.html#attr-method-method","193":"/dev/api/mkdoc.html#attr-static-method-staticmethod","194":"/dev/api/mkdoc.html#attr-class-method-classmethod","195":"/dev/api/mkdoc.html#attr-property-property","196":"/dev/api/mkdoc.html#class-functioninfo-basemodel","197":"/dev/api/mkdoc.html#attr-name-str-no-default","198":"/dev/api/mkdoc.html#attr-args-list-tuple-str-str-no-default","199":"/dev/api/mkdoc.html#attr-return-type-str-no-default","200":"/dev/api/mkdoc.html#attr-docstring-str-no-default","201":"/dev/api/mkdoc.html#attr-source-code-str","202":"/dev/api/mkdoc.html#attr-type-deftype-no-default","203":"/dev/api/mkdoc.html#attr-is-async-bool-no-default","204":"/dev/api/mkdoc.html#class-attributeinfo-basemodel","205":"/dev/api/mkdoc.html#attr-name-str-no-default-1","206":"/dev/api/mkdoc.html#attr-type-str-no-default","207":"/dev/api/mkdoc.html#attr-value-any-none","208":"/dev/api/mkdoc.html#attr-docstring-str","209":"/dev/api/mkdoc.html#class-classinfo-basemodel","210":"/dev/api/mkdoc.html#attr-name-str-no-default-2","211":"/dev/api/mkdoc.html#attr-docstring-str-no-default-1","212":"/dev/api/mkdoc.html#attr-methods-list-functioninfo-no-default","213":"/dev/api/mkdoc.html#attr-attributes-list-attributeinfo-no-default","214":"/dev/api/mkdoc.html#attr-inherit-list-str-no-default","215":"/dev/api/mkdoc.html#class-moduleinfo-basemodel","216":"/dev/api/mkdoc.html#attr-module-path-str-no-default","217":"/dev/api/mkdoc.html#attr-functions-list-functioninfo-no-default","218":"/dev/api/mkdoc.html#attr-classes-list-classinfo-no-default","219":"/dev/api/mkdoc.html#attr-attributes-list-attributeinfo-no-default-1","220":"/dev/api/mkdoc.html#attr-docstring-str-no-default-2","221":"/dev/api/mkdoc.html#func-get-relative-path-base-path-str-target-path-str-str","222":"/dev/api/mkdoc.html#func-write-to-files-file-data-dict-str-str","223":"/dev/api/mkdoc.html#func-get-file-list-module-folder-str","224":"/dev/api/mkdoc.html#func-get-module-info-normal-file-path-str-ignore-private-bool-true-moduleinfo","225":"/dev/api/mkdoc.html#func-generate-markdown-module-info-moduleinfo-front-matter-none-lang-str-zh-cn-str","226":"/dev/api/mkdoc.html#func-generate-docs-module-folder-str-output-dir-str-with-top-bool-false-lang-str-zh-cn-ignored-paths-none","227":"/dev/api/mkdoc.html#var-no-module-name-pyfile-path","228":"/dev/api/plugin/load.html#模块-liteyuki-plugin-load","229":"/dev/api/plugin/load.html#func-load-plugin-module-path-str-path-optional-plugin","230":"/dev/api/plugin/load.html#func-load-plugins-plugin-dir-str-ignore-warning-bool-true-set-plugin","231":"/dev/api/plugin/load.html#func-format-display-name-display-name-str-plugin-type-plugintype-str","232":"/dev/api/plugin/manager.html#模块-liteyuki-plugin-manager","233":"/dev/api/plugins/#模块-liteyuki-plugins","234":"/dev/api/plugin/model.html#模块-liteyuki-plugin-model","235":"/dev/api/plugin/model.html#class-plugintype-enum","236":"/dev/api/plugin/model.html#attr-application-application","237":"/dev/api/plugin/model.html#attr-service-service","238":"/dev/api/plugin/model.html#attr-module-module","239":"/dev/api/plugin/model.html#attr-unclassified-unclassified","240":"/dev/api/plugin/model.html#attr-test-test","241":"/dev/api/plugin/model.html#class-pluginmetadata-basemodel","242":"/dev/api/plugin/model.html#attr-name-str-no-default","243":"/dev/api/plugin/model.html#attr-description-str","244":"/dev/api/plugin/model.html#attr-usage-str","245":"/dev/api/plugin/model.html#attr-type-plugintype-plugintype-unclassified","246":"/dev/api/plugin/model.html#attr-author-str","247":"/dev/api/plugin/model.html#attr-homepage-str","248":"/dev/api/plugin/model.html#attr-extra-dict-str-any","249":"/dev/api/plugin/model.html#class-plugin-basemodel","250":"/dev/api/plugin/model.html#func-hash-self","251":"/dev/api/plugin/model.html#attr-model-config-arbitrary-types-allowed-true","252":"/dev/api/plugin/model.html#attr-name-str-no-default-1","253":"/dev/api/plugin/model.html#attr-module-moduletype-no-default","254":"/dev/api/plugin/model.html#attr-module-name-str-no-default","255":"/dev/api/plugin/model.html#attr-metadata-optional-pluginmetadata-none","256":"/dev/api/plugins/liteecho.html#模块-liteyuki-plugins-liteecho","257":"/dev/api/plugins/liteecho.html#async-func-liteecho-event-messageevent","258":"/dev/api/plugins/plugin_loader/#模块-liteyuki-plugins-plugin-loader","259":"/dev/api/plugins/plugin_loader/#func-default-plugins-loader","260":"/dev/api/utils.html#模块-liteyuki-utils","261":"/dev/api/utils.html#func-is-coroutine-callable-call-callable-any-bool","262":"/dev/api/utils.html#func-run-coroutine-coro-coroutine","263":"/dev/api/utils.html#func-run-coroutine-in-thread-coro-coroutine","264":"/dev/api/utils.html#func-path-to-module-name-path-path-str","265":"/dev/api/utils.html#func-async-wrapper-func-callable-any-callable-coroutine","266":"/dev/comm.html#通道通信","267":"/dev/comm.html#简介","268":"/dev/comm.html#示例","269":"/dev/comm.html#共享内存通信","270":"/dev/comm.html#简介-1","271":"/dev/comm.html#示例-1","272":"/dev/guide.html#开发指南","273":"/dev/guide.html#如何开发","274":"/dev/guide.html#建议","275":"/dev/guide.html#项目结构","276":"/dev/guide.html#规范化","277":"/dev/guide.html#最后","278":"/dev/lyfunc.html#轻雪函数","279":"/dev/lyfunc.html#函数文件","280":"/dev/lyfunc.html#命令文档","281":"/dev/lyfunc.html#示例","282":"/dev/lyfunc.html#api","283":"/dev/lyfunc.html#结束关键字","284":"/dev/resource.html#简介","285":"/dev/resource.html#加载资源包","286":"/dev/plugin.html#简介","287":"/dev/plugin.html#开始","288":"/dev/plugin.html#创建插件","289":"/dev/plugin.html#编写逻辑部分","290":"/dev/plugin.html#加载插件","291":"/dev/plugin.html#方法1","292":"/dev/plugin.html#方法2","293":"/usage/agreement.html#用户协议","294":"/usage/basic.html#基础插件","295":"/usage/basic.html#轻雪命令liteyuki-command","296":"/usage/basic.html#命令别名","297":"/usage/basic.html#插件-包管理器-liteyuki-pacman","298":"/usage/basic.html#命令别名-1","299":"/usage/basic.html#用户管理liteyuki-user","300":"/usage/extra.html#功能插件命令","301":"/usage/extra.html#轻雪天气liteyuki-weather","302":"/usage/extra.html#命令别名","303":"/usage/extra.html#统计信息liteyuki-statistics","304":"/usage/extra.html#命令别名-1"},"fieldIds":{"title":0,"titles":1,"text":2},"fieldLength":{"0":[1,1,16],"1":[1,1,51],"2":[1,1,48],"3":[2,1,28],"4":[1,1,3],"5":[1,1,1],"6":[1,1,55],"7":[1,1,2],"8":[3,1,30],"9":[3,1,6],"10":[1,1,8],"11":[1,1,1],"12":[1,1,48],"13":[1,1,35],"14":[2,1,7],"15":[1,1,39],"16":[1,2,1],"17":[3,1,1],"18":[2,3,1],"19":[6,5,57],"20":[4,5,28],"21":[6,5,30],"22":[8,5,59],"23":[10,5,35],"24":[6,5,15],"25":[5,5,13],"26":[4,5,15],"27":[8,5,20],"28":[8,5,19],"29":[8,5,20],"30":[10,5,22],"31":[10,5,23],"32":[8,5,20],"33":[5,3,34],"34":[10,3,26],"35":[14,3,45],"36":[4,1,24],"37":[4,4,8],"38":[4,4,9],"39":[3,4,11],"40":[5,4,9],"41":[5,4,10],"42":[4,4,12],"43":[2,4,1],"44":[5,6,31],"45":[13,6,38],"46":[8,6,21],"47":[8,6,21],"48":[10,6,23],"49":[8,6,21],"50":[10,6,23],"51":[8,6,21],"52":[7,6,20],"53":[7,6,20],"54":[10,6,23],"55":[7,6,21],"56":[10,6,23],"57":[7,6,21],"58":[4,1,2],"59":[2,4,1],"60":[9,6,13],"61":[3,1,8],"62":[4,1,3],"63":[5,4,9],"64":[5,4,10],"65":[4,4,12],"66":[4,4,9],"67":[4,4,11],"68":[3,4,11],"69":[5,4,1],"70":[12,9,72],"71":[6,9,44],"72":[5,9,29],"73":[6,9,28],"74":[15,9,64],"75":[3,4,9],"76":[3,4,9],"77":[3,4,15],"78":[4,4,11],"79":[4,4,12],"80":[7,4,40],"81":[7,4,19],"82":[7,4,31],"83":[8,4,30],"84":[4,4,9],"85":[4,4,17],"86":[10,4,25],"87":[10,4,28],"88":[10,4,27],"89":[4,1,4],"90":[2,4,1],"91":[10,6,15],"92":[9,6,18],"93":[5,1,2],"94":[2,5,1],"95":[6,7,20],"96":[5,7,13],"97":[4,7,13],"98":[4,7,10],"99":[4,1,4],"100":[6,4,12],"101":[6,4,12],"102":[2,4,1],"103":[4,6,30],"104":[9,6,31],"105":[12,6,37],"106":[12,6,42],"107":[9,6,30],"108":[9,6,21],"109":[13,6,52],"110":[11,6,29],"111":[7,6,42],"112":[2,4,2],"113":[5,6,18],"114":[4,6,1],"115":[6,6,1],"116":[3,4,9],"117":[3,4,17],"118":[9,4,29],"119":[9,4,27],"120":[9,4,27],"121":[10,4,27],"122":[3,1,1],"123":[3,1,2],"124":[3,1,14],"125":[8,3,38],"126":[10,3,35],"127":[10,3,34],"128":[10,3,34],"129":[14,3,43],"130":[16,3,49],"131":[15,3,34],"132":[4,1,24],"133":[2,4,1],"134":[14,6,18],"135":[2,4,1],"136":[6,6,17],"137":[5,6,28],"138":[14,6,48],"139":[5,6,13],"140":[6,6,31],"141":[5,6,12],"142":[9,6,27],"143":[4,1,5],"144":[3,4,9],"145":[3,4,9],"146":[4,4,25],"147":[4,4,3],"148":[6,8,17],"149":[6,8,10],"150":[6,8,10],"151":[6,8,10],"152":[6,8,10],"153":[20,4,53],"154":[4,1,24],"155":[9,4,30],"156":[3,1,2],"157":[4,3,1],"158":[2,1,10],"159":[3,2,7],"160":[3,1,24],"161":[6,3,17],"162":[6,3,46],"163":[4,1,24],"164":[2,4,1],"165":[24,6,32],"166":[9,6,34],"167":[3,1,24],"168":[4,1,24],"169":[2,4,1],"170":[10,6,25],"171":[7,6,20],"172":[8,6,30],"173":[4,1,24],"174":[5,4,21],"175":[15,4,19],"176":[16,4,30],"177":[4,1,24],"178":[2,4,11],"179":[2,4,1],"180":[6,6,10],"181":[7,6,19],"182":[7,6,19],"183":[8,6,20],"184":[8,4,16],"185":[9,4,21],"186":[4,1,24],"187":[3,1,1],"188":[9,3,17],"189":[3,1,24],"190":[4,3,1],"191":[5,7,1],"192":[5,7,1],"193":[6,7,1],"194":[6,7,1],"195":[5,7,1],"196":[4,3,1],"197":[6,7,1],"198":[8,7,1],"199":[7,7,1],"200":[6,7,1],"201":[6,7,1],"202":[6,7,1],"203":[7,7,1],"204":[4,3,1],"205":[6,7,1],"206":[6,7,1],"207":[5,7,1],"208":[5,7,1],"209":[4,3,1],"210":[6,7,1],"211":[6,7,1],"212":[7,7,1],"213":[7,7,1],"214":[7,7,1],"215":[4,3,1],"216":[7,7,1],"217":[7,7,1],"218":[7,7,1],"219":[7,7,1],"220":[6,7,1],"221":[8,3,20],"222":[9,3,36],"223":[8,3,27],"224":[15,3,143],"225":[15,3,95],"226":[20,3,95],"227":[6,3,10],"228":[4,1,24],"229":[12,4,75],"230":[15,4,58],"231":[9,4,37],"232":[4,1,24],"233":[3,1,15],"234":[4,1,24],"235":[4,4,1],"236":[5,8,1],"237":[5,8,1],"238":[5,8,1],"239":[5,8,1],"240":[5,8,1],"241":[4,4,1],"242":[6,8,1],"243":[5,8,1],"244":[5,8,1],"245":[5,8,1],"246":[5,8,1],"247":[5,8,1],"248":[7,8,1],"249":[4,4,1],"250":[3,8,10],"251":[9,8,1],"252":[6,8,1],"253":[6,8,1],"254":[7,8,1],"255":[6,8,1],"256":[4,1,30],"257":[6,4,21],"258":[5,1,24],"259":[5,5,21],"260":[3,1,5],"261":[9,3,30],"262":[6,3,42],"263":[8,3,20],"264":[8,3,38],"265":[8,3,25],"266":[1,1,1],"267":[1,1,12],"268":[1,1,83],"269":[1,1,1],"270":[1,2,9],"271":[1,2,18],"272":[1,1,1],"273":[1,1,18],"274":[1,2,10],"275":[1,1,36],"276":[1,1,55],"277":[1,1,4],"278":[1,1,9],"279":[1,1,25],"280":[1,1,33],"281":[1,2,26],"282":[1,1,7],"283":[1,1,18],"284":[1,1,31],"285":[1,1,56],"286":[1,1,4],"287":[1,1,1],"288":[1,2,42],"289":[1,2,58],"290":[1,2,1],"291":[1,3,6],"292":[1,3,25],"293":[1,1,28],"294":[1,1,16],"295":[2,1,86],"296":[1,3,30],"297":[4,1,53],"298":[1,5,38],"299":[2,1,20],"300":[1,1,1],"301":[2,1,30],"302":[1,3,8],"303":[2,1,35],"304":[1,3,17]},"averageFieldLength":[5.550819672131149,4.1278688524590175,18.93114754098359],"storedFields":{"0":{"title":"配置","titles":[]},"1":{"title":"基础配置项","titles":["配置"]},"2":{"title":"其他配置","titles":["配置"]},"3":{"title":"示例:与NoneBot对接的OneBot实现端配置","titles":["配置"]},"4":{"title":"其他","titles":["配置"]},"5":{"title":"答疑","titles":[]},"6":{"title":"常见问题","titles":["答疑"]},"7":{"title":"其他问题","titles":["答疑"]},"8":{"title":"推荐方案(QQ)","titles":["答疑"]},"9":{"title":"推荐方案(Minecraft)","titles":["答疑"]},"10":{"title":"鸣谢","titles":["答疑"]},"11":{"title":"安装","titles":[]},"12":{"title":"常规部署","titles":["安装"]},"13":{"title":"使用Docker构建","titles":["安装"]},"14":{"title":"使用TRSS Scripts部署","titles":["安装"]},"15":{"title":"装置要求","titles":["安装"]},"16":{"title":"其他问题请移步至","titles":["安装","装置要求"]},"17":{"title":"模块 liteyuki.bot","titles":[]},"18":{"title":"class LiteyukiBot","titles":["模块 liteyuki.bot"]},"19":{"title":"func __init__(self, **kwargs) -> None","titles":["模块 liteyuki.bot","class LiteyukiBot"]},"20":{"title":"func run(self)","titles":["模块 liteyuki.bot","class LiteyukiBot"]},"21":{"title":"async func keep_alive(self)","titles":["模块 liteyuki.bot","class LiteyukiBot"]},"22":{"title":"func restart(self, delay: int = 0)","titles":["模块 liteyuki.bot","class LiteyukiBot"]},"23":{"title":"func restart_process(self, name: Optional[str] = None)","titles":["模块 liteyuki.bot","class LiteyukiBot"]},"24":{"title":"func init(self, *args, **kwargs)","titles":["模块 liteyuki.bot","class LiteyukiBot"]},"25":{"title":"func init_logger(self)","titles":["模块 liteyuki.bot","class LiteyukiBot"]},"26":{"title":"func stop(self)","titles":["模块 liteyuki.bot","class LiteyukiBot"]},"27":{"title":"func on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC","titles":["模块 liteyuki.bot","class LiteyukiBot"]},"28":{"title":"func on_after_start(self, func: LIFESPAN_FUNC)","titles":["模块 liteyuki.bot","class LiteyukiBot"]},"29":{"title":"func on_after_shutdown(self, func: LIFESPAN_FUNC)","titles":["模块 liteyuki.bot","class LiteyukiBot"]},"30":{"title":"func on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC)","titles":["模块 liteyuki.bot","class LiteyukiBot"]},"31":{"title":"func on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC","titles":["模块 liteyuki.bot","class LiteyukiBot"]},"32":{"title":"func on_after_restart(self, func: LIFESPAN_FUNC)","titles":["模块 liteyuki.bot","class LiteyukiBot"]},"33":{"title":"func get_bot() -> LiteyukiBot","titles":["模块 liteyuki.bot"]},"34":{"title":"func get_config(key: str, default: Any = None) -> Any","titles":["模块 liteyuki.bot"]},"35":{"title":"func get_config_with_compat(key: str, compat_keys: tuple[str], default: Any = None) -> Any","titles":["模块 liteyuki.bot"]},"36":{"title":"模块 liteyuki.bot.lifespan","titles":[]},"37":{"title":"var SYNC_LIFESPAN_FUNC","titles":["模块 liteyuki.bot.lifespan"]},"38":{"title":"var ASYNC_LIFESPAN_FUNC","titles":["模块 liteyuki.bot.lifespan"]},"39":{"title":"var LIFESPAN_FUNC","titles":["模块 liteyuki.bot.lifespan"]},"40":{"title":"var SYNC_PROCESS_LIFESPAN_FUNC","titles":["模块 liteyuki.bot.lifespan"]},"41":{"title":"var ASYNC_PROCESS_LIFESPAN_FUNC","titles":["模块 liteyuki.bot.lifespan"]},"42":{"title":"var PROCESS_LIFESPAN_FUNC","titles":["模块 liteyuki.bot.lifespan"]},"43":{"title":"class Lifespan","titles":["模块 liteyuki.bot.lifespan"]},"44":{"title":"func __init__(self) -> None","titles":["模块 liteyuki.bot.lifespan","class Lifespan"]},"45":{"title":"async func run_funcs(funcs: Sequence[LIFESPAN_FUNC | PROCESS_LIFESPAN_FUNC], *args, **kwargs) -> None","titles":["模块 liteyuki.bot.lifespan","class Lifespan"]},"46":{"title":"func on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC","titles":["模块 liteyuki.bot.lifespan","class Lifespan"]},"47":{"title":"func on_after_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC","titles":["模块 liteyuki.bot.lifespan","class Lifespan"]},"48":{"title":"func on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC","titles":["模块 liteyuki.bot.lifespan","class Lifespan"]},"49":{"title":"func on_after_shutdown(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC","titles":["模块 liteyuki.bot.lifespan","class Lifespan"]},"50":{"title":"func on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC","titles":["模块 liteyuki.bot.lifespan","class Lifespan"]},"51":{"title":"func on_after_restart(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC","titles":["模块 liteyuki.bot.lifespan","class Lifespan"]},"52":{"title":"async func before_start(self) -> None","titles":["模块 liteyuki.bot.lifespan","class Lifespan"]},"53":{"title":"async func after_start(self) -> None","titles":["模块 liteyuki.bot.lifespan","class Lifespan"]},"54":{"title":"async func before_process_shutdown(self, *args, **kwargs) -> None","titles":["模块 liteyuki.bot.lifespan","class Lifespan"]},"55":{"title":"async func after_shutdown(self) -> None","titles":["模块 liteyuki.bot.lifespan","class Lifespan"]},"56":{"title":"async func before_process_restart(self, *args, **kwargs) -> None","titles":["模块 liteyuki.bot.lifespan","class Lifespan"]},"57":{"title":"async func after_restart(self) -> None","titles":["模块 liteyuki.bot.lifespan","class Lifespan"]},"58":{"title":"模块 liteyuki.comm.event","titles":[]},"59":{"title":"class Event","titles":["模块 liteyuki.comm.event"]},"60":{"title":"func __init__(self, name: str, data: dict[str, Any])","titles":["模块 liteyuki.comm.event","class Event"]},"61":{"title":"模块 liteyuki.comm","titles":[]},"62":{"title":"模块 liteyuki.comm.channel","titles":[]},"63":{"title":"var SYNC_ON_RECEIVE_FUNC","titles":["模块 liteyuki.comm.channel"]},"64":{"title":"var ASYNC_ON_RECEIVE_FUNC","titles":["模块 liteyuki.comm.channel"]},"65":{"title":"var ON_RECEIVE_FUNC","titles":["模块 liteyuki.comm.channel"]},"66":{"title":"var SYNC_FILTER_FUNC","titles":["模块 liteyuki.comm.channel"]},"67":{"title":"var ASYNC_FILTER_FUNC","titles":["模块 liteyuki.comm.channel"]},"68":{"title":"var FILTER_FUNC","titles":["模块 liteyuki.comm.channel"]},"69":{"title":"class Channel(Generic[T])","titles":["模块 liteyuki.comm.channel"]},"70":{"title":"func __init__(self, name: str, type_check: Optional[bool] = None)","titles":["模块 liteyuki.comm.channel","class Channel(Generic[T])"]},"71":{"title":"func send(self, data: T)","titles":["模块 liteyuki.comm.channel","class Channel(Generic[T])"]},"72":{"title":"func receive(self) -> T","titles":["模块 liteyuki.comm.channel","class Channel(Generic[T])"]},"73":{"title":"async func async_receive(self) -> T","titles":["模块 liteyuki.comm.channel","class Channel(Generic[T])"]},"74":{"title":"func on_receive(self, filter_func: Optional[FILTER_FUNC] = None) -> Callable[[Callable[[T], Any]], Callable[[T], Any]]","titles":["模块 liteyuki.comm.channel","class Channel(Generic[T])"]},"75":{"title":"var active_channel","titles":["模块 liteyuki.comm.channel"]},"76":{"title":"var passive_channel","titles":["模块 liteyuki.comm.channel"]},"77":{"title":"var publish_channel","titles":["模块 liteyuki.comm.channel"]},"78":{"title":"var channel_deliver_active_channel","titles":["模块 liteyuki.comm.channel"]},"79":{"title":"var channel_deliver_passive_channel","titles":["模块 liteyuki.comm.channel"]},"80":{"title":"func set_channel(name: str, channel: Channel)","titles":["模块 liteyuki.comm.channel"]},"81":{"title":"func set_channels(channels: dict[str, Channel])","titles":["模块 liteyuki.comm.channel"]},"82":{"title":"func get_channel(name: str) -> Channel","titles":["模块 liteyuki.comm.channel"]},"83":{"title":"func get_channels() -> dict[str, Channel]","titles":["模块 liteyuki.comm.channel"]},"84":{"title":"var channel_deliver_active_channel","titles":["模块 liteyuki.comm.channel"]},"85":{"title":"var channel_deliver_passive_channel","titles":["模块 liteyuki.comm.channel"]},"86":{"title":"func on_set_channel(data: tuple[str, dict[str, Any]])","titles":["模块 liteyuki.comm.channel"]},"87":{"title":"func on_get_channel(data: tuple[str, dict[str, Any]])","titles":["模块 liteyuki.comm.channel"]},"88":{"title":"func on_get_channels(data: tuple[str, dict[str, Any]])","titles":["模块 liteyuki.comm.channel"]},"89":{"title":"模块 liteyuki.comm.rpc","titles":[]},"90":{"title":"class RPC","titles":["模块 liteyuki.comm.rpc"]},"91":{"title":"func __init__(self, on_calling: ON_CALLING_FUNC) -> None","titles":["模块 liteyuki.comm.rpc","class RPC"]},"92":{"title":"func call(self, args: tuple, kwargs: dict) -> Any","titles":["模块 liteyuki.comm.rpc","class RPC"]},"93":{"title":"模块 liteyuki.comm.socks_channel","titles":[]},"94":{"title":"class SocksChannel","titles":["模块 liteyuki.comm.socks_channel"]},"95":{"title":"func __init__(self, name: str)","titles":["模块 liteyuki.comm.socks_channel","class SocksChannel"]},"96":{"title":"func send(self, data)","titles":["模块 liteyuki.comm.socks_channel","class SocksChannel"]},"97":{"title":"func receive(self)","titles":["模块 liteyuki.comm.socks_channel","class SocksChannel"]},"98":{"title":"func close(self)","titles":["模块 liteyuki.comm.socks_channel","class SocksChannel"]},"99":{"title":"模块 liteyuki.comm.storage","titles":[]},"100":{"title":"var _on_main_subscriber_receive_funcs","titles":["模块 liteyuki.comm.storage"]},"101":{"title":"var _on_sub_subscriber_receive_funcs","titles":["模块 liteyuki.comm.storage"]},"102":{"title":"class KeyValueStore","titles":["模块 liteyuki.comm.storage"]},"103":{"title":"func __init__(self)","titles":["模块 liteyuki.comm.storage","class KeyValueStore"]},"104":{"title":"func set(self, key: str, value: Any) -> None","titles":["模块 liteyuki.comm.storage","class KeyValueStore"]},"105":{"title":"func get(self, key: str, default: Optional[Any] = None) -> Optional[Any]","titles":["模块 liteyuki.comm.storage","class KeyValueStore"]},"106":{"title":"func delete(self, key: str, ignore_key_error: bool = True) -> None","titles":["模块 liteyuki.comm.storage","class KeyValueStore"]},"107":{"title":"func get_all(self) -> dict[str, Any]","titles":["模块 liteyuki.comm.storage","class KeyValueStore"]},"108":{"title":"func publish(self, channel_: str, data: Any) -> None","titles":["模块 liteyuki.comm.storage","class KeyValueStore"]},"109":{"title":"func on_subscriber_receive(self, channel_: str) -> Callable[[ON_RECEIVE_FUNC], ON_RECEIVE_FUNC]","titles":["模块 liteyuki.comm.storage","class KeyValueStore"]},"110":{"title":"async func run_subscriber_receive_funcs(channel_: str, data: Any)","titles":["模块 liteyuki.comm.storage","class KeyValueStore"]},"111":{"title":"async func start_receive_loop(self)","titles":["模块 liteyuki.comm.storage","class KeyValueStore"]},"112":{"title":"class GlobalKeyValueStore","titles":["模块 liteyuki.comm.storage"]},"113":{"title":"func get_instance(cls)","titles":["模块 liteyuki.comm.storage","class GlobalKeyValueStore"]},"114":{"title":"attr _instance = None","titles":["模块 liteyuki.comm.storage","class GlobalKeyValueStore"]},"115":{"title":"attr _lock = threading.Lock()","titles":["模块 liteyuki.comm.storage","class GlobalKeyValueStore"]},"116":{"title":"var shared_memory","titles":["模块 liteyuki.comm.storage"]},"117":{"title":"var _ref_count","titles":["模块 liteyuki.comm.storage"]},"118":{"title":"func on_get(data: tuple[str, dict[str, Any]])","titles":["模块 liteyuki.comm.storage"]},"119":{"title":"func on_set(data: tuple[str, dict[str, Any]])","titles":["模块 liteyuki.comm.storage"]},"120":{"title":"func on_delete(data: tuple[str, dict[str, Any]])","titles":["模块 liteyuki.comm.storage"]},"121":{"title":"func on_get_all(data: tuple[str, dict[str, Any]])","titles":["模块 liteyuki.comm.storage"]},"122":{"title":"模块 liteyuki.core","titles":[]},"123":{"title":"模块 liteyuki.dev","titles":[]},"124":{"title":"模块 liteyuki.config","titles":[]},"125":{"title":"func flat_config(config: dict[str, Any]) -> dict[str, Any]","titles":["模块 liteyuki.config"]},"126":{"title":"func load_from_yaml(file_: str) -> dict[str, Any]","titles":["模块 liteyuki.config"]},"127":{"title":"func load_from_json(file_: str) -> dict[str, Any]","titles":["模块 liteyuki.config"]},"128":{"title":"func load_from_toml(file_: str) -> dict[str, Any]","titles":["模块 liteyuki.config"]},"129":{"title":"func load_from_files(*files: str, *, no_warning: bool = False) -> dict[str, Any]","titles":["模块 liteyuki.config"]},"130":{"title":"func load_configs_from_dirs(*directories: str, *, no_waring: bool = False) -> dict[str, Any]","titles":["模块 liteyuki.config"]},"131":{"title":"func load_config_in_default(no_waring: bool = False) -> dict[str, Any]","titles":["模块 liteyuki.config"]},"132":{"title":"模块 liteyuki.core.manager","titles":[]},"133":{"title":"class ChannelDeliver","titles":["模块 liteyuki.core.manager"]},"134":{"title":"func __init__(self, active: Channel[Any], passive: Channel[Any], channel_deliver_active: Channel[Channel[Any]], channel_deliver_passive: Channel[tuple[str, dict]], publish: Channel[tuple[str, Any]])","titles":["模块 liteyuki.core.manager","class ChannelDeliver"]},"135":{"title":"class ProcessManager","titles":["模块 liteyuki.core.manager"]},"136":{"title":"func __init__(self, lifespan: Lifespan)","titles":["模块 liteyuki.core.manager","class ProcessManager"]},"137":{"title":"func start_all(self)","titles":["模块 liteyuki.core.manager","class ProcessManager"]},"138":{"title":"func add_target(self, name: str, target: TARGET_FUNC, args: tuple = (), kwargs = None)","titles":["模块 liteyuki.core.manager","class ProcessManager"]},"139":{"title":"func join_all(self)","titles":["模块 liteyuki.core.manager","class ProcessManager"]},"140":{"title":"func terminate(self, name: str)","titles":["模块 liteyuki.core.manager","class ProcessManager"]},"141":{"title":"func terminate_all(self)","titles":["模块 liteyuki.core.manager","class ProcessManager"]},"142":{"title":"func is_process_alive(self, name: str) -> bool","titles":["模块 liteyuki.core.manager","class ProcessManager"]},"143":{"title":"模块 liteyuki.dev.observer","titles":[]},"144":{"title":"var CALLBACK_FUNC","titles":["模块 liteyuki.dev.observer"]},"145":{"title":"var FILTER_FUNC","titles":["模块 liteyuki.dev.observer"]},"146":{"title":"func debounce(wait)","titles":["模块 liteyuki.dev.observer"]},"147":{"title":"class CodeModifiedHandler(FileSystemEventHandler)","titles":["模块 liteyuki.dev.observer"]},"148":{"title":"func on_modified(self, event)","titles":["模块 liteyuki.dev.observer","class CodeModifiedHandler(FileSystemEventHandler)"]},"149":{"title":"func on_created(self, event)","titles":["模块 liteyuki.dev.observer","class CodeModifiedHandler(FileSystemEventHandler)"]},"150":{"title":"func on_deleted(self, event)","titles":["模块 liteyuki.dev.observer","class CodeModifiedHandler(FileSystemEventHandler)"]},"151":{"title":"func on_moved(self, event)","titles":["模块 liteyuki.dev.observer","class CodeModifiedHandler(FileSystemEventHandler)"]},"152":{"title":"func on_any_event(self, event)","titles":["模块 liteyuki.dev.observer","class CodeModifiedHandler(FileSystemEventHandler)"]},"153":{"title":"func on_file_system_event(directories: tuple[str], recursive: bool = True, event_filter: FILTER_FUNC = None) -> Callable[[CALLBACK_FUNC], CALLBACK_FUNC]","titles":["模块 liteyuki.dev.observer"]},"154":{"title":"模块 liteyuki.dev.plugin","titles":[]},"155":{"title":"func run_plugins(*module_path: str | Path)","titles":["模块 liteyuki.dev.plugin"]},"156":{"title":"模块 liteyuki.exception","titles":[]},"157":{"title":"class LiteyukiException(BaseException)","titles":["模块 liteyuki.exception"]},"158":{"title":"模块 liteyuki","titles":[]},"159":{"title":"var __version__","titles":["模块 liteyuki"]},"160":{"title":"模块 liteyuki.log","titles":[]},"161":{"title":"func get_format(level: str) -> str","titles":["模块 liteyuki.log"]},"162":{"title":"func init_log(config: dict)","titles":["模块 liteyuki.log"]},"163":{"title":"模块 liteyuki.message.event","titles":[]},"164":{"title":"class MessageEvent","titles":["模块 liteyuki.message.event"]},"165":{"title":"func __init__(self, bot_id: str, message: list[dict[str, Any]] | str, message_type: str, raw_message: str, session_id: str, user_id: str, session_type: str, receive_channel: Optional[Channel[MessageEvent]] = None, data: Optional[dict[str, Any]] = None)","titles":["模块 liteyuki.message.event","class MessageEvent"]},"166":{"title":"func reply(self, message: str | dict[str, Any])","titles":["模块 liteyuki.message.event","class MessageEvent"]},"167":{"title":"模块 liteyuki.message","titles":[]},"168":{"title":"模块 liteyuki.message.matcher","titles":[]},"169":{"title":"class Matcher","titles":["模块 liteyuki.message.matcher"]},"170":{"title":"func __init__(self, rule: Rule, priority: int, block: bool)","titles":["模块 liteyuki.message.matcher","class Matcher"]},"171":{"title":"func handle(self) -> Callable[[EventHandler], EventHandler]","titles":["模块 liteyuki.message.matcher","class Matcher"]},"172":{"title":"async func run(self, event: MessageEvent) -> None","titles":["模块 liteyuki.message.matcher","class Matcher"]},"173":{"title":"模块 liteyuki.message.on","titles":[]},"174":{"title":"func add_matcher(matcher: Matcher)","titles":["模块 liteyuki.message.on"]},"175":{"title":"func on_message(rule: Rule = empty_rule, priority: int = 0, block: bool = False) -> Matcher","titles":["模块 liteyuki.message.on"]},"176":{"title":"func on_keywords(keywords: list[str], rule = empty_rule, priority: int = 0, block: bool = False) -> Matcher","titles":["模块 liteyuki.message.on"]},"177":{"title":"模块 liteyuki.message.rule","titles":[]},"178":{"title":"var RuleHandlerFunc","titles":["模块 liteyuki.message.rule"]},"179":{"title":"class Rule","titles":["模块 liteyuki.message.rule"]},"180":{"title":"func __init__(self, handler: RuleHandlerFunc)","titles":["模块 liteyuki.message.rule","class Rule"]},"181":{"title":"func self | other: Rule => Rule","titles":["模块 liteyuki.message.rule","class Rule"]},"182":{"title":"func self & other: Rule => Rule","titles":["模块 liteyuki.message.rule","class Rule"]},"183":{"title":"async func self () event: MessageEvent => bool","titles":["模块 liteyuki.message.rule","class Rule"]},"184":{"title":"async func empty_rule(event: MessageEvent) -> bool","titles":["模块 liteyuki.message.rule"]},"185":{"title":"async func is_su_rule(event: MessageEvent) -> bool","titles":["模块 liteyuki.message.rule"]},"186":{"title":"模块 liteyuki.message.session","titles":[]},"187":{"title":"模块 liteyuki.plugin","titles":[]},"188":{"title":"func get_loaded_plugins() -> dict[str, Plugin]","titles":["模块 liteyuki.plugin"]},"189":{"title":"模块 liteyuki.mkdoc","titles":[]},"190":{"title":"class DefType(Enum)","titles":["模块 liteyuki.mkdoc"]},"191":{"title":"attr FUNCTION = 'function'","titles":["模块 liteyuki.mkdoc","class DefType(Enum)"]},"192":{"title":"attr METHOD = 'method'","titles":["模块 liteyuki.mkdoc","class DefType(Enum)"]},"193":{"title":"attr STATIC_METHOD = 'staticmethod'","titles":["模块 liteyuki.mkdoc","class DefType(Enum)"]},"194":{"title":"attr CLASS_METHOD = 'classmethod'","titles":["模块 liteyuki.mkdoc","class DefType(Enum)"]},"195":{"title":"attr PROPERTY = 'property'","titles":["模块 liteyuki.mkdoc","class DefType(Enum)"]},"196":{"title":"class FunctionInfo(BaseModel)","titles":["模块 liteyuki.mkdoc"]},"197":{"title":"attr name: str = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class FunctionInfo(BaseModel)"]},"198":{"title":"attr args: list[tuple[str, str]] = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class FunctionInfo(BaseModel)"]},"199":{"title":"attr return_type: str = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class FunctionInfo(BaseModel)"]},"200":{"title":"attr docstring: str = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class FunctionInfo(BaseModel)"]},"201":{"title":"attr source_code: str = ''","titles":["模块 liteyuki.mkdoc","class FunctionInfo(BaseModel)"]},"202":{"title":"attr type: DefType = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class FunctionInfo(BaseModel)"]},"203":{"title":"attr is_async: bool = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class FunctionInfo(BaseModel)"]},"204":{"title":"class AttributeInfo(BaseModel)","titles":["模块 liteyuki.mkdoc"]},"205":{"title":"attr name: str = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class AttributeInfo(BaseModel)"]},"206":{"title":"attr type: str = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class AttributeInfo(BaseModel)"]},"207":{"title":"attr value: Any = None","titles":["模块 liteyuki.mkdoc","class AttributeInfo(BaseModel)"]},"208":{"title":"attr docstring: str = ''","titles":["模块 liteyuki.mkdoc","class AttributeInfo(BaseModel)"]},"209":{"title":"class ClassInfo(BaseModel)","titles":["模块 liteyuki.mkdoc"]},"210":{"title":"attr name: str = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class ClassInfo(BaseModel)"]},"211":{"title":"attr docstring: str = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class ClassInfo(BaseModel)"]},"212":{"title":"attr methods: list[FunctionInfo] = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class ClassInfo(BaseModel)"]},"213":{"title":"attr attributes: list[AttributeInfo] = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class ClassInfo(BaseModel)"]},"214":{"title":"attr inherit: list[str] = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class ClassInfo(BaseModel)"]},"215":{"title":"class ModuleInfo(BaseModel)","titles":["模块 liteyuki.mkdoc"]},"216":{"title":"attr module_path: str = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class ModuleInfo(BaseModel)"]},"217":{"title":"attr functions: list[FunctionInfo] = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class ModuleInfo(BaseModel)"]},"218":{"title":"attr classes: list[ClassInfo] = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class ModuleInfo(BaseModel)"]},"219":{"title":"attr attributes: list[AttributeInfo] = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class ModuleInfo(BaseModel)"]},"220":{"title":"attr docstring: str = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class ModuleInfo(BaseModel)"]},"221":{"title":"func get_relative_path(base_path: str, target_path: str) -> str","titles":["模块 liteyuki.mkdoc"]},"222":{"title":"func write_to_files(file_data: dict[str, str])","titles":["模块 liteyuki.mkdoc"]},"223":{"title":"func get_file_list(module_folder: str)","titles":["模块 liteyuki.mkdoc"]},"224":{"title":"func get_module_info_normal(file_path: str, ignore_private: bool = True) -> ModuleInfo","titles":["模块 liteyuki.mkdoc"]},"225":{"title":"func generate_markdown(module_info: ModuleInfo, front_matter = None, lang: str = 'zh-CN') -> str","titles":["模块 liteyuki.mkdoc"]},"226":{"title":"func generate_docs(module_folder: str, output_dir: str, with_top: bool = False, lang: str = 'zh-CN', ignored_paths = None)","titles":["模块 liteyuki.mkdoc"]},"227":{"title":"var no_module_name_pyfile_path","titles":["模块 liteyuki.mkdoc"]},"228":{"title":"模块 liteyuki.plugin.load","titles":[]},"229":{"title":"func load_plugin(module_path: str | Path) -> Optional[Plugin]","titles":["模块 liteyuki.plugin.load"]},"230":{"title":"func load_plugins(*plugin_dir: str, *, ignore_warning: bool = True) -> set[Plugin]","titles":["模块 liteyuki.plugin.load"]},"231":{"title":"func format_display_name(display_name: str, plugin_type: PluginType) -> str","titles":["模块 liteyuki.plugin.load"]},"232":{"title":"模块 liteyuki.plugin.manager","titles":[]},"233":{"title":"模块 liteyuki.plugins","titles":[]},"234":{"title":"模块 liteyuki.plugin.model","titles":[]},"235":{"title":"class PluginType(Enum)","titles":["模块 liteyuki.plugin.model"]},"236":{"title":"attr APPLICATION = 'application'","titles":["模块 liteyuki.plugin.model","class PluginType(Enum)"]},"237":{"title":"attr SERVICE = 'service'","titles":["模块 liteyuki.plugin.model","class PluginType(Enum)"]},"238":{"title":"attr MODULE = 'module'","titles":["模块 liteyuki.plugin.model","class PluginType(Enum)"]},"239":{"title":"attr UNCLASSIFIED = 'unclassified'","titles":["模块 liteyuki.plugin.model","class PluginType(Enum)"]},"240":{"title":"attr TEST = 'test'","titles":["模块 liteyuki.plugin.model","class PluginType(Enum)"]},"241":{"title":"class PluginMetadata(BaseModel)","titles":["模块 liteyuki.plugin.model"]},"242":{"title":"attr name: str = NO_DEFAULT","titles":["模块 liteyuki.plugin.model","class PluginMetadata(BaseModel)"]},"243":{"title":"attr description: str = ''","titles":["模块 liteyuki.plugin.model","class PluginMetadata(BaseModel)"]},"244":{"title":"attr usage: str = ''","titles":["模块 liteyuki.plugin.model","class PluginMetadata(BaseModel)"]},"245":{"title":"attr type: PluginType = PluginType.UNCLASSIFIED","titles":["模块 liteyuki.plugin.model","class PluginMetadata(BaseModel)"]},"246":{"title":"attr author: str = ''","titles":["模块 liteyuki.plugin.model","class PluginMetadata(BaseModel)"]},"247":{"title":"attr homepage: str = ''","titles":["模块 liteyuki.plugin.model","class PluginMetadata(BaseModel)"]},"248":{"title":"attr extra: dict[str, Any] = {}","titles":["模块 liteyuki.plugin.model","class PluginMetadata(BaseModel)"]},"249":{"title":"class Plugin(BaseModel)","titles":["模块 liteyuki.plugin.model"]},"250":{"title":"func hash self","titles":["模块 liteyuki.plugin.model","class Plugin(BaseModel)"]},"251":{"title":"attr model_config = {'arbitrary_types_allowed': True}","titles":["模块 liteyuki.plugin.model","class Plugin(BaseModel)"]},"252":{"title":"attr name: str = NO_DEFAULT","titles":["模块 liteyuki.plugin.model","class Plugin(BaseModel)"]},"253":{"title":"attr module: ModuleType = NO_DEFAULT","titles":["模块 liteyuki.plugin.model","class Plugin(BaseModel)"]},"254":{"title":"attr module_name: str = NO_DEFAULT","titles":["模块 liteyuki.plugin.model","class Plugin(BaseModel)"]},"255":{"title":"attr metadata: Optional[PluginMetadata] = None","titles":["模块 liteyuki.plugin.model","class Plugin(BaseModel)"]},"256":{"title":"模块 liteyuki.plugins.liteecho","titles":[]},"257":{"title":"async func liteecho(event: MessageEvent)","titles":["模块 liteyuki.plugins.liteecho"]},"258":{"title":"模块 liteyuki.plugins.plugin_loader","titles":[]},"259":{"title":"func default_plugins_loader()","titles":["模块 liteyuki.plugins.plugin_loader"]},"260":{"title":"模块 liteyuki.utils","titles":[]},"261":{"title":"func is_coroutine_callable(call: Callable[..., Any]) -> bool","titles":["模块 liteyuki.utils"]},"262":{"title":"func run_coroutine(*coro: Coroutine)","titles":["模块 liteyuki.utils"]},"263":{"title":"func run_coroutine_in_thread(*coro: Coroutine)","titles":["模块 liteyuki.utils"]},"264":{"title":"func path_to_module_name(path: Path) -> str","titles":["模块 liteyuki.utils"]},"265":{"title":"func async_wrapper(func: Callable[..., Any]) -> Callable[..., Coroutine]","titles":["模块 liteyuki.utils"]},"266":{"title":"通道通信","titles":[]},"267":{"title":"简介","titles":["通道通信"]},"268":{"title":"示例","titles":["通道通信"]},"269":{"title":"共享内存通信","titles":["通道通信"]},"270":{"title":"简介","titles":["通道通信","共享内存通信"]},"271":{"title":"示例","titles":["通道通信","共享内存通信"]},"272":{"title":"开发指南","titles":[]},"273":{"title":"如何开发","titles":["开发指南"]},"274":{"title":"建议","titles":["开发指南","如何开发"]},"275":{"title":"项目结构","titles":["开发指南"]},"276":{"title":"规范化","titles":["开发指南"]},"277":{"title":"最后","titles":["开发指南"]},"278":{"title":"轻雪函数","titles":[]},"279":{"title":"函数文件","titles":["轻雪函数"]},"280":{"title":"命令文档","titles":["轻雪函数"]},"281":{"title":"示例","titles":["轻雪函数","命令文档"]},"282":{"title":"API","titles":["轻雪函数"]},"283":{"title":"结束关键字","titles":["轻雪函数"]},"284":{"title":"简介","titles":[]},"285":{"title":"加载资源包","titles":["简介"]},"286":{"title":"简介","titles":[]},"287":{"title":"开始","titles":["简介"]},"288":{"title":"创建插件","titles":["简介","开始"]},"289":{"title":"编写逻辑部分","titles":["简介","开始"]},"290":{"title":"加载插件","titles":["简介","开始"]},"291":{"title":"方法1","titles":["简介","开始","加载插件"]},"292":{"title":"方法2","titles":["简介","开始","加载插件"]},"293":{"title":"用户协议","titles":[]},"294":{"title":"基础插件","titles":[]},"295":{"title":"轻雪命令liteyuki_command","titles":["基础插件"]},"296":{"title":"命令别名","titles":["基础插件","轻雪命令liteyuki_command"]},"297":{"title":"插件/包管理器 liteyuki_pacman","titles":["基础插件"]},"298":{"title":"命令别名","titles":["基础插件","插件/包管理器 liteyuki_pacman"]},"299":{"title":"用户管理liteyuki_user","titles":["基础插件"]},"300":{"title":"功能插件命令","titles":[]},"301":{"title":"轻雪天气liteyuki_weather","titles":["功能插件命令"]},"302":{"title":"命令别名","titles":["功能插件命令","轻雪天气liteyuki_weather"]},"303":{"title":"统计信息liteyuki_statistics","titles":["功能插件命令"]},"304":{"title":"命令别名","titles":["功能插件命令","统计信息liteyuki_statistics"]}},"dirtCount":0,"index":[["当前bot",{"2":{"303":1}}],["当前群聊",{"2":{"303":1}}],["当前会话启用",{"2":{"297":1}}],["秒",{"2":{"303":2}}],["小时",{"2":{"303":2}}],["天",{"2":{"303":2}}],["天气",{"2":{"301":1,"302":1}}],["格式",{"2":{"303":1}}],["格式为onebot",{"2":{"295":1}}],["统计时间范围为duration",{"2":{"303":1}}],["统计周期为period",{"2":{"303":1}}],["统计信息",{"2":{"303":1}}],["统计信息liteyuki",{"0":{"303":1},"1":{"304":1}}],["功能",{"2":{"303":1}}],["功能插件命令",{"0":{"300":1},"1":{"301":1,"302":1,"303":1,"304":1}}],["个人全局生效",{"2":{"301":1}}],["个人信息",{"2":{"299":1}}],["绑定城市",{"2":{"302":1}}],["绑定查询城市",{"2":{"301":1}}],["绑定端口",{"2":{"1":1}}],["海淀",{"2":{"301":1}}],["北京",{"2":{"301":1}}],["受限于nonebot2钩子函数的依赖注入参数",{"2":{"298":1}}],["帮助",{"2":{"298":1}}],["列表",{"2":{"298":1}}],["列出所有资源包",{"2":{"297":1}}],["列出所有插件",{"2":{"297":1}}],["更改",{"2":{"298":1}}],["更新",{"2":{"298":1}}],["更新插件商店索引",{"2":{"297":1}}],["更新轻雪",{"2":{"295":1,"296":1}}],["更新轻雪失败",{"2":{"6":1}}],["全局停用",{"2":{"298":1}}],["全局启用",{"2":{"297":1,"298":1}}],["搜索",{"2":{"298":1}}],["卸载",{"2":{"298":2}}],["卸载资源包",{"2":{"297":1}}],["卸载插件",{"2":{"297":1}}],["私聊所有人可用",{"2":{"297":2}}],["包管理器",{"0":{"297":1},"1":{"298":1}}],["包括子task",{"2":{"280":1}}],["包括chromium",{"2":{"15":1}}],["切换图片模式",{"2":{"296":1}}],["切换到bot目录下",{"2":{"12":1}}],["状态",{"2":{"296":1}}],["别名",{"2":{"296":1,"298":1,"299":1,"302":1,"304":1}}],["别用你那b",{"2":{"15":1}}],["所有人",{"2":{"295":1,"297":1,"299":3}}],["所以在编写lyfunction时也要注意异步的调用",{"2":{"283":1}}],["所以此项目既是liteyukibot应用仓库",{"2":{"275":1}}],["群聊",{"2":{"296":1}}],["群聊仅群主",{"2":{"295":1,"297":2}}],["群号",{"2":{"295":1}}],["管理员",{"2":{"295":1,"297":2}}],["停用插件",{"2":{"297":2}}],["停用",{"2":{"296":1,"298":1}}],["停用机器人",{"2":{"295":1}}],["停止后钩子",{"2":{"55":1}}],["停止前钩子",{"2":{"54":1}}],["停止",{"2":{"44":1}}],["停止轻雪",{"2":{"23":1,"26":1}}],["查询目标地实时天气",{"2":{"301":1}}],["查询实时天气",{"2":{"301":1}}],["查询",{"2":{"296":1,"299":1}}],["查询配置项",{"2":{"295":1}}],["查看用户信息菜单",{"2":{"299":1}}],["查看插件帮助",{"2":{"297":1}}],["查看轻雪文档",{"2":{"295":1}}],["查看统计信息和状态",{"2":{"295":1}}],["查看当前bot",{"2":{"295":1}}],["版本",{"2":{"295":1}}],["❌",{"2":{"295":11}}],["超级用户可用",{"2":{"295":1,"297":2}}],["超级用户",{"2":{"295":10,"297":10}}],["超级用户列表",{"2":{"1":1}}],["重载",{"2":{"298":1}}],["重载所有资源包",{"2":{"297":1}}],["重载资源",{"2":{"296":1}}],["重载轻雪",{"2":{"295":1}}],["重启轻雪",{"2":{"296":1}}],["重启轻雪即可加载插件",{"2":{"291":1}}],["重启轻雪本体",{"2":{"22":1}}],["重启后钩子",{"2":{"57":1}}],["重启前钩子",{"2":{"56":1}}],["重启",{"2":{"44":1}}],["举例",{"2":{"295":1}}],["权限",{"2":{"295":1,"297":2,"299":1}}],["~代替",{"2":{"294":1}}],["~可以使用插件",{"2":{"294":1}}],["命令",{"2":{"295":1,"296":1,"297":2,"298":1,"299":2,"301":1,"302":1,"303":1,"304":1}}],["命令别名",{"0":{"296":1,"298":1,"302":1,"304":1},"2":{"294":1,"299":1}}],["命令文档",{"0":{"280":1},"1":{"281":1}}],["系统信息及python信息",{"2":{"293":1}}],["分钟",{"2":{"303":2}}],["分发",{"2":{"293":1}}],["分工明确",{"2":{"124":1}}],["修改优先级",{"2":{"297":1}}],["修改",{"2":{"293":1}}],["修订文档时",{"2":{"276":1}}],["保存后轻雪会自动重载nonebot进程",{"2":{"292":1}}],["保持轻雪运行",{"2":{"21":1}}],["方法2",{"0":{"292":1}}],["方法1",{"0":{"291":1}}],["用户管理liteyuki",{"0":{"299":1}}],["用户协议",{"0":{"293":1}}],["用observer的on",{"2":{"289":1}}],["用于统计bot接收到的消息",{"2":{"303":1}}],["用于开发nonebot时进行文件系统变更重载",{"2":{"289":1}}],["用于结束当前已完成function的执行",{"2":{"283":1}}],["用于存放内置插件",{"2":{"233":1}}],["用于获取和唯一标识",{"2":{"138":1}}],["用于进程间通信",{"2":{"62":1}}],["排除的文件扩展名",{"2":{"289":1}}],["因此插件主要是一些后台任务或者与聊天机器人的通信",{"2":{"289":1}}],["因此无法通过内存共享和直接对象传递的方式进行通信",{"2":{"267":1}}],["定义插件元数据",{"2":{"288":1}}],["定义变量",{"2":{"280":1}}],["导入轻雪bot和日志",{"2":{"289":1}}],["导入文件系统事件",{"2":{"289":1}}],["导入文件系统观察器",{"2":{"289":1}}],["导入文件夹下多个插件",{"2":{"230":1}}],["导入逻辑部分",{"2":{"288":1}}],["第三方资源包开发者需要注意版本兼容性",{"2":{"285":1}}],["└─",{"2":{"285":1}}],["└───",{"2":{"285":1}}],["└─resource",{"2":{"285":2}}],["├─templates",{"2":{"285":1}}],["├─metadata",{"2":{"285":2}}],["正常的路径应该是这样的",{"2":{"285":1}}],["只需要将其解压到根目录resources目录下即可",{"2":{"285":1}}],["只负责处理和回应消息",{"2":{"6":1}}],["zip格式压缩的",{"2":{"285":1}}],["zh",{"0":{"225":1,"226":1},"2":{"2":1,"225":2,"226":1,"275":1}}],["错位等无法预料的事情发生",{"2":{"284":1}}],["异常",{"2":{"284":1}}],["异步任务结束关键字",{"2":{"283":1}}],["异步等待",{"2":{"280":1}}],["异步包装器",{"2":{"265":1}}],["异步接收数据",{"2":{"73":1}}],["异步接收函数",{"2":{"64":1}}],["异步过滤函数",{"2":{"67":1}}],["异步进程生命周期函数",{"2":{"41":1}}],["异步生命周期函数",{"2":{"38":1}}],["欢迎各位投稿资源包到轻雪资源商店",{"2":{"284":1}}],["部分异常信息",{"2":{"293":1}}],["部分内容制作需要一点点前端基础",{"2":{"284":1}}],["部分来源于",{"2":{"260":1}}],["讲起打包成一个新的资源包",{"2":{"284":1}}],["仅需按照原有路径进行文件替换即可",{"2":{"284":1}}],["资源",{"2":{"284":1}}],["资源包管理",{"2":{"297":1}}],["资源包的结构会随着轻雪的更新而有变动",{"2":{"285":1}}],["资源包的制作很简单",{"2":{"284":1}}],["资源包加载遵循一个优先级",{"2":{"285":1}}],["资源包描述",{"2":{"285":1}}],["资源包名称",{"2":{"285":1}}],["资源包通常是以",{"2":{"285":1}}],["资源包",{"2":{"284":1,"298":1}}],["它允许你一定程度上自定义轻雪的外观",{"2":{"284":1}}],["它允许你在轻雪中运行一些自定义的由数据驱动的命令",{"2":{"278":1}}],["亦可根据用途称为主题包",{"2":{"284":1}}],["编写逻辑部分",{"0":{"289":1}}],["编写轻雪函数推荐你使用vs",{"2":{"283":1}}],["编辑时的语法高亮可采取shell格式",{"2":{"279":1}}],["那么加载b包后",{"2":{"285":1}}],["那么你能够很快就上手",{"2":{"284":1}}],["那么当前所有函数包的task都会被截停销毁",{"2":{"283":1}}],["那么将会被解析为nickname而不是命令",{"2":{"6":1}}],["的情况是效率提升的关键",{"2":{"283":1}}],["避免出现",{"2":{"283":1}}],["由于liteyukibot基于异步运行",{"2":{"283":1}}],["结束关键字",{"0":{"283":1}}],["结束函数关键字",{"2":{"280":1}}],["理论上所有基于onebotv11的api都可调用",{"2":{"282":1}}],["则该文件夹不会被识别为资源包",{"2":{"285":1}}],["则需要删除await",{"2":{"281":1}}],["则传入泛型默认开启",{"2":{"70":1}}],["无需手动创建实例",{"2":{"292":1}}],["无需手动初始化bot",{"2":{"155":1}}],["无限戳",{"2":{"281":1}}],["执行",{"2":{"281":1}}],["疯狂戳好友",{"2":{"281":1}}],["否则会导致渲染失败或渲染结果不理想",{"2":{"284":1}}],["否则task对象会被销毁",{"2":{"280":1}}],["否则默认关闭",{"2":{"70":1}}],["等待所有异步任务结束",{"2":{"280":1}}],["单线程走到底",{"2":{"283":1}}],["单位s",{"2":{"280":1}}],["单元测试目录",{"2":{"275":1}}],["也支持句末注释",{"2":{"279":1}}],["也可以监听其他进程的消息",{"2":{"267":1}}],["支持中英文",{"2":{"301":2}}],["支持中英文城市名",{"2":{"301":1}}],["支持多个关键词查询",{"2":{"301":1}}],["支持绑定城市",{"2":{"301":1}}],["支持单行注释",{"2":{"279":1}}],["支持onebotv11标准",{"2":{"9":1}}],["函数文件放在资源包的functions目录下",{"2":{"279":1}}],["函数文件",{"0":{"279":1}}],["函数列表",{"2":{"45":1}}],["属于资源包的一部分",{"2":{"278":1}}],["是可以相对引用的",{"2":{"285":1}}],["是轻雪的一个功能",{"2":{"278":1}}],["是否为协程可调用对象",{"2":{"261":1}}],["是否忽略警告",{"2":{"230":1}}],["是否忽略键不存在的错误",{"2":{"106":1}}],["是否包含顶层文件夹",{"2":{"226":1}}],["是否阻断后续优先级更低的匹配器",{"2":{"170":1}}],["是否递归监听子目录",{"2":{"153":1}}],["是否开启类型检查",{"2":{"70":1}}],["是否允许更新",{"2":{"2":1}}],["是否自动更新轻雪",{"2":{"1":1}}],["是否自动上报问题给轻雪服务器",{"2":{"1":1}}],["是否显示日志等级图标",{"2":{"1":1}}],["最后",{"0":{"277":1}}],["总结来说就是你干了什么",{"2":{"276":1}}],["给event添加新字段",{"2":{"276":1}}],["具体请参考gitmoji",{"2":{"276":1}}],["表示修复bug等",{"2":{"276":1}}],["表示引入新功能",{"2":{"276":1}}],["我们在src",{"2":{"292":1}}],["我们欢迎任何人参与开发",{"2":{"277":1}}],["我们使用gitmoji来标记commit的类型",{"2":{"276":1}}],["我们专门为minecraft开发的服务器bot",{"2":{"9":1}}],["应在每次完成一个功能或修复一个bug后提交代码",{"2":{"276":1}}],["应在初始化时调用",{"2":{"259":1}}],["尽量避免使用单引号",{"2":{"276":1}}],["尽量不要冲突",{"2":{"124":1}}],["没有危害的",{"2":{"276":1}}],["没有异步的必要",{"2":{"71":1}}],["提交到轻雪仓库的代码",{"2":{"276":1}}],["提供",{"2":{"6":1}}],["代码请遵循pep8和google",{"2":{"276":1}}],["规范化",{"0":{"276":1}}],["规则函数签名",{"2":{"178":1}}],["规则",{"2":{"170":1}}],["业务逻辑请在此目录下进行开发",{"2":{"275":1}}],["同时用户也应该自行选择可用的资源包",{"2":{"285":1}}],["同时也是liteyuki框架的仓库",{"2":{"275":1}}],["同步接收数据",{"2":{"72":1}}],["同步接收函数",{"2":{"63":1}}],["同步过滤函数",{"2":{"66":1}}],["同步进程生命周期函数",{"2":{"40":1}}],["同步生命周期函数",{"2":{"37":1}}],["中文文档",{"2":{"275":1}}],["英文文档",{"2":{"275":1}}],["文档请遵循markdown语法",{"2":{"276":1}}],["文档目录",{"2":{"275":1}}],["文件内容为一系列的命令",{"2":{"279":1}}],["文件名以",{"2":{"279":1}}],["文件夹路径",{"2":{"230":1}}],["文件路径",{"2":{"224":1}}],["文件数据",{"2":{"222":1}}],["工具目录",{"2":{"275":1}}],["内置资源包目录",{"2":{"275":1}}],["内存共享是线程安全的",{"2":{"270":1}}],["内存共享使得代码编写更加简洁",{"2":{"270":1}}],["内存",{"2":{"15":1,"293":1}}],["框架目录",{"2":{"275":1}}],["机器人源码目录",{"2":{"275":1}}],["机器人入口文件",{"2":{"275":1}}],["机器人昵称列表",{"2":{"1":1}}],["项目结构",{"0":{"275":1}}],["项目目录下的配置文件优先",{"2":{"131":1}}],["项目目录下的配置文件优先级高于config目录下的配置文件",{"2":{"124":1}}],["项目目录下的config",{"2":{"131":1}}],["出现冲突请与仓库维护者联系",{"2":{"273":1}}],["将你的分支合并到轻雪仓库的main分支",{"2":{"273":1}}],["将你的代码提交到这个分支",{"2":{"273":1}}],["将消息按照onebot标准处理好上报给轻雪",{"2":{"6":1}}],["组织账户下",{"2":{"273":1}}],["首先创建一个文件夹",{"2":{"288":1}}],["首先fork一份轻雪仓库到你的个人",{"2":{"273":1}}],["首次运行后生成config",{"2":{"0":1}}],["引用",{"2":{"273":1}}],["引用计数",{"2":{"117":1}}],["线程锁会自动保护共享内存的读写操作",{"2":{"270":1}}],["相比于普通进程通信",{"2":{"270":1}}],["相对路径",{"2":{"222":1}}],["且通过安全的方式传输到轻雪的服务器",{"2":{"293":1}}],["且通道标识为",{"2":{"268":1}}],["且遵守了相关字体开源协议",{"2":{"10":1}}],["创建入口文件",{"2":{"292":1}}],["创建插件",{"0":{"288":1}}],["创建子进程的同时会初始化一个被动通道和一个主动通道",{"2":{"268":1}}],["创建asyncio",{"2":{"137":1}}],["实现",{"2":{"268":1}}],["实现端本身不负责处理响应逻辑",{"2":{"6":1}}],["被动模式",{"2":{"268":1}}],["被动模式由chan",{"2":{"268":1}}],["被动通道传递通道",{"2":{"79":1,"85":1}}],["被动通道",{"2":{"76":1}}],["即可创建一个插件",{"2":{"288":1}}],["即后加载的资源包会覆盖前面的资源包",{"2":{"285":1}}],["即不等待",{"2":{"280":1}}],["即被动模式和主动模式",{"2":{"268":1}}],["即轻雪作为服务端",{"2":{"3":1}}],["有一个task任务没有完成而await被执行了",{"2":{"283":1}}],["有条件可以使用中英双语",{"2":{"276":1}}],["有两种接收模式",{"2":{"268":1}}],["有的插件安装后报错无法启动",{"2":{"6":1}}],["这样可以在控制台看到更多的调试信息",{"2":{"274":1}}],["这时可以通过通道对主进程发送消息",{"2":{"267":1}}],["这里给出一个参考值",{"2":{"3":1}}],["里",{"2":{"267":1}}],["简介",{"0":{"267":1,"270":1,"284":1,"286":1},"1":{"285":1,"287":1,"288":1,"289":1,"290":1,"291":1,"292":1}}],["路径a",{"2":{"264":1}}],["转换路径为模块名",{"2":{"264":1}}],["判断是否为协程可调用对象",{"2":{"261":1}}],["一个",{"2":{"288":1}}],["一个键不要多次出现",{"2":{"124":1}}],["一些常用的工具类",{"2":{"260":1}}],["根据不同类型插件设置颜色",{"2":{"231":1}}],["去头路径",{"2":{"227":1}}],["忽略的路径",{"2":{"226":1}}],["忽略私有函数和类",{"2":{"224":1}}],["\`",{"2":{"225":14}}],["+",{"2":{"225":2,"264":1}}],["+=",{"2":{"22":1,"74":1,"225":15}}],["字体包",{"2":{"284":1}}],["字符串请使用双引号",{"2":{"276":1}}],["字符串",{"2":{"225":1}}],["字段",{"2":{"3":1}}],["语言包等",{"2":{"284":1}}],["语言",{"2":{"225":1,"226":1}}],["输入值会被执行以转换为正确的类型",{"2":{"295":1}}],["输入playwright",{"2":{"6":1}}],["输出",{"2":{"279":1}}],["输出文件夹",{"2":{"226":1}}],["输出文件",{"2":{"222":1}}],["目标路径",{"2":{"221":1}}],["目前可用性较低",{"2":{"8":1}}],["目前markdown消息支持lagrange",{"2":{"8":1}}],["插件停用只能阻断传入响应",{"2":{"298":1}}],["插件管理",{"2":{"297":1,"298":1}}],["插件",{"0":{"297":1},"1":{"298":1}}],["插件信息",{"2":{"293":1}}],["插件描述",{"2":{"288":1}}],["插件版本",{"2":{"288":1}}],["插件开发请在此目录下进行开发",{"2":{"275":1}}],["插件开发无需阅读本文档",{"2":{"273":1}}],["插件类型",{"2":{"231":1,"288":1}}],["插件名称",{"2":{"229":1,"231":1,"288":1}}],["插件字典",{"2":{"188":1}}],["插件路径",{"2":{"155":1}}],["x26",{"2":{"176":1,"225":4}}],["x3c",{"2":{"20":4,"22":1,"162":5,"174":1,"225":8,"229":2,"231":2,"280":6,"301":2,"303":2}}],["505468b及以后的lagrange",{"2":{"295":1}}],["59",{"2":{"228":1,"232":1}}],["55",{"2":{"177":1}}],["52",{"2":{"173":1}}],["51",{"2":{"168":1}}],["添加配置项",{"2":{"295":1}}],["添加sleep",{"2":{"281":1}}],["添加处理函数",{"2":{"171":1}}],["添加进程",{"2":{"138":1}}],["优先级",{"2":{"170":1}}],["匹配器",{"2":{"170":1}}],["45m",{"2":{"303":2}}],["44",{"2":{"167":1}}],["47",{"2":{"163":1,"186":1}}],["回复消息",{"2":{"166":1}}],["⭕",{"2":{"162":1}}],["⚠️",{"2":{"162":1}}],["✅",{"2":{"162":1}}],["ℹ️信息",{"2":{"268":4}}],["ℹ️",{"2":{"162":1}}],["🐛",{"2":{"162":1}}],["31",{"2":{"256":1}}],["3",{"2":{"159":1,"230":1,"268":1}}],["6",{"2":{"159":1}}],["测试版本号",{"2":{"159":1}}],["此模块为内置插件文件夹",{"2":{"233":1}}],["此模块为liteyuki的框架整体",{"2":{"158":1}}],["此模块用于注册观察者函数",{"2":{"143":1}}],["运行环境的设备信息",{"2":{"293":1}}],["运行在主进程中",{"2":{"286":1}}],["运行协程",{"2":{"262":1}}],["运行处理函数",{"2":{"172":1}}],["运行插件",{"2":{"155":1}}],["运行订阅者接收函数",{"2":{"110":1}}],["上午12",{"2":{"234":1}}],["上午11",{"2":{"132":1}}],["上午6",{"2":{"189":1}}],["上午9",{"2":{"160":1}}],["上午5",{"2":{"154":1}}],["事件过滤器",{"2":{"153":1}}],["事件循环",{"2":{"19":1}}],["防抖函数",{"2":{"146":1}}],["防止获取空指针",{"2":{"117":1}}],["位置1为filesystemevent",{"2":{"144":1,"145":1}}],["启用",{"2":{"296":1,"298":1}}],["启用插件后",{"2":{"292":1}}],["启用开发者模式",{"2":{"274":1}}],["启用该模块需要在配置文件中设置dev",{"2":{"143":1}}],["启动后控制台输出",{"2":{"268":1}}],["启动后钩子",{"2":{"53":1}}],["启动所有进程",{"2":{"137":1}}],["启动发布订阅接收器循环",{"2":{"111":1}}],["启动前钩子",{"2":{"52":1}}],["启动",{"2":{"44":1}}],["启动容器",{"2":{"13":1}}],["启动bot",{"2":{"12":1}}],["启动时会加载项目目录下config",{"2":{"0":1}}],["检查进程是否存活",{"2":{"142":1}}],["终止进程并从进程字典中删除",{"2":{"140":1}}],["对于主动推送的插件不生效",{"2":{"298":1}}],["对于不同资源包的不同文件",{"2":{"285":1}}],["对外启动方法",{"2":{"137":1}}],["对公开放时建议设置",{"2":{"2":1}}],["按照读取文件的优先级反向覆盖",{"2":{"130":1}}],["从一个标准的轻雪项目加载配置文件",{"2":{"131":1}}],["从目录下加载配置文件",{"2":{"130":1}}],["从指定文件加载配置项",{"2":{"129":1}}],["8",{"2":{"126":1,"127":1,"128":1,"154":1,"163":1,"167":1,"168":1,"173":1,"177":1,"186":1,"189":1,"222":1,"224":1,"256":1,"257":1,"258":1}}],["但请注意甄别第三方插件的安全性",{"2":{"293":1}}],["但请保证以上三个字段",{"2":{"285":1}}],["但若出现非单function的情况",{"2":{"283":1}}],["但需单独起篇幅",{"2":{"278":1}}],["但在嵌套字符串时可以使用单引号",{"2":{"276":1}}],["但一个通道只能使用一种",{"2":{"268":1}}],["但也包含原有的键值对",{"2":{"125":1}}],["但是请保留原作者信息",{"2":{"293":1}}],["但是更加轻量级并且线程安全",{"2":{"99":1}}],["但是bot昵称有一个help",{"2":{"6":1}}],["但是基本上都是一样的",{"2":{"3":1}}],["但是部分内容会被覆盖",{"2":{"1":1}}],["扁平化后的配置文件",{"2":{"125":1}}],["扁平化配置文件",{"2":{"125":1}}],["扁平化编写",{"2":{"124":1}}],["注意不要嵌套文件夹",{"2":{"285":1}}],["注意冲突时的优先级",{"2":{"124":1}}],["注册一个函数在nonebot启动后运行",{"2":{"268":1}}],["注册一个函数在轻雪启动后运行",{"2":{"268":1}}],["注册文件系统变化监听器",{"2":{"153":1}}],["注册重启后的函数",{"2":{"32":1,"51":1}}],["注册进程重启前的函数",{"2":{"31":1,"50":1}}],["注册进程停止前的函数",{"2":{"30":1,"48":1}}],["注册停止后的函数",{"2":{"29":1,"49":1}}],["注册启动时的函数",{"2":{"46":1,"47":1}}],["注册启动后的函数",{"2":{"28":1}}],["注册启动前的函数",{"2":{"27":1}}],["每隔0",{"2":{"281":1}}],["每行一个命令",{"2":{"279":1}}],["每个语言的文档都要修订",{"2":{"276":1}}],["每个配置文件给一个或一类服务提供配置",{"2":{"124":1}}],["每种语言都有对应的文档",{"2":{"276":1}}],["每次接收到字符串数据时都会运行",{"2":{"268":1}}],["每3秒发送一次消息",{"2":{"268":1}}],["每天4点检查更新",{"2":{"1":1}}],["多配置文件编写原则",{"2":{"124":1}}],["共享内存通信",{"0":{"269":1},"1":{"270":1,"271":1}}],["共享内存对象",{"2":{"116":1}}],["共享内存模块",{"2":{"99":1}}],["订阅者接收消息时的回调",{"2":{"109":1}}],["频道",{"2":{"108":1,"109":1,"110":1}}],["发布消息",{"2":{"108":1}}],["发送函数为同步函数",{"2":{"71":1}}],["发送数据",{"2":{"71":1,"96":1}}],["删除键值对",{"2":{"106":1}}],["值",{"2":{"104":1,"105":1}}],["键值对",{"2":{"107":1}}],["键",{"2":{"104":1,"105":1,"106":1}}],["类似于minecraft的mcfunction",{"2":{"278":1}}],["类似于redis",{"2":{"99":1}}],["类型",{"2":{"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"63":1,"64":1,"65":1,"66":1,"67":1,"68":1,"75":1,"76":1,"77":1,"78":1,"79":1,"100":1,"101":1,"116":1,"144":1,"145":1,"178":1}}],["关闭通道",{"2":{"98":1}}],["关键字参数",{"2":{"24":1}}],["调用机器人函数",{"2":{"295":1}}],["调用机器人api",{"2":{"295":1}}],["调用重启进程方法",{"2":{"289":1}}],["调用函数",{"2":{"280":1}}],["调用bot",{"2":{"280":1}}],["调用",{"2":{"92":1}}],["通过关键词搜索插件",{"2":{"297":1}}],["通过装饰器注册一个函数在接收到消息时运行",{"2":{"268":1}}],["通常是目录不存在或目录为空",{"2":{"230":1}}],["通常会默认传入chan",{"2":{"138":1}}],["通信",{"2":{"89":1}}],["通道是全双工的",{"2":{"268":1}}],["通道通信",{"0":{"266":1},"1":{"267":1,"268":1,"269":1,"270":1,"271":1}}],["通道实例",{"2":{"80":1,"81":1,"82":1,"83":1}}],["通道名称",{"2":{"80":1,"82":1}}],["通道传递通道",{"2":{"77":1,"78":1}}],["通道id",{"2":{"70":1,"95":1}}],["主题包中的html渲染使用js来规定数据的渲染位置",{"2":{"284":1}}],["主题商店提供了一些资源包供你选择",{"2":{"284":1}}],["主动模式需调用chan",{"2":{"268":1}}],["主动通道传递通道",{"2":{"84":1}}],["主进程中",{"2":{"268":1}}],["主进程中通过get",{"2":{"268":1}}],["主进程接收到消息后重启对应子进程",{"2":{"267":1}}],["主进程订阅者接收函数",{"2":{"100":1}}],["主进程创建单例",{"2":{"77":1,"78":1}}],["设置用户信息或打开属性设置菜单",{"2":{"299":1}}],["设置",{"2":{"296":1,"299":1}}],["设置共享内存",{"2":{"271":1}}],["设置后的插件名称",{"2":{"231":1}}],["设置插件名称颜色",{"2":{"231":1}}],["设置键值对",{"2":{"104":1}}],["设置通道实例",{"2":{"80":1,"81":1}}],["设备上python环境太乱了",{"2":{"6":1}}],["子进程中获取通道直接导入进程全局单例即可",{"2":{"268":1}}],["子进程中导入单例active",{"2":{"268":1}}],["子进程订阅者接收函数",{"2":{"101":1}}],["子进程初始化时实例化",{"2":{"77":1,"78":1}}],["子进程可用的主动和被动通道",{"2":{"75":1}}],["装饰回调函数实现",{"2":{"268":1}}],["装饰一个函数在接收到数据后执行",{"2":{"153":1}}],["装饰器",{"2":{"74":1,"109":1,"153":1,"171":2}}],["装置要求",{"0":{"15":1},"1":{"16":1}}],["接收数据",{"2":{"97":1}}],["接收数据并执行函数",{"2":{"74":1}}],["接收函数",{"2":{"65":1}}],["会自动判断key版本",{"2":{"301":1}}],["会自动识别文件格式",{"2":{"129":1}}],["会话负载信息",{"2":{"293":1}}],["会触发最大递归深度限制",{"2":{"281":1}}],["会挂起等待",{"2":{"73":1}}],["会阻塞线程",{"2":{"72":1}}],["数据",{"2":{"71":1,"72":1,"73":1,"96":1,"97":1,"108":1,"110":1}}],["过滤函数",{"2":{"68":1,"74":1}}],["依赖关系",{"2":{"61":1}}],["并在其中写入一些代码",{"2":{"292":1}}],["并在其中写入以下代码",{"2":{"292":1}}],["并在其中创建一个",{"2":{"288":1}}],["并且应该在metadata",{"2":{"285":1}}],["并且不用修改源代码",{"2":{"284":1}}],["并且支持vitepress相关内容",{"2":{"276":1}}],["并遵循其许可进行修改",{"2":{"260":1}}],["并发运行异步函数",{"2":{"45":1}}],["并使用克隆而非直接下载的方式部署轻雪",{"2":{"6":1}}],["|",{"0":{"45":1,"155":1,"165":1,"166":1,"181":1,"229":1},"2":{"39":1,"42":1,"45":2,"65":1,"68":1,"155":1,"165":1,"166":1,"229":1}}],["下午12",{"2":{"256":1}}],["下午11",{"2":{"228":1,"232":1}}],["下午10",{"2":{"163":1,"167":1,"168":1,"173":1,"177":1,"186":1,"258":1}}],["下午8",{"2":{"36":1}}],["下面已经列出一些推荐的实现端",{"2":{"6":1}}],["7",{"2":{"36":1,"132":1,"160":1,"228":1,"232":1,"234":1}}],["兼容键",{"2":{"35":1}}],["兼容旧版本",{"2":{"35":1}}],["获取用户信息",{"2":{"299":1}}],["获取唯一的轻雪bot实例",{"2":{"289":1}}],["获取共享内存",{"2":{"271":1}}],["获取主动通道",{"2":{"268":1}}],["获取被动通道",{"2":{"268":1}}],["获取函数和类",{"2":{"224":1}}],["获取相对路径",{"2":{"221":1}}],["获取已加载的插件",{"2":{"188":1}}],["获取所有键值对",{"2":{"107":1}}],["获取键值对",{"2":{"105":1}}],["获取通道实例们",{"2":{"83":1}}],["获取通道实例",{"2":{"82":1}}],["获取配置",{"2":{"34":1,"35":1}}],["获取轻雪实例",{"2":{"33":1}}],["为可选参数",{"2":{"294":1}}],["为必填参数",{"2":{"294":1}}],["为子进程重启时调用",{"2":{"31":1}}],["为子进程停止时调用",{"2":{"30":1}}],["为什么我启动后机器人没有反应",{"2":{"6":1}}],["未实现",{"2":{"29":1,"32":1,"55":1,"57":1}}],["返回true则执行回调函数",{"2":{"153":1}}],["返回",{"2":{"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"72":1,"73":1,"74":1,"82":1,"83":1,"97":1,"105":1,"107":1,"109":1,"125":1,"153":1,"171":1,"188":1,"224":1,"225":1,"231":1,"261":1,"264":1,"265":1}}],["自定义选项title",{"2":{"225":1}}],["自动调用",{"2":{"24":1}}],["自己整一个websocket客户端",{"2":{"8":1}}],["进程生命周期函数",{"2":{"48":2,"50":2}}],["进程函数关键字参数",{"2":{"138":1}}],["进程函数参数",{"2":{"138":1}}],["进程函数",{"2":{"42":1,"138":1}}],["进程名",{"2":{"23":1,"138":1}}],["进入轻雪目录",{"2":{"13":1}}],["join",{"0":{"139":1},"2":{"22":1,"130":1,"139":2,"140":1,"223":1,"225":4,"226":1,"230":2,"264":2}}],["js",{"2":{"8":1}}],["json",{"0":{"127":1},"2":{"0":1,"127":4,"129":2,"131":1}}],["json和toml作为配置文件",{"2":{"0":1}}],["延迟重启时间",{"2":{"22":1}}],["kill",{"2":{"140":1}}],["k",{"2":{"125":2,"225":2}}],["keyword",{"2":{"176":2}}],["keywords为城市名",{"2":{"301":2}}],["keywords",{"0":{"176":2},"2":{"176":5,"297":1,"301":2}}],["keyerror",{"2":{"106":1}}],["keyvaluestore",{"0":{"102":1},"1":{"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1},"2":{"113":1,"116":1}}],["keys",{"0":{"35":1},"2":{"35":3}}],["key",{"0":{"34":1,"35":1,"104":1,"105":1,"106":2},"2":{"34":3,"35":10,"104":6,"105":6,"106":11,"118":3,"119":3,"120":3,"125":2,"271":2,"295":4,"299":2,"301":1}}],["keyboardinterrupt",{"2":{"20":1}}],["keeping",{"2":{"21":1}}],["keep",{"0":{"21":1},"2":{"21":1}}],["kwargs=none",{"2":{"138":1}}],["kwargs",{"0":{"19":1,"24":1,"45":1,"54":1,"56":1,"92":1,"138":1},"2":{"19":3,"24":2,"45":3,"54":2,"56":2,"92":2,"138":4,"146":2,"265":2,"295":2}}],["echo",{"2":{"279":3}}],["emoji",{"2":{"276":1}}],["emsp",{"2":{"225":4}}],["empty",{"0":{"175":1,"176":1,"184":1},"2":{"184":1,"229":1,"230":1}}],["email",{"2":{"36":1,"132":1,"154":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"186":1,"189":1,"228":1,"232":1,"234":1,"256":1,"258":1}}],["enable",{"2":{"295":2,"296":1,"297":2,"298":2}}],["end",{"2":{"280":1}}],["endswith",{"2":{"129":3,"130":1,"223":1,"230":1,"289":1}}],["en",{"2":{"275":1}}],["ensure",{"2":{"262":1}}],["enum",{"0":{"190":1,"235":1},"1":{"191":1,"192":1,"193":1,"194":1,"195":1,"236":1,"237":1,"238":1,"239":1,"240":1}}],["enumerate",{"2":{"174":1}}],["encoding=",{"2":{"126":1,"127":1,"128":1,"222":1,"224":1}}],["enforcing",{"2":{"70":1}}],["e",{"2":{"106":2,"229":1,"231":1,"262":2}}],["errors=true",{"2":{"226":1}}],["error",{"0":{"106":1},"2":{"106":3,"162":2,"262":1}}],["else",{"2":{"22":1,"23":1,"33":1,"45":1,"70":1,"74":2,"80":1,"82":1,"83":1,"104":1,"105":1,"106":1,"107":1,"109":2,"126":1,"127":1,"128":1,"161":1,"162":5,"174":1,"224":9,"225":10,"226":2,"229":2,"262":1,"264":1}}],["elif",{"2":{"22":2,"70":1,"74":1,"129":4,"224":5,"229":2,"230":1}}],["extensions",{"2":{"289":2}}],["extend",{"2":{"155":1}}],["extra",{"0":{"248":1}}],["exclude",{"2":{"289":2}}],["exc",{"2":{"172":1,"229":1}}],["exception模块包含了liteyuki运行中的所有错误",{"2":{"156":1}}],["exception",{"0":{"156":1},"1":{"157":1},"2":{"21":1,"172":1,"229":1,"262":2}}],["except",{"2":{"20":1,"21":1,"106":1,"172":1,"229":1,"262":2}}],["executor",{"2":{"73":1}}],["executable",{"2":{"22":3}}],["exist",{"2":{"230":1}}],["exists",{"2":{"70":2,"80":1,"129":1,"130":1,"222":1,"230":2}}],["exit",{"2":{"22":1}}],["exiting",{"2":{"21":1}}],["event装饰器监听文件系统事件",{"2":{"289":1}}],["events",{"2":{"289":1}}],["eventhandler",{"0":{"171":2},"2":{"170":1,"171":4}}],["event",{"0":{"58":1,"59":1,"148":1,"149":1,"150":1,"151":1,"152":2,"153":2,"163":1,"172":1,"183":1,"184":1,"185":1,"257":1},"1":{"59":1,"60":2,"164":1,"165":1,"166":1},"2":{"19":4,"21":1,"26":1,"61":1,"148":1,"149":2,"150":2,"151":2,"152":3,"153":8,"163":1,"166":2,"172":4,"176":2,"181":3,"182":3,"183":2,"184":1,"185":2,"257":3,"262":2,"289":8}}],["外部启动接口",{"2":{"20":1}}],["加载",{"2":{"298":1}}],["加载插件",{"0":{"290":1},"1":{"291":1,"292":1}}],["加载插件加载器",{"2":{"19":1}}],["加载资源包",{"0":{"285":1},"2":{"297":1}}],["加载单个插件",{"2":{"229":1}}],["加入qq群775840726",{"2":{"7":1}}],["生成文档",{"2":{"226":1}}],["生成模块的markdown",{"2":{"225":1}}],["生命周期函数",{"2":{"27":2,"28":2,"29":2,"30":2,"31":2,"32":2,"39":1,"46":2,"47":2,"49":2,"51":2}}],["生命周期管理",{"2":{"19":1}}],["生产环境中推荐反向websocket",{"2":{"3":1}}],["初始化通道",{"2":{"70":1,"95":1}}],["初始化日志",{"2":{"25":1}}],["初始化轻雪",{"2":{"24":1}}],["初始化轻雪实例",{"2":{"19":1}}],["初始化",{"2":{"19":1}}],["=none",{"2":{"23":1,"70":1,"74":1,"105":1,"165":2}}],["==",{"2":{"22":3,"85":1,"86":2,"87":2,"88":1,"111":1,"117":1,"118":2,"119":2,"120":2,"121":1,"161":1,"224":4,"225":2,"264":1}}],["=",{"0":{"22":1,"23":1,"34":1,"35":1,"70":1,"74":1,"105":1,"106":1,"114":1,"115":1,"129":1,"130":1,"131":1,"138":2,"153":2,"165":2,"175":3,"176":3,"181":1,"182":1,"183":1,"191":1,"192":1,"193":1,"194":1,"195":1,"197":1,"198":1,"199":1,"200":1,"201":1,"202":1,"203":1,"205":1,"206":1,"207":1,"208":1,"210":1,"211":1,"212":1,"213":1,"214":1,"216":1,"217":1,"218":1,"219":1,"220":1,"224":1,"225":2,"226":3,"230":1,"236":1,"237":1,"238":1,"239":1,"240":1,"242":1,"243":1,"244":1,"245":1,"246":1,"247":1,"248":1,"251":1,"252":1,"253":1,"254":1,"255":1},"2":{"19":7,"22":6,"23":2,"44":7,"45":1,"60":2,"70":10,"71":1,"72":1,"73":2,"74":1,"80":1,"82":1,"83":1,"86":1,"87":1,"88":1,"91":1,"95":4,"103":6,"104":2,"105":2,"106":1,"107":1,"109":2,"111":1,"113":1,"118":3,"119":2,"120":1,"121":1,"125":2,"126":1,"127":1,"128":1,"129":1,"130":1,"131":1,"134":5,"136":3,"138":5,"140":1,"146":3,"153":2,"155":4,"162":1,"165":10,"166":1,"170":5,"175":1,"180":1,"223":1,"224":17,"225":16,"226":13,"229":12,"230":6,"231":5,"261":1,"262":2,"264":1,"265":1,"268":5,"271":1,"288":1,"289":2}}],[">",{"2":{"19":1,"27":1,"31":1,"33":1,"34":1,"35":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"72":1,"73":1,"74":3,"82":1,"83":1,"91":1,"92":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":2,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"131":1,"142":1,"146":1,"153":2,"161":1,"171":2,"172":1,"175":1,"176":1,"181":2,"182":2,"183":1,"184":1,"185":1,"188":1,"221":1,"224":1,"225":3,"226":1,"229":1,"230":1,"231":3,"261":1,"264":1,"265":1,"301":2}}],["在群聊启用",{"2":{"295":1}}],["在普通图片和markdown大图之间切换",{"2":{"295":1}}],["在配置文件中的liteyuki",{"2":{"291":1}}],["在b中定义了templates",{"2":{"285":1}}],["在设备上执行命令",{"2":{"280":1}}],["在发信器输出",{"2":{"279":1}}],["在你的仓库中创建一个pull",{"2":{"273":1}}],["在你的仓库中创建一个新的分支",{"2":{"273":1}}],["在你的仓库中进行开发",{"2":{"273":1}}],["在任意进程中均可使用",{"2":{"271":1}}],["在子进程中",{"2":{"268":1}}],["在轻雪插件中",{"2":{"268":1}}],["在新线程中运行协程",{"2":{"263":1}}],["在语言加载完成后执行",{"2":{"162":1}}],["在主进程中运行",{"2":{"111":1}}],["在github上查看",{"2":{"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"60":1,"70":1,"71":1,"72":1,"73":1,"74":1,"80":1,"81":1,"82":1,"83":1,"86":1,"87":1,"88":1,"91":1,"92":1,"95":1,"96":1,"97":1,"98":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1,"113":1,"118":1,"119":1,"120":1,"121":1,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"131":1,"134":1,"136":1,"137":1,"138":1,"139":1,"140":1,"141":1,"142":1,"146":1,"148":1,"149":1,"150":1,"151":1,"152":1,"153":1,"155":1,"161":1,"162":1,"165":1,"166":1,"170":1,"171":1,"172":1,"174":1,"175":1,"176":1,"180":1,"181":1,"182":1,"183":1,"184":1,"185":1,"188":1,"221":1,"222":1,"223":1,"224":1,"225":1,"226":1,"229":1,"230":1,"231":1,"250":1,"257":1,"259":1,"261":1,"262":1,"263":1,"264":1,"265":1}}],["在安全模式下你可以使用npm",{"2":{"6":1}}],["或插件路径",{"2":{"229":1}}],["或",{"2":{"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"60":1,"70":1,"71":1,"72":1,"73":1,"74":1,"80":1,"81":1,"82":1,"83":1,"86":1,"87":1,"88":1,"91":1,"92":1,"95":1,"96":1,"97":1,"98":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1,"113":1,"118":1,"119":1,"120":1,"121":1,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"131":1,"134":1,"136":1,"137":1,"138":1,"139":1,"140":1,"141":1,"142":1,"146":1,"148":1,"149":1,"150":1,"151":1,"152":1,"153":1,"155":1,"161":1,"162":1,"165":1,"166":1,"170":1,"171":1,"172":1,"174":1,"175":1,"176":1,"180":1,"181":1,"182":1,"183":1,"184":1,"185":1,"188":1,"221":1,"222":1,"223":1,"224":1,"225":1,"226":1,"229":1,"230":1,"231":1,"250":1,"257":1,"259":1,"261":1,"262":1,"263":1,"264":1,"265":1,"303":2}}],["源代码",{"2":{"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"60":1,"70":1,"71":1,"72":1,"73":1,"74":1,"80":1,"81":1,"82":1,"83":1,"86":1,"87":1,"88":1,"91":1,"92":1,"95":1,"96":1,"97":1,"98":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1,"113":1,"118":1,"119":1,"120":1,"121":1,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"131":1,"134":1,"136":1,"137":1,"138":1,"139":1,"140":1,"141":1,"142":1,"146":1,"148":1,"149":1,"150":1,"151":1,"152":1,"153":1,"155":1,"161":1,"162":1,"165":1,"166":1,"170":1,"171":1,"172":1,"174":1,"175":1,"176":1,"180":1,"181":1,"182":1,"183":1,"184":1,"185":1,"188":1,"221":1,"222":1,"223":1,"224":1,"225":2,"226":1,"229":1,"230":1,"231":1,"250":1,"257":1,"259":1,"261":1,"262":1,"263":1,"264":1,"265":1,"271":1}}],["参与开发默认你已经了解python语言和轻雪框架的基本使用方法",{"2":{"273":1}}],["参考liteyuki",{"2":{"155":1}}],["参考值",{"2":{"3":1}}],["参数列表",{"2":{"295":2}}],["参数为调用set",{"2":{"268":1}}],["参数",{"2":{"19":1,"22":1,"23":1,"24":2,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"34":1,"35":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"70":1,"71":1,"74":1,"80":1,"81":1,"82":1,"95":1,"96":1,"104":1,"105":1,"106":1,"108":1,"109":1,"110":1,"125":1,"138":1,"140":1,"142":1,"153":1,"155":1,"166":1,"170":1,"172":1,"221":1,"222":1,"224":1,"225":1,"226":1,"229":1,"230":1,"231":1,"261":1,"262":1,"263":1,"264":1,"265":1,"294":1,"303":1}}],["feat",{"2":{"276":1}}],["future",{"2":{"262":1}}],["function实现语法高亮",{"2":{"283":1}}],["functiondef",{"2":{"224":3}}],["functioninfo",{"0":{"196":1,"212":1,"217":1},"1":{"197":1,"198":1,"199":1,"200":1,"201":1,"202":1,"203":1},"2":{"224":2}}],["function",{"0":{"191":2},"2":{"224":3,"278":1,"280":1,"281":2,"295":3}}],["functions=",{"2":{"224":1}}],["functions",{"0":{"217":1},"2":{"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"224":1,"225":1}}],["func=none",{"2":{"153":1}}],["func=lambda",{"2":{"85":1,"86":2,"87":2,"88":1,"268":1}}],["funcs",{"0":{"45":2,"100":1,"101":1,"110":1},"2":{"44":6,"45":4,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":2,"53":2,"54":2,"55":2,"56":2,"57":2,"74":1,"109":6,"110":2,"111":1}}],["func",{"0":{"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":4,"28":3,"29":3,"30":3,"31":4,"32":3,"33":1,"34":1,"35":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"44":1,"45":3,"46":4,"47":4,"48":4,"49":4,"50":4,"51":4,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"60":1,"63":1,"64":1,"65":1,"66":1,"67":1,"68":1,"70":1,"71":1,"72":1,"73":1,"74":3,"80":1,"81":1,"82":1,"83":1,"86":1,"87":1,"88":1,"91":2,"92":1,"95":1,"96":1,"97":1,"98":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":3,"110":1,"111":1,"113":1,"118":1,"119":1,"120":1,"121":1,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"131":1,"134":1,"136":1,"137":1,"138":2,"139":1,"140":1,"141":1,"142":1,"144":1,"145":1,"146":1,"148":1,"149":1,"150":1,"151":1,"152":1,"153":4,"155":1,"161":1,"162":1,"165":1,"166":1,"170":1,"171":1,"172":1,"174":1,"175":1,"176":1,"180":1,"181":1,"182":1,"183":1,"184":1,"185":1,"188":1,"221":1,"222":1,"223":1,"224":1,"225":1,"226":1,"229":1,"230":1,"231":1,"250":1,"257":1,"259":1,"261":1,"262":1,"263":1,"264":1,"265":2},"2":{"27":7,"28":6,"29":6,"30":6,"31":7,"32":6,"39":2,"42":2,"44":6,"45":8,"46":8,"47":8,"48":8,"49":8,"50":8,"51":8,"65":2,"68":2,"70":2,"74":20,"91":1,"100":1,"101":1,"109":8,"110":2,"138":1,"146":2,"153":7,"224":2,"225":9,"261":2,"265":4,"280":1}}],["failed",{"2":{"229":1}}],["false时例如docs",{"2":{"226":1}}],["false",{"0":{"129":1,"130":1,"131":1,"175":1,"176":1,"226":1},"2":{"2":4,"70":2,"95":1,"103":2,"261":1}}],["first",{"2":{"224":2}}],["filter=lambda",{"2":{"289":1}}],["filter",{"0":{"66":1,"67":1,"68":1,"74":2,"145":1,"153":2},"2":{"68":2,"74":8,"85":1,"86":2,"87":2,"88":1,"153":5,"268":1}}],["filesystemeventhandler",{"0":{"147":1},"1":{"148":1,"149":1,"150":1,"151":1,"152":1}}],["filesystemevent",{"2":{"144":1,"145":1,"153":1,"289":2}}],["files",{"0":{"129":2,"222":1},"2":{"129":3,"130":1,"131":1,"222":1,"223":2,"226":1}}],["file",{"0":{"126":1,"127":1,"128":1,"153":1,"222":1,"223":1,"224":1},"2":{"36":1,"126":4,"127":4,"128":4,"129":12,"130":3,"132":1,"153":1,"154":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"186":1,"189":1,"222":3,"223":7,"224":8,"226":6,"228":1,"232":1,"234":1,"256":1,"258":1,"289":3}}],["friend",{"2":{"281":2}}],["front",{"0":{"225":1},"2":{"225":5,"226":3}}],["from",{"0":{"126":1,"127":1,"128":1,"129":1,"130":1},"2":{"72":1,"126":3,"127":3,"128":3,"129":4,"130":2,"131":2,"268":4,"288":1,"289":3}}],["framework",{"2":{"158":1}}],["flake8",{"2":{"274":1}}],["flat",{"0":{"125":1},"2":{"125":2,"126":1,"127":1,"128":1}}],["flag",{"2":{"44":1}}],["folder",{"0":{"223":1,"226":1},"2":{"223":2,"226":4,"227":1,"233":1}}],["found",{"2":{"71":1,"80":1,"129":1,"130":1,"140":1,"142":1}}],["format=get",{"2":{"162":1}}],["formats",{"2":{"130":1}}],["format",{"0":{"161":1,"231":1},"2":{"129":1,"161":3,"162":1,"229":2,"231":1}}],["for",{"2":{"23":1,"35":1,"45":1,"70":1,"81":1,"110":1,"125":2,"129":1,"130":2,"137":1,"139":1,"141":1,"153":1,"172":1,"174":1,"176":1,"222":1,"223":2,"224":12,"225":9,"226":3,"230":2,"259":2,"262":2,"288":1}}],["f",{"2":{"22":1,"23":2,"35":1,"70":4,"71":1,"80":2,"125":1,"126":1,"127":1,"128":1,"129":2,"130":1,"137":1,"140":2,"142":1,"222":2,"225":19,"226":1,"229":5,"230":9,"231":1,"262":1,"268":2,"289":1}}],["模块名",{"2":{"264":1}}],["模块文件夹",{"2":{"226":1}}],["模块信息",{"2":{"224":1,"225":1}}],["模块",{"0":{"17":1,"36":1,"58":1,"61":1,"62":1,"89":1,"93":1,"99":1,"122":1,"123":1,"124":1,"132":1,"143":1,"154":1,"156":1,"158":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"186":1,"187":1,"189":1,"228":1,"232":1,"233":1,"234":1,"256":1,"258":1,"260":1},"1":{"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"59":1,"60":1,"63":1,"64":1,"65":1,"66":1,"67":1,"68":1,"69":1,"70":1,"71":1,"72":1,"73":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"81":1,"82":1,"83":1,"84":1,"85":1,"86":1,"87":1,"88":1,"90":1,"91":1,"92":1,"94":1,"95":1,"96":1,"97":1,"98":1,"100":1,"101":1,"102":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"131":1,"133":1,"134":1,"135":1,"136":1,"137":1,"138":1,"139":1,"140":1,"141":1,"142":1,"144":1,"145":1,"146":1,"147":1,"148":1,"149":1,"150":1,"151":1,"152":1,"153":1,"155":1,"157":1,"159":1,"161":1,"162":1,"164":1,"165":1,"166":1,"169":1,"170":1,"171":1,"172":1,"174":1,"175":1,"176":1,"178":1,"179":1,"180":1,"181":1,"182":1,"183":1,"184":1,"185":1,"188":1,"190":1,"191":1,"192":1,"193":1,"194":1,"195":1,"196":1,"197":1,"198":1,"199":1,"200":1,"201":1,"202":1,"203":1,"204":1,"205":1,"206":1,"207":1,"208":1,"209":1,"210":1,"211":1,"212":1,"213":1,"214":1,"215":1,"216":1,"217":1,"218":1,"219":1,"220":1,"221":1,"222":1,"223":1,"224":1,"225":1,"226":1,"227":1,"229":1,"230":1,"231":1,"235":1,"236":1,"237":1,"238":1,"239":1,"240":1,"241":1,"242":1,"243":1,"244":1,"245":1,"246":1,"247":1,"248":1,"249":1,"250":1,"251":1,"252":1,"253":1,"254":1,"255":1,"257":1,"259":1,"261":1,"262":1,"263":1,"264":1,"265":1}}],["至少1gb空间",{"2":{"15":1}}],["至少1vcpu",{"2":{"15":1}}],["硬盘",{"2":{"15":1}}],["及",{"2":{"15":1}}],["不带key返回配置项列表",{"2":{"295":1}}],["不包含任何隐私信息",{"2":{"293":1}}],["不含隐私部分",{"2":{"293":1}}],["不含插件数据",{"2":{"293":1}}],["不同adapter",{"2":{"282":1}}],["不同的实现端给出的字段可能不同",{"2":{"3":1}}],["不限制commit",{"2":{"276":1}}],["不要出现无法访问的死链接",{"2":{"276":1}}],["不要出现过多的嵌套",{"2":{"124":1}}],["不要将多个功能或多个bug的代码混在一起提交",{"2":{"276":1}}],["不递归",{"2":{"130":1}}],["不是liteyukibot官方提供的功能",{"2":{"14":1}}],["该功能需要commit",{"2":{"295":1}}],["该功能由trss提供支持",{"2":{"14":1}}],["该模块封装通道实现",{"2":{"270":1}}],["该模块用于常用配置文件的加载",{"2":{"124":1}}],["该模块用于存放一些开发工具",{"2":{"123":1}}],["该模块用于轻雪主进程和nonebot子进程之间的通信",{"2":{"61":1}}],["该步骤为必要项",{"2":{"12":1}}],["weather",{"0":{"301":1},"1":{"302":1},"2":{"301":1,"302":1}}],["world",{"2":{"279":5}}],["w",{"2":{"222":1}}],["write",{"0":{"222":1},"2":{"222":2,"226":1}}],["wrapper",{"0":{"265":1},"2":{"45":1,"74":2,"109":4,"138":1,"146":2,"153":2,"265":4}}],["watchdog",{"2":{"289":1,"292":1}}],["watch",{"2":{"288":1,"289":1}}],["walk",{"2":{"223":1,"224":1}}],["wait",{"0":{"146":1},"2":{"146":2}}],["waring=no",{"2":{"131":1}}],["waring",{"0":{"130":1,"131":1},"2":{"130":3,"131":3}}],["warning=no",{"2":{"130":1,"131":1}}],["warning",{"0":{"129":1,"230":1},"2":{"15":2,"35":1,"129":5,"130":1,"140":1,"142":1,"162":2,"229":1,"230":8,"283":1,"298":1}}],["will",{"2":{"35":1}}],["with",{"0":{"35":1,"226":1},"2":{"35":1,"104":1,"105":1,"106":1,"113":1,"222":1,"224":1,"225":5,"226":3}}],["windows",{"2":{"15":1,"22":1}}],["windows系统版本最低windows10+",{"2":{"15":1}}],["windows请使用项目绝对目录",{"2":{"13":1}}],["while",{"2":{"21":1,"72":1,"111":1,"268":2}}],["ws",{"2":{"3":2}}],["$",{"2":{"13":2}}],["构建镜像",{"2":{"13":1}}],["克隆项目",{"2":{"13":1}}],["克隆项目到本地",{"2":{"12":1}}],["使用通用日期简写",{"2":{"303":2}}],["使用此项目代表你已经同意以上协议",{"2":{"293":1}}],["使用开发工具快速运行插件",{"2":{"292":1}}],["使用",{"2":{"281":1}}],["使用新的task执行命令",{"2":{"280":1}}],["使用watchdog监控文件变化并重启bot",{"2":{"143":1}}],["使用trss",{"0":{"14":1}}],["使用docker构建",{"0":{"13":1}}],["使用其他项目连接请先自行查阅文档",{"2":{"9":1}}],["b包也定义了一个index",{"2":{"285":1}}],["bug",{"2":{"276":1}}],["built",{"2":{"233":2}}],["build",{"2":{"13":1}}],["break",{"2":{"174":1}}],["black等工具进行代码检查和格式化",{"2":{"274":1}}],["block",{"0":{"170":1,"175":1,"176":1},"2":{"170":4,"175":2,"176":2}}],["blue>",{"2":{"162":1}}],["bases",{"2":{"224":1}}],["base",{"0":{"221":1},"2":{"221":3,"224":2}}],["basemodel",{"0":{"196":1,"204":1,"209":1,"215":1,"241":1,"249":1},"1":{"197":1,"198":1,"199":1,"200":1,"201":1,"202":1,"203":1,"205":1,"206":1,"207":1,"208":1,"210":1,"211":1,"212":1,"213":1,"214":1,"216":1,"217":1,"218":1,"219":1,"220":1,"242":1,"243":1,"244":1,"245":1,"246":1,"247":1,"248":1,"250":1,"251":1,"252":1,"253":1,"254":1,"255":1}}],["baseexception",{"0":{"157":1}}],["bash",{"2":{"12":1}}],["b",{"2":{"125":1,"226":2,"264":2,"304":1}}],["body",{"2":{"224":1}}],["bool=false",{"2":{"129":1,"130":1,"131":1,"175":1,"176":1,"226":1}}],["bool=true",{"2":{"106":1,"153":1,"224":1,"230":1}}],["bool",{"0":{"70":1,"106":1,"129":1,"130":1,"131":1,"142":1,"153":1,"170":1,"175":1,"176":1,"183":1,"184":1,"185":1,"203":1,"224":1,"226":1,"230":1,"261":1},"2":{"66":1,"67":1,"70":1,"142":1,"145":1,"170":1,"178":1,"181":1,"182":1,"183":1,"184":1,"185":1,"261":2}}],["bot",{"0":{"17":1,"33":1,"36":1,"165":1},"1":{"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1},"2":{"19":2,"33":4,"34":1,"35":4,"155":2,"165":3,"166":2,"268":4,"279":1,"289":2,"295":1,"303":3,"304":1}}],["bot无其他插件会占用300~500mb",{"2":{"15":1}}],["be",{"2":{"35":1,"71":1,"74":1,"80":1,"148":1}}],["before",{"0":{"27":1,"30":1,"31":1,"46":1,"48":1,"50":1,"52":1,"54":1,"56":1},"2":{"27":2,"30":2,"31":2,"44":3,"46":2,"48":2,"50":2,"52":3,"54":3,"56":3}}],["bind",{"2":{"302":1}}],["bin",{"2":{"12":1}}],["可用",{"2":{"295":1}}],["可用参数",{"2":{"295":1}}],["可递归",{"2":{"280":1}}],["可调用对象",{"2":{"261":1}}],["可以很高程度地扩展轻雪的功能",{"2":{"286":1}}],["可以在配置文件中把auto",{"2":{"293":1}}],["可以在a的index",{"2":{"285":1}}],["可以在此基础上进行修改",{"2":{"284":1}}],["可以在config",{"2":{"274":1}}],["可以是本地插件或是通过",{"2":{"229":1}}],["可以使用liteyuki镜像",{"2":{"12":1}}],["可使用ws",{"2":{"8":1}}],["help",{"2":{"297":1,"298":1}}],["hello",{"2":{"279":5,"295":1}}],["html中用",{"2":{"285":1}}],["html",{"2":{"285":1}}],["html文件会被覆盖",{"2":{"285":1}}],["html文件",{"2":{"285":2}}],["https",{"2":{"12":2,"13":1}}],["hash",{"0":{"250":1},"2":{"250":2}}],["handle",{"0":{"171":1},"2":{"171":1,"256":1,"257":1}}],["handlers",{"2":{"170":1,"171":1,"172":1}}],["handler",{"0":{"180":1},"2":{"153":3,"171":4,"172":2,"180":3,"181":4,"182":4,"183":2}}],["homepage",{"0":{"247":1}}],["host",{"2":{"1":1}}],["hint",{"2":{"70":1,"224":1,"225":1}}],["环境",{"2":{"12":1}}],["和风天气的天气key",{"2":{"301":1}}],["和10是不一样的",{"2":{"295":1}}],["和config目录下的所有配置文件",{"2":{"131":1}}],["和",{"2":{"12":1,"295":1}}],["常规操作",{"2":{"19":1}}],["常规部署",{"0":{"12":1}}],["常见问题",{"0":{"6":1}}],["安装插件",{"2":{"297":1}}],["安装的插件",{"2":{"229":1}}],["安装依赖",{"2":{"12":1}}],["安装",{"0":{"11":1},"1":{"12":1,"13":1,"14":1,"15":1,"16":1},"2":{"12":1,"13":1,"294":1,"298":1}}],["安全模式",{"2":{"2":1}}],["鸣谢",{"0":{"10":1}}],["然后运行python",{"2":{"292":1}}],["然后使用",{"2":{"12":1}}],["然后给轻雪传输数据",{"2":{"8":1}}],["然后用",{"2":{"6":1}}],["看着qq的消息",{"2":{"8":1}}],["人工实现的onebot协议",{"2":{"8":1}}],["需要在最后调用",{"2":{"280":1}}],["需要官方机器人权限",{"2":{"8":1}}],["需要安装ntqq",{"2":{"8":1}}],["原生实现",{"2":{"8":1}}],["group",{"2":{"295":9,"296":1,"297":2,"303":3,"304":1}}],["green>",{"2":{"162":1}}],["guide",{"2":{"276":1}}],["g",{"2":{"231":1,"304":1}}],["gather",{"2":{"45":1,"262":1}}],["generate",{"0":{"225":1,"226":1},"2":{"225":1,"226":3}}],["generic",{"0":{"69":1},"1":{"70":1,"71":1,"72":1,"73":1,"74":1},"2":{"70":2,"71":1}}],["gensokyo",{"2":{"8":1}}],["getattr",{"2":{"261":1}}],["get",{"0":{"33":1,"34":1,"35":1,"82":1,"83":1,"87":1,"88":1,"105":1,"107":1,"113":1,"118":1,"121":1,"161":1,"188":1,"221":1,"223":1,"224":1},"2":{"23":2,"33":2,"34":3,"35":5,"70":2,"71":1,"73":1,"82":2,"83":2,"86":1,"87":4,"88":3,"104":1,"105":4,"106":1,"107":2,"113":1,"116":1,"117":1,"118":3,"120":1,"121":3,"155":1,"161":1,"162":2,"188":1,"221":1,"223":1,"224":5,"226":3,"227":1,"229":3,"230":1,"259":2,"262":1,"268":8,"271":1,"289":2,"295":3,"296":1,"299":2}}],["globalkeyvaluestore",{"0":{"112":1},"1":{"113":1,"114":1,"115":1},"2":{"116":1}}],["global",{"2":{"19":1,"74":1,"297":2,"298":2}}],["gt",{"0":{"19":1,"27":1,"31":1,"33":1,"34":1,"35":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"72":1,"73":1,"74":1,"82":1,"83":1,"91":1,"92":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"131":1,"142":1,"153":1,"161":1,"171":1,"172":1,"175":1,"176":1,"181":1,"182":1,"183":1,"184":1,"185":1,"188":1,"221":1,"224":1,"225":1,"229":1,"230":1,"231":1,"261":1,"264":1,"265":1},"2":{"61":3,"125":1,"170":1,"264":1,"276":2,"294":1,"295":7,"297":10,"299":2}}],["github",{"2":{"12":1,"13":1}}],["git",{"2":{"12":3,"13":1}}],["golang",{"2":{"8":1}}],["go语言实现的onebot11实现端",{"2":{"8":1}}],["go",{"2":{"8":1}}],["occurred",{"2":{"262":1}}],["output",{"0":{"226":1},"2":{"226":5}}],["outlook",{"2":{"36":1,"132":1,"154":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"186":1,"189":1,"228":1,"232":1,"234":1,"256":1,"258":1}}],["order",{"2":{"226":1}}],["or",{"2":{"181":2,"224":4}}],["other",{"0":{"181":1,"182":1},"2":{"181":2,"182":2}}],["overall",{"2":{"158":1}}],["observer",{"0":{"143":1},"1":{"144":1,"145":1,"146":1,"147":1,"148":1,"149":1,"150":1,"151":1,"152":1,"153":1},"2":{"153":1,"289":2}}],["os",{"2":{"129":1,"130":3,"221":1,"222":4,"223":2,"224":1,"226":2,"230":9,"289":2}}],["of",{"2":{"71":1,"80":1,"158":1,"229":1}}],["only",{"2":{"74":1}}],["on",{"0":{"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"63":1,"64":1,"65":1,"74":1,"86":1,"87":1,"88":1,"91":2,"100":1,"101":1,"109":3,"118":1,"119":1,"120":1,"121":1,"148":1,"149":1,"150":1,"151":1,"152":1,"153":1,"173":1,"175":1,"176":1},"1":{"174":1,"175":1,"176":1},"2":{"27":2,"28":2,"29":2,"30":2,"31":2,"32":2,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"65":2,"70":2,"74":4,"85":1,"86":3,"87":3,"88":2,"91":4,"92":1,"100":1,"101":1,"109":11,"110":1,"117":1,"118":3,"119":3,"120":3,"121":2,"148":2,"149":2,"150":2,"151":2,"152":2,"153":2,"173":1,"175":1,"176":4,"256":1,"257":1,"268":6,"289":1}}],["onebot",{"2":{"2":1,"3":1,"8":2,"282":1,"295":1}}],["open",{"2":{"22":1,"126":1,"127":1,"128":1,"222":1,"224":1}}],["openshamrock",{"2":{"8":1}}],["option",{"2":{"294":1}}],["optional",{"0":{"23":1,"70":1,"74":1,"105":2,"165":2,"229":1,"255":1},"2":{"22":1,"23":2,"34":1,"35":1,"70":1,"74":3,"103":2,"105":3,"165":2,"229":1}}],["opt",{"2":{"20":2,"229":3}}],["基础插件",{"0":{"294":1},"1":{"295":1,"296":1,"297":1,"298":1,"299":1}}],["基础路径",{"2":{"221":1}}],["基础配置项",{"0":{"1":1}}],["基于socket的通道",{"2":{"93":1}}],["基于ipc",{"2":{"89":1}}],["基于",{"2":{"8":1}}],["基于node",{"2":{"8":1}}],["基于ntqq的onebot实现",{"2":{"8":1}}],["基于lsposed的onebot11实现",{"2":{"8":1}}],["qq群号",{"2":{"303":1}}],["qq官方机器人api",{"2":{"8":1}}],["qq",{"0":{"8":1}}],["quot",{"2":{"3":2,"276":1,"283":2,"295":2,"301":4}}],["推荐私聊使用",{"2":{"295":1}}],["推荐在编写html时同时更改对应js代码",{"2":{"284":1}}],["推荐",{"2":{"276":1}}],["推荐ubuntu",{"2":{"15":1}}],["推荐使用arch",{"2":{"14":1}}],["推荐使用虚拟环境来运行轻雪",{"2":{"12":1}}],["推荐使用反向ws协议进行通信",{"2":{"3":1}}],["推荐方案",{"0":{"8":1,"9":1}}],["仍然出现问题",{"2":{"6":1}}],["登录功能由实现端",{"2":{"6":1}}],["本项目不会收集用户的任何隐私信息",{"2":{"293":1}}],["本项目不负责实现登录功能",{"2":{"6":1}}],["本项目遵循mit协议",{"2":{"293":1}}],["本项目是一个非盈利的开源项目",{"2":{"277":1}}],["本模块用于实现rpc",{"2":{"89":1}}],["本模块用于轻雪主进程和子进程之间的通信的事件类",{"2":{"58":1}}],["本模块定义了一个通用的通道类",{"2":{"62":1}}],["本机默认为127",{"2":{"3":1}}],["例如npm",{"2":{"294":1}}],["例如nonebot插件中",{"2":{"268":1}}],["例如main",{"2":{"292":1}}],["例如watchdog",{"2":{"288":1,"291":1}}],["例如你在a中定义了templates",{"2":{"285":1}}],["例如html",{"2":{"284":1}}],["例如",{"2":{"279":2,"285":1,"301":1}}],["例如test",{"2":{"279":1,"292":1}}],["例如子进程接收到用户信息需要重启机器人",{"2":{"267":1}}],["例如qq",{"2":{"6":1}}],["例如一个命令是help",{"2":{"6":1}}],["怎么登录聊天平台",{"2":{"6":1}}],["报错invalidgitrepositoryerror",{"2":{"6":1}}],["冲突",{"2":{"6":1}}],["确认插件必要配置项完好后",{"2":{"6":1}}],["确认命令头没有和nickname",{"2":{"6":1}}],["确认你有权限使用命令并按照正确的命令发送",{"2":{"6":1}}],["其中type字段为commit类型且可选",{"2":{"276":1}}],["其中",{"2":{"6":1,"275":1}}],["其他插件框架进程是伴随的子进程",{"2":{"267":1}}],["其他插件占用视具体插件而定",{"2":{"15":1}}],["其他插件自带的调试功能也将开启",{"2":{"2":1}}],["其他问题请移步至",{"0":{"16":1}}],["其他问题",{"0":{"7":1}}],["其他",{"0":{"4":1}}],["其他nonebot插件的配置项",{"2":{"2":1}}],["其他配置",{"0":{"2":1}}],["r>",{"2":{"229":2}}],["rv",{"2":{"226":2}}],["rk",{"2":{"226":2}}],["rmtree",{"2":{"226":1}}],["rpm",{"2":{"297":5,"298":1}}],["rp",{"2":{"222":4}}],["rpc",{"0":{"89":1,"90":1},"1":{"90":1,"91":2,"92":2},"2":{"61":1}}],["rule=is",{"2":{"256":1,"257":1}}],["rule=empty",{"2":{"175":1,"176":1}}],["rulehandlerfunc",{"0":{"178":1,"180":1},"2":{"180":1}}],["rule",{"0":{"170":2,"175":3,"176":2,"177":1,"179":1,"181":2,"182":2,"184":1,"185":1},"1":{"178":1,"179":1,"180":2,"181":2,"182":2,"183":2,"184":1,"185":1},"2":{"170":5,"172":1,"175":3,"176":5,"177":1,"181":3,"182":3,"183":1,"184":3,"185":2,"256":1,"257":1}}],["running",{"2":{"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"70":1,"73":1,"103":2,"262":2}}],["runtimeerror",{"2":{"33":2,"71":1,"72":1,"74":1,"109":1,"111":1,"262":1}}],["run",{"0":{"20":1,"45":1,"110":1,"155":1,"172":1,"262":1,"263":1},"2":{"13":1,"20":3,"45":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"73":1,"110":1,"111":1,"137":1,"155":2,"172":1,"262":3,"263":1,"292":2}}],["raw",{"0":{"165":1},"2":{"165":3,"166":1,"176":1,"257":1}}],["raise",{"2":{"33":2,"70":3,"71":2,"72":1,"74":1,"80":2,"106":1,"109":1,"111":1,"148":1}}],["rights",{"2":{"36":1,"132":1,"154":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"186":1,"189":1,"228":1,"232":1,"234":1,"256":1,"258":1}}],["root",{"2":{"13":1,"223":2}}],["request",{"2":{"273":1}}],["required",{"2":{"70":1}}],["requirements",{"2":{"6":1,"12":1,"15":1}}],["readme",{"2":{"226":2}}],["read",{"2":{"224":1}}],["reload",{"2":{"295":1,"296":2,"297":1,"298":1}}],["reloading",{"2":{"289":1}}],["rel",{"2":{"226":4,"264":5}}],["relpath",{"2":{"221":1}}],["relative",{"0":{"221":1},"2":{"221":1,"226":1,"227":1,"264":1}}],["replace",{"2":{"224":3,"225":4,"226":8}}],["reply",{"0":{"166":1},"2":{"166":3,"257":1}}],["report设定为false",{"2":{"293":1}}],["report",{"2":{"1":1,"293":1}}],["red>",{"2":{"162":1}}],["remove",{"2":{"162":1}}],["ref",{"0":{"117":1}}],["recursive=recursive",{"2":{"153":1}}],["recursive",{"0":{"153":1},"2":{"153":2}}],["recv",{"2":{"70":2,"72":2,"82":5,"83":5,"87":3,"88":3,"95":1,"105":5,"107":5,"118":3,"121":3}}],["receive",{"0":{"63":1,"64":1,"65":1,"72":1,"73":1,"74":1,"97":1,"100":1,"101":1,"109":3,"110":1,"111":1,"165":1},"2":{"65":2,"70":3,"72":2,"73":2,"74":4,"82":1,"83":1,"85":1,"86":2,"87":2,"88":1,"97":1,"100":1,"101":1,"103":2,"105":1,"107":1,"109":11,"110":2,"111":4,"117":1,"118":2,"119":2,"120":2,"121":1,"165":3,"166":3,"268":11}}],["resources",{"2":{"275":1,"284":1,"285":1,"296":1}}],["resolve",{"2":{"264":2}}],["reserved",{"2":{"36":1,"132":1,"154":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"186":1,"189":1,"228":1,"232":1,"234":1,"256":1,"258":1}}],["restarting",{"2":{"22":1}}],["restart",{"0":{"22":1,"23":1,"31":1,"32":1,"50":1,"51":1,"56":1,"57":1},"2":{"19":1,"22":3,"23":1,"31":2,"32":2,"44":2,"50":2,"51":2,"56":3,"57":3,"289":2}}],["returns",{"2":{"224":4}}],["return",{"0":{"199":1},"2":{"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":3,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"72":1,"73":1,"74":6,"82":2,"83":2,"92":1,"105":2,"107":2,"109":2,"113":1,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"131":1,"140":1,"142":1,"146":3,"153":3,"161":2,"171":2,"172":1,"175":1,"176":2,"181":2,"182":2,"183":2,"184":1,"185":1,"188":1,"221":1,"223":1,"224":3,"225":3,"229":2,"230":1,"231":1,"250":1,"261":3,"264":2,"265":2}}],["r",{"2":{"6":1,"12":1,"15":1,"126":1,"127":1,"128":1,"224":1}}],["msg",{"2":{"295":1}}],["mcfunction",{"2":{"279":2}}],["mkdir",{"2":{"226":1}}],["mkdoc",{"0":{"189":1},"1":{"190":1,"191":1,"192":1,"193":1,"194":1,"195":1,"196":1,"197":1,"198":1,"199":1,"200":1,"201":1,"202":1,"203":1,"204":1,"205":1,"206":1,"207":1,"208":1,"209":1,"210":1,"211":1,"212":1,"213":1,"214":1,"215":1,"216":1,"217":1,"218":1,"219":1,"220":1,"221":1,"222":1,"223":1,"224":1,"225":1,"226":1,"227":1},"2":{"189":1}}],["md",{"2":{"226":13}}],["member",{"2":{"295":1}}],["memory",{"0":{"116":1},"2":{"103":3,"117":1,"118":3,"119":3,"120":3,"121":2,"138":1,"271":3}}],["meta",{"2":{"229":4,"288":1}}],["metadata",{"0":{"255":1},"2":{"229":13}}],["methods=",{"2":{"224":1}}],["methods",{"0":{"212":1},"2":{"224":1,"225":1}}],["method",{"0":{"192":2,"193":1,"194":1},"2":{"224":5,"225":13}}],["message的语言",{"2":{"276":1}}],["message的格式为",{"2":{"276":1}}],["message字段为简短的描述",{"2":{"276":1}}],["message请遵循以下规范",{"2":{"276":1}}],["message=",{"2":{"166":1,"295":1}}],["message=message",{"2":{"166":1}}],["messageevent",{"0":{"164":1,"165":1,"172":1,"183":1,"184":1,"185":1,"257":1},"1":{"165":1,"166":1},"2":{"165":1,"166":1,"172":1,"176":1,"178":1,"181":1,"182":1,"183":1,"184":1,"185":1,"257":1}}],["message",{"0":{"163":1,"165":3,"166":1,"167":1,"168":1,"173":1,"175":1,"177":1,"186":1},"1":{"164":1,"165":1,"166":1,"169":1,"170":1,"171":1,"172":1,"174":1,"175":1,"176":1,"178":1,"179":1,"180":1,"181":1,"182":1,"183":1,"184":1,"185":1},"2":{"165":9,"166":5,"175":1,"176":2,"257":1,"276":1,"303":1,"304":1}}],["moved",{"0":{"151":1},"2":{"151":1}}],["moduletype",{"0":{"253":1}}],["module=module",{"2":{"229":1}}],["moduleinfo",{"0":{"215":1,"224":1,"225":1},"1":{"216":1,"217":1,"218":1,"219":1,"220":1},"2":{"224":2,"225":1}}],["module",{"0":{"155":1,"216":1,"223":1,"224":1,"225":1,"226":1,"227":1,"229":1,"238":2,"253":1,"254":1,"264":1},"2":{"155":3,"158":1,"223":2,"224":11,"225":5,"226":19,"227":1,"229":26,"230":9,"231":1,"233":1,"250":1,"264":1}}],["modified",{"0":{"148":1},"2":{"148":2,"149":1,"150":1,"151":1,"152":1,"153":4}}],["model",{"0":{"234":1,"251":1},"1":{"235":1,"236":1,"237":1,"238":1,"239":1,"240":1,"241":1,"242":1,"243":1,"244":1,"245":1,"246":1,"247":1,"248":1,"249":1,"250":1,"251":1,"252":1,"253":1,"254":1,"255":1},"2":{"234":1}}],["mode为true",{"2":{"143":1}}],["mode",{"2":{"2":2,"6":1,"274":1,"295":2,"296":1}}],["must",{"2":{"71":1,"80":1,"148":1}}],["match",{"2":{"231":1}}],["matcher",{"0":{"168":1,"169":1,"174":3,"175":1,"176":1},"1":{"169":1,"170":2,"171":2,"172":2},"2":{"168":1,"174":9,"175":6,"176":1}}],["matter=none",{"2":{"225":1}}],["matter",{"0":{"225":1},"2":{"225":4,"226":3}}],["markdown",{"0":{"225":1},"2":{"225":2,"226":1}}],["makedirs",{"2":{"222":1}}],["manually",{"2":{"70":1}}],["manager",{"0":{"132":1,"232":1},"1":{"133":1,"134":1,"135":1,"136":1,"137":1,"138":1,"139":1,"140":1,"141":1,"142":1},"2":{"19":1,"20":1,"22":1,"23":1,"26":1,"132":1,"232":1}}],["maplemono提供的字体",{"2":{"10":1}}],["mainprocess",{"2":{"267":1}}],["main",{"0":{"100":1},"2":{"6":1,"12":1,"33":1,"70":4,"74":4,"80":1,"82":1,"83":1,"103":1,"104":1,"105":1,"106":1,"107":1,"109":5,"110":1,"111":1,"268":6,"275":1,"292":1}}],["misans",{"2":{"10":1}}],["minecraftonebot",{"2":{"9":1}}],["minecraft",{"0":{"9":1}}],["m",{"2":{"6":1,"12":1,"15":1,"174":2,"231":1,"304":1}}],["答疑",{"0":{"5":1},"1":{"6":1,"7":1,"8":1,"9":1,"10":1}}],["要使用其他通信方式请访问onebot",{"2":{"3":1}}],["如",{"2":{"276":2}}],["如需往轻雪仓库提交代码",{"2":{"273":1}}],["如需自定义请手动添加",{"2":{"2":1}}],["如何开发",{"0":{"273":1},"1":{"274":1}}],["如果是文档相关的开发",{"2":{"273":1}}],["如果你接触过minecraft的资源包",{"2":{"284":1}}],["如果你想同时输出多行内容可以尝试换行符",{"2":{"279":1}}],["如果你没有安装git直接下载源代码运行",{"2":{"15":1}}],["如果你给轻雪配置了accesstoken",{"2":{"3":1}}],["如果装置上有多个环境",{"2":{"15":1}}],["version=",{"2":{"288":1}}],["version",{"0":{"159":1},"2":{"285":1}}],["venv来创建虚拟环境",{"2":{"12":1}}],["venv",{"2":{"12":3}}],["validate",{"2":{"71":1}}],["value=ast",{"2":{"224":1}}],["value",{"0":{"104":1,"207":1},"2":{"104":5,"119":3,"125":3,"224":6,"225":3,"271":2,"295":2,"299":1}}],["valueerror",{"2":{"70":2,"80":1}}],["value2",{"2":{"2":1}}],["value1",{"2":{"2":1}}],["var=value",{"2":{"280":1}}],["var2=value2",{"2":{"280":1}}],["var1=value1>",{"2":{"280":1}}],["var",{"0":{"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"63":1,"64":1,"65":1,"66":1,"67":1,"68":1,"75":1,"76":1,"77":1,"78":1,"79":1,"84":1,"85":1,"100":1,"101":1,"116":1,"117":1,"144":1,"145":1,"159":1,"178":1,"227":1},"2":{"225":2}}],["v",{"2":{"13":2,"125":2,"225":2}}],["v11协议api",{"2":{"295":2}}],["v11",{"2":{"3":1,"282":1}}],["地址取决于配置文件",{"2":{"3":1}}],["地址",{"2":{"3":1}}],["反向websocket",{"2":{"3":1}}],["协议端",{"2":{"6":1}}],["协议",{"2":{"3":1}}],["说明",{"2":{"3":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"63":1,"64":1,"65":1,"66":1,"67":1,"68":1,"70":1,"71":1,"72":1,"73":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"81":1,"82":1,"83":1,"84":1,"85":1,"92":1,"95":1,"96":1,"97":1,"98":1,"100":1,"101":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1,"116":1,"117":1,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"131":1,"137":1,"138":1,"140":1,"142":1,"144":1,"145":1,"146":1,"153":1,"155":1,"159":1,"162":1,"165":1,"166":1,"170":1,"171":1,"172":1,"178":1,"188":1,"221":1,"222":1,"224":1,"225":1,"226":1,"227":1,"229":1,"230":1,"231":1,"259":1,"261":1,"262":1,"263":1,"264":1,"265":1,"295":1,"297":2,"299":1}}],["与nonebot对接的onebot实现端配置",{"0":{"3":1}}],["示例",{"0":{"3":1,"268":1,"271":1,"281":1}}],["监听目录们",{"2":{"153":1}}],["监听地址",{"2":{"1":1}}],["监视文件变化并自动重载",{"2":{"2":1}}],["开始",{"0":{"287":1},"1":{"288":1,"289":1,"290":1,"291":1,"292":1}}],["开发文档是详细的",{"2":{"276":1}}],["开发过程中可以使用mypy",{"2":{"274":1}}],["开发指南",{"0":{"272":1},"1":{"273":1,"274":1,"275":1,"276":1,"277":1}}],["开发者模式",{"2":{"2":1}}],["开发者选项",{"2":{"2":1}}],["开启后将会启动监视者",{"2":{"2":1}}],["开启后将不会加载任何第三方nonebot插件",{"2":{"2":1}}],["开启会自动重载bot或者资源",{"2":{"2":1}}],["2s戳两次",{"2":{"281":1}}],["22",{"2":{"256":1}}],["27",{"2":{"132":1,"160":1}}],["24",{"2":{"36":1,"234":1}}],["23",{"2":{"36":1,"189":1,"228":1,"232":1}}],["20代替空格",{"2":{"295":1}}],["20和end",{"2":{"281":1}}],["2024",{"2":{"36":2,"132":2,"154":2,"160":2,"163":2,"167":2,"168":2,"173":2,"177":2,"186":2,"189":2,"228":2,"232":2,"234":2,"256":2,"258":2}}],["2020",{"2":{"36":1,"132":1,"154":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"186":1,"189":1,"228":1,"232":1,"234":1,"256":1,"258":1}}],["20216中的20216替换为你的端口号",{"2":{"13":1}}],["20216",{"2":{"1":1,"3":2,"13":2}}],["20",{"2":{"15":1}}],["2019+",{"2":{"15":1}}],["2",{"2":{"2":1,"281":1,"285":1}}],["建议",{"0":{"274":1}}],["建议1gb以上",{"2":{"15":1}}],["建议开启",{"2":{"2":1}}],["建议迁移到liteyuki下",{"2":{"1":1}}],["默认普通图片",{"2":{"295":1}}],["默认开启",{"2":{"293":1}}],["默认插件加载器",{"2":{"259":1}}],["默认执行扁平化选项",{"2":{"129":1,"130":1}}],["默认值",{"2":{"34":1,"35":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"63":1,"64":1,"65":1,"66":1,"67":1,"68":1,"75":1,"76":1,"77":1,"78":1,"79":1,"84":1,"85":1,"100":1,"101":1,"105":1,"116":1,"117":1,"144":1,"145":1,"159":1,"178":1,"227":1}}],["默认false",{"2":{"2":1}}],["默认语言",{"2":{"2":1}}],["默认为本机",{"2":{"1":1}}],["city",{"2":{"301":1,"302":1}}],["css相对路径引用b中的css",{"2":{"285":1}}],["css",{"2":{"284":1,"285":1}}],["cwd",{"2":{"264":1}}],["cfg",{"2":{"155":4}}],["current|bot",{"2":{"303":1}}],["current|group",{"2":{"303":1}}],["current",{"2":{"146":3,"303":2,"304":1}}],["custom",{"2":{"2":4}}],["created",{"0":{"149":1},"2":{"149":1}}],["create",{"2":{"110":1}}],["child",{"2":{"224":2}}],["check",{"0":{"70":1},"2":{"70":8,"71":1}}],["change",{"2":{"297":1,"298":1}}],["changed",{"2":{"289":1}}],["channel时的通道标识",{"2":{"268":1}}],["channel即可",{"2":{"268":1}}],["channel及passive",{"2":{"268":1}}],["channel函数获取通道对象",{"2":{"268":2}}],["channel=none",{"2":{"166":1}}],["channeldeliver",{"0":{"133":1},"1":{"134":1},"2":{"138":1}}],["channels",{"0":{"81":2,"83":1,"88":1},"2":{"81":4,"83":2,"87":1,"88":3}}],["channel",{"0":{"62":1,"69":1,"75":1,"76":1,"77":1,"78":2,"79":2,"80":3,"81":1,"82":2,"83":1,"84":2,"85":2,"86":1,"87":1,"93":1,"108":1,"109":1,"110":1,"134":8,"165":2},"1":{"63":1,"64":1,"65":1,"66":1,"67":1,"68":1,"69":1,"70":2,"71":2,"72":2,"73":2,"74":2,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"81":1,"82":1,"83":1,"84":1,"85":1,"86":1,"87":1,"88":1,"94":1,"95":1,"96":1,"97":1,"98":1},"2":{"23":2,"61":2,"70":7,"71":1,"72":1,"75":3,"76":3,"77":3,"78":2,"79":1,"80":19,"81":5,"82":9,"83":7,"84":3,"85":6,"86":11,"87":7,"88":2,"103":4,"105":1,"107":1,"108":4,"109":8,"110":3,"111":2,"134":12,"138":12,"165":4,"166":2,"268":12}}],["chan",{"2":{"23":4,"82":5,"83":5,"87":3,"88":3,"103":2,"104":1,"105":6,"106":1,"107":6,"108":1,"111":1,"117":1,"118":5,"119":2,"120":2,"121":4,"138":2}}],["c",{"2":{"36":1,"125":1,"132":1,"154":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"186":1,"189":1,"228":1,"231":1,"232":1,"234":1,"256":1,"258":1,"262":4,"264":2,"304":1}}],["cmd",{"2":{"22":5,"279":2,"280":1}}],["case",{"2":{"231":4}}],["category",{"2":{"225":1,"226":2}}],["cannot",{"2":{"71":1,"72":1,"109":1,"111":1}}],["can",{"2":{"33":1,"74":1}}],["calling",{"0":{"91":2},"2":{"91":4,"92":1}}],["callback",{"0":{"144":1,"153":2},"2":{"74":1,"153":4}}],["callable",{"0":{"74":3,"109":1,"153":1,"171":1,"261":2,"265":2},"2":{"37":1,"38":1,"40":1,"41":1,"45":1,"63":1,"64":1,"66":1,"67":1,"74":10,"109":2,"136":1,"144":1,"145":1,"153":1,"171":1,"178":1,"261":2,"265":4}}],["call",{"0":{"92":1,"261":1},"2":{"19":1,"22":2,"92":1,"146":4,"183":1,"261":7}}],["cache",{"2":{"13":2}}],["cls",{"0":{"113":1},"2":{"113":6,"224":1,"225":11}}],["close",{"0":{"98":1},"2":{"98":1,"262":1}}],["closed",{"2":{"70":1,"71":2,"72":2,"95":1}}],["clone",{"2":{"12":1,"13":1}}],["classdef",{"2":{"224":3}}],["classes=",{"2":{"224":1}}],["classes",{"0":{"218":1},"2":{"224":1,"225":1}}],["classinfo",{"0":{"209":1,"218":1},"1":{"210":1,"211":1,"212":1,"213":1,"214":1},"2":{"224":1}}],["classmethod",{"0":{"194":1},"2":{"112":1,"113":1,"224":1}}],["class",{"0":{"18":1,"43":1,"59":1,"69":1,"90":1,"94":1,"102":1,"112":1,"133":1,"135":1,"147":1,"157":1,"164":1,"169":1,"179":1,"190":1,"194":1,"196":1,"204":1,"209":1,"215":1,"235":1,"241":1,"249":1},"1":{"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"60":1,"70":1,"71":1,"72":1,"73":1,"74":1,"91":1,"92":1,"95":1,"96":1,"97":1,"98":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1,"113":1,"114":1,"115":1,"134":1,"136":1,"137":1,"138":1,"139":1,"140":1,"141":1,"142":1,"148":1,"149":1,"150":1,"151":1,"152":1,"165":1,"166":1,"170":1,"171":1,"172":1,"180":1,"181":1,"182":1,"183":1,"191":1,"192":1,"193":1,"194":1,"195":1,"197":1,"198":1,"199":1,"200":1,"201":1,"202":1,"203":1,"205":1,"206":1,"207":1,"208":1,"210":1,"211":1,"212":1,"213":1,"214":1,"216":1,"217":1,"218":1,"219":1,"220":1,"236":1,"237":1,"238":1,"239":1,"240":1,"242":1,"243":1,"244":1,"245":1,"246":1,"247":1,"248":1,"250":1,"251":1,"252":1,"253":1,"254":1,"255":1},"2":{"224":24,"225":2}}],["cpu",{"2":{"15":1,"293":1}}],["centos",{"2":{"15":1}}],["cd",{"2":{"12":1,"13":1}}],["cqhttp",{"2":{"8":1}}],["color",{"2":{"231":7}}],["color=",{"2":{"162":5}}],["colors=true",{"2":{"20":2,"229":3}}],["code插件liteyuki",{"2":{"283":1}}],["code=ast",{"2":{"224":2}}],["code",{"0":{"201":1},"2":{"153":3,"225":6,"226":2}}],["codemodifiedhandler",{"0":{"147":1},"1":{"148":1,"149":1,"150":1,"151":1,"152":1},"2":{"153":1}}],["copy",{"2":{"125":1}}],["copyright",{"2":{"36":1,"132":1,"154":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"186":1,"189":1,"228":1,"232":1,"234":1,"256":1,"258":1}}],["coro",{"0":{"262":1,"263":1},"2":{"262":5,"263":2}}],["coroutine",{"0":{"261":1,"262":2,"263":2,"265":1},"2":{"45":1,"64":1,"67":1,"74":2,"109":1,"178":1,"261":1,"262":2,"263":3,"265":2}}],["core",{"0":{"122":1,"132":1},"1":{"133":1,"134":1,"135":1,"136":1,"137":1,"138":1,"139":1,"140":1,"141":1,"142":1}}],["content",{"2":{"224":2,"225":17,"226":2}}],["continue",{"2":{"130":1,"224":1,"226":1,"230":3}}],["conn",{"2":{"70":4,"71":1,"72":1,"95":2}}],["configs",{"0":{"130":1},"2":{"130":1,"131":1}}],["config=self",{"2":{"25":1}}],["config",{"0":{"34":1,"35":1,"124":1,"125":2,"131":1,"162":1,"251":1},"1":{"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"131":1},"2":{"2":2,"19":2,"25":1,"34":2,"35":6,"125":9,"126":6,"127":6,"128":6,"129":7,"130":4,"131":9,"155":1,"162":3,"259":2,"295":4,"296":1}}],["count",{"0":{"117":1},"2":{"19":1,"22":2}}],["combined",{"2":{"181":2,"182":2}}],["commit",{"2":{"276":2}}],["comm",{"0":{"58":1,"61":1,"62":1,"89":1,"93":1,"99":1},"1":{"59":1,"60":1,"63":1,"64":1,"65":1,"66":1,"67":1,"68":1,"69":1,"70":1,"71":1,"72":1,"73":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"81":1,"82":1,"83":1,"84":1,"85":1,"86":1,"87":1,"88":1,"90":1,"91":1,"92":1,"94":1,"95":1,"96":1,"97":1,"98":1,"100":1,"101":1,"102":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1},"2":{"268":2,"271":2}}],["command>",{"2":{"280":2}}],["command",{"0":{"295":1},"1":{"296":1},"2":{"1":2}}],["complete",{"2":{"262":2}}],["completion",{"2":{"2":1}}],["compat",{"0":{"35":2},"2":{"35":8}}],["com",{"2":{"12":1,"13":1,"36":1,"132":1,"154":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"186":1,"189":1,"228":1,"232":1,"234":1,"256":1,"258":1}}],["cn",{"0":{"225":1,"226":1},"2":{"2":1,"225":2,"226":1}}],["duration>",{"2":{"303":1}}],["duration",{"2":{"303":2,"304":1}}],["driver",{"2":{"268":4}}],["dog",{"2":{"288":1,"289":1}}],["does",{"2":{"230":1}}],["dot",{"2":{"224":1}}],["docs",{"0":{"226":1},"2":{"226":3,"275":1,"295":1,"296":1}}],["docstring或liteyuki",{"2":{"276":1}}],["docstring=method",{"2":{"224":1}}],["docstring=module",{"2":{"224":1}}],["docstring=class",{"2":{"224":1}}],["docstring=function",{"2":{"224":1}}],["docstring",{"0":{"200":1,"208":1,"211":1,"220":1},"2":{"224":16,"225":12,"276":1}}],["docker相关内容目录",{"2":{"275":1}}],["docker",{"2":{"13":3,"275":1}}],["d",{"2":{"117":2,"118":4,"119":4,"120":4,"121":2,"264":2,"304":1}}],["data=",{"2":{"166":1}}],["data",{"0":{"60":1,"71":1,"86":1,"87":1,"88":1,"96":1,"108":1,"110":1,"118":1,"119":1,"120":1,"121":1,"165":1,"222":1},"2":{"60":3,"71":6,"72":2,"73":2,"74":5,"85":2,"86":7,"87":7,"88":4,"96":2,"97":1,"108":4,"109":3,"110":3,"111":6,"118":4,"119":3,"120":2,"121":2,"165":5,"222":5,"226":5,"268":7}}],["daemon=true",{"2":{"22":1,"137":1,"263":1}}],["darwin",{"2":{"22":1}}],["disable",{"2":{"295":1,"296":1,"297":2,"298":2}}],["display",{"0":{"231":2},"2":{"229":7,"231":4}}],["diagnose=false",{"2":{"162":1}}],["dir",{"0":{"226":1,"230":1},"2":{"226":5,"230":16,"259":2}}],["dirname",{"2":{"222":2}}],["directory",{"2":{"130":6,"153":2,"230":1}}],["directories=",{"2":{"289":1}}],["directories",{"0":{"130":1,"153":1},"2":{"130":2,"153":3}}],["dirs",{"0":{"130":1},"2":{"1":1,"130":1,"131":1,"223":1,"259":1}}],["dict",{"0":{"60":1,"81":1,"83":1,"86":1,"87":1,"88":1,"92":1,"107":1,"118":1,"119":1,"120":1,"121":1,"125":2,"126":1,"127":1,"128":1,"129":1,"130":1,"131":1,"134":1,"162":1,"165":2,"166":1,"188":1,"222":1,"248":1},"2":{"19":1,"60":1,"77":1,"79":1,"81":2,"83":3,"86":1,"87":1,"88":1,"92":1,"100":1,"101":1,"103":2,"107":3,"118":1,"119":1,"120":1,"121":1,"125":3,"126":1,"127":1,"128":1,"129":1,"130":1,"131":1,"134":1,"136":3,"162":1,"165":2,"166":1,"188":2,"222":1,"226":1,"229":6}}],["description=",{"2":{"288":1}}],["description",{"0":{"243":1},"2":{"285":1}}],["details>",{"2":{"225":4}}],["debounce",{"0":{"146":1},"2":{"146":1,"147":1,"148":1}}],["debug",{"2":{"2":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"70":2,"126":1,"127":1,"128":1,"137":1,"161":2,"162":2,"289":1}}],["deepcopy",{"2":{"125":1}}],["del",{"2":{"106":2}}],["deleted",{"0":{"150":1},"2":{"150":1}}],["delete",{"0":{"106":1,"120":1},"2":{"106":2,"119":1,"120":3}}],["delivery",{"2":{"138":1}}],["deliver",{"0":{"78":1,"79":1,"84":1,"85":1,"134":2},"2":{"80":1,"82":1,"83":1,"84":1,"85":2,"86":2,"87":2,"88":1,"134":6,"138":6}}],["delay",{"0":{"22":1},"2":{"22":3}}],["decorator",{"2":{"74":2,"109":2,"146":2,"153":2,"171":2,"224":13}}],["deprecated",{"2":{"35":1}}],["depth=1",{"2":{"12":1,"13":1}}],["deftype",{"0":{"190":1,"202":1},"1":{"191":1,"192":1,"193":1,"194":1,"195":1},"2":{"224":4,"225":1}}],["def",{"2":{"21":1,"45":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"73":1,"74":2,"86":1,"87":1,"88":1,"109":2,"110":1,"111":1,"113":1,"118":1,"119":1,"120":1,"121":1,"146":2,"148":1,"153":2,"171":1,"172":1,"176":1,"181":1,"182":1,"183":1,"184":1,"185":1,"224":4,"225":2,"257":1,"265":1,"268":3,"289":1}}],["defaults",{"2":{"22":1,"23":1,"34":1,"35":1,"74":1}}],["default",{"0":{"34":1,"35":1,"105":1,"131":1,"197":1,"198":1,"199":1,"200":1,"202":1,"203":1,"205":1,"206":1,"210":1,"211":1,"212":1,"213":1,"214":1,"216":1,"217":1,"218":1,"219":1,"220":1,"242":1,"252":1,"253":1,"254":1,"259":1},"2":{"2":1,"34":3,"35":3,"78":1,"79":1,"105":5,"118":3,"131":1,"155":1,"161":1,"259":1}}],["developer",{"2":{"288":1}}],["dev",{"0":{"123":1,"143":1,"154":1},"1":{"144":1,"145":1,"146":1,"147":1,"148":1,"149":1,"150":1,"151":1,"152":1,"153":1,"155":1},"2":{"2":1,"289":1,"292":1}}],["访问令牌",{"2":{"2":1}}],["a包中的index",{"2":{"285":1}}],["am",{"2":{"268":6}}],["amp",{"0":{"182":1}}],["arbitrary",{"0":{"251":1}}],["arg",{"2":{"224":13,"225":16}}],["argv",{"2":{"22":1}}],["args=coro",{"2":{"263":1}}],["args=",{"2":{"22":1,"137":1,"224":2}}],["args",{"0":{"24":1,"45":1,"54":1,"56":1,"92":1,"138":1,"198":1},"2":{"22":2,"24":2,"45":3,"54":2,"56":2,"92":2,"138":3,"146":2,"224":8,"225":8,"265":2,"295":4}}],["abs",{"2":{"226":4}}],["application",{"0":{"236":2},"2":{"231":1}}],["append",{"2":{"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"74":2,"109":2,"171":1,"174":1,"223":1,"224":5}}],["api格式为onebot",{"2":{"295":1}}],["api文档",{"2":{"282":1}}],["api也有差别",{"2":{"282":1}}],["api",{"0":{"282":1},"2":{"226":6,"280":3,"281":2,"295":3}}],["add",{"0":{"138":1,"174":1},"2":{"138":1,"162":1,"174":1,"175":1,"230":1}}],["adapter获取详细信息",{"2":{"3":1}}],["attributes=",{"2":{"224":2}}],["attributes",{"0":{"213":1,"219":1},"2":{"224":2,"225":2}}],["attributeinfo",{"0":{"204":1,"213":1,"219":1},"1":{"205":1,"206":1,"207":1,"208":1},"2":{"224":2}}],["attr",{"0":{"114":1,"115":1,"191":1,"192":1,"193":1,"194":1,"195":1,"197":1,"198":1,"199":1,"200":1,"201":1,"202":1,"203":1,"205":1,"206":1,"207":1,"208":1,"210":1,"211":1,"212":1,"213":1,"214":1,"216":1,"217":1,"218":1,"219":1,"220":1,"236":1,"237":1,"238":1,"239":1,"240":1,"242":1,"243":1,"244":1,"245":1,"246":1,"247":1,"248":1,"251":1,"252":1,"253":1,"254":1,"255":1},"2":{"224":2,"225":14}}],["assign",{"2":{"224":2}}],["ast",{"2":{"224":29}}],["as",{"2":{"106":1,"222":1,"224":1,"229":1,"262":1}}],["asynchronous",{"2":{"265":1}}],["async=isinstance",{"2":{"224":2}}],["asyncfunctiondef",{"2":{"224":3}}],["async",{"0":{"21":1,"38":1,"41":1,"45":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"64":1,"67":1,"73":2,"110":1,"111":1,"172":1,"183":1,"184":1,"185":1,"203":1,"257":1,"265":1},"2":{"39":1,"42":1,"45":3,"65":1,"68":1,"73":1,"74":1,"100":1,"101":1,"109":1,"110":1,"111":1,"176":1,"181":1,"182":1,"184":1,"185":1,"225":4,"257":1,"265":2,"268":2}}],["asyncio",{"2":{"19":2,"20":1,"21":1,"45":1,"73":1,"110":1,"262":5,"268":2}}],["a",{"2":{"71":1,"72":1,"125":1,"226":2,"230":1,"264":1,"288":1}}],["annassign",{"2":{"224":1}}],["annotation",{"2":{"224":6}}],["an",{"2":{"71":1,"80":1}}],["and",{"2":{"71":1,"153":1,"182":2,"224":7,"225":1,"230":3,"289":2}}],["any=none",{"2":{"34":1,"35":1}}],["any",{"0":{"34":2,"35":2,"60":1,"74":2,"86":1,"87":1,"88":1,"92":1,"104":1,"105":2,"107":1,"108":1,"110":1,"118":1,"119":1,"120":1,"121":1,"125":2,"126":1,"127":1,"128":1,"129":1,"130":1,"131":1,"134":4,"152":1,"165":2,"166":1,"207":1,"248":1,"261":1,"265":1},"2":{"19":1,"34":3,"35":3,"37":1,"38":1,"40":1,"41":1,"60":1,"63":1,"64":3,"67":2,"74":7,"77":1,"78":1,"79":1,"82":1,"83":1,"86":1,"87":1,"88":1,"92":1,"103":3,"104":1,"105":4,"107":3,"108":1,"109":1,"110":1,"118":1,"119":1,"120":1,"121":1,"125":2,"126":1,"127":1,"128":1,"129":1,"130":1,"131":1,"134":4,"152":1,"165":2,"166":1,"176":1,"224":7,"226":1,"261":1,"265":1}}],["author",{"0":{"246":1},"2":{"36":1,"132":1,"154":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"186":1,"189":1,"228":1,"232":1,"234":1,"256":1,"258":1}}],["auto",{"2":{"1":2,"2":1}}],["after",{"0":{"28":1,"29":1,"32":1,"47":1,"49":1,"51":1,"53":1,"55":1,"57":1},"2":{"28":2,"29":2,"32":2,"44":3,"47":2,"49":2,"51":2,"53":3,"55":3,"57":3,"268":1}}],["awaitable",{"2":{"38":1,"41":1}}],["await",{"2":{"21":1,"45":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"73":1,"74":2,"109":1,"111":2,"172":2,"181":2,"182":2,"183":1,"268":1,"280":1,"281":1,"283":1}}],["active和",{"2":{"268":1}}],["active和chan",{"2":{"138":1}}],["active=channel",{"2":{"138":1}}],["active=chan",{"2":{"138":1}}],["active",{"0":{"75":1,"78":1,"84":1,"134":2},"2":{"23":6,"75":1,"84":1,"103":2,"108":1,"111":1,"134":6,"138":4,"268":11}}],["activate激活",{"2":{"12":1}}],["activate来激活虚拟环境",{"2":{"12":1}}],["accesstoken",{"2":{"3":1}}],["access",{"2":{"2":1}}],["already",{"2":{"70":2,"80":1}}],["alive",{"0":{"21":1,"142":1},"2":{"21":2,"140":1,"142":2}}],["all",{"0":{"107":1,"121":1,"137":1,"139":1,"141":1},"2":{"20":1,"22":1,"26":1,"36":1,"107":2,"120":1,"121":3,"132":1,"137":1,"139":1,"141":1,"154":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"186":1,"189":1,"228":1,"232":1,"234":1,"256":1,"258":1}}],["allowed",{"0":{"251":1}}],["allow",{"2":{"2":1}}],["alconna提供的命令解析功能",{"2":{"10":1}}],["alconna是否自动补全指令",{"2":{"2":1}}],["alconna",{"2":{"2":1}}],["高级nonebot配置",{"2":{"2":1}}],["以上内容仅用于项目的优化",{"2":{"293":1}}],["以下我们会编写一个简单的插件",{"2":{"289":1}}],["以下为默认值",{"2":{"2":1}}],["以避免出现无法预料的问题",{"2":{"284":1}}],["以避免依赖冲突",{"2":{"12":1}}],["以保证litedoc能够正确解析并生成文档",{"2":{"276":1}}],["以前的最外层配置项仍可为nonebot服务",{"2":{"1":1}}],["period\`",{"2":{"304":1}}],["period>",{"2":{"303":1}}],["period",{"2":{"303":2}}],["poke",{"2":{"281":4}}],["port",{"2":{"1":1}}],["publish=publish",{"2":{"138":1}}],["publish",{"0":{"77":1,"108":1,"134":1},"2":{"77":1,"103":2,"108":2,"111":2,"134":3}}],["page为页数",{"2":{"297":2}}],["page",{"2":{"297":2}}],["pacman",{"0":{"297":1},"1":{"298":1}}],["pack",{"2":{"285":2,"297":3}}],["param",{"2":{"294":1}}],["parts",{"2":{"264":2}}],["parent",{"2":{"224":4}}],["parse",{"2":{"224":1}}],["pass",{"2":{"96":1,"97":1,"98":1}}],["passive=channel",{"2":{"138":1}}],["passive=chan",{"2":{"138":1}}],["passive",{"0":{"76":1,"79":1,"85":1,"134":2},"2":{"76":1,"80":1,"82":1,"83":1,"85":2,"86":2,"87":2,"88":1,"103":2,"104":1,"105":1,"106":1,"107":1,"117":1,"118":2,"119":2,"120":2,"121":1,"134":6,"138":5,"268":13}}],["pathlib",{"2":{"229":1}}],["paths=none",{"2":{"226":1}}],["paths",{"0":{"226":1},"2":{"226":4}}],["path=dot",{"2":{"224":1}}],["path",{"0":{"155":2,"216":1,"221":3,"224":1,"227":1,"229":2,"264":3},"2":{"6":3,"13":1,"15":1,"129":1,"130":2,"155":4,"221":8,"222":3,"223":1,"224":6,"226":22,"227":2,"229":16,"230":26,"264":11,"289":5}}],["profile",{"2":{"299":4}}],["property",{"0":{"195":2},"2":{"224":2}}],["processes",{"2":{"23":1,"136":1,"140":2,"142":1}}],["processmanager",{"0":{"135":1},"1":{"136":1,"137":1,"138":1,"139":1,"140":1,"141":1,"142":1},"2":{"19":2}}],["process",{"0":{"23":1,"30":2,"31":3,"40":1,"41":1,"42":1,"45":1,"48":3,"50":3,"54":1,"56":1,"142":1},"2":{"19":1,"20":1,"22":1,"23":4,"26":1,"30":5,"31":6,"33":2,"42":2,"44":4,"45":2,"48":6,"50":6,"54":2,"56":2,"70":4,"74":3,"80":1,"82":1,"83":1,"104":1,"105":1,"106":1,"107":1,"109":3,"111":2,"136":1,"137":2,"139":2,"140":7,"142":2,"268":8,"289":2}}],["private",{"0":{"224":1},"2":{"224":5}}],["priority",{"0":{"170":1,"175":1,"176":1},"2":{"170":4,"174":2,"175":2,"176":2}}],["print",{"2":{"19":1,"172":1,"226":1,"229":1}}],["pwd",{"2":{"13":3}}],["p",{"2":{"13":1,"304":1}}],["platform",{"2":{"22":3}}],["playwright安装失败",{"2":{"6":1}}],["plugintype",{"0":{"231":1,"235":1,"245":2},"1":{"236":1,"237":1,"238":1,"239":1,"240":1},"2":{"231":5,"288":1}}],["pluginmetadata",{"0":{"241":1,"255":1},"1":{"242":1,"243":1,"244":1,"245":1,"246":1,"247":1,"248":1},"2":{"229":4,"288":2}}],["plugin的函数签名",{"2":{"155":1}}],["plugin进行通信",{"2":{"8":1}}],["plugin",{"0":{"154":1,"187":1,"188":1,"228":1,"229":2,"230":2,"231":1,"232":1,"234":1,"249":1,"258":1},"1":{"155":1,"188":1,"229":1,"230":1,"231":1,"235":1,"236":1,"237":1,"238":1,"239":1,"240":1,"241":1,"242":1,"243":1,"244":1,"245":1,"246":1,"247":1,"248":1,"249":1,"250":2,"251":2,"252":2,"253":2,"254":2,"255":2,"259":1},"2":{"1":1,"10":1,"19":2,"154":1,"188":2,"229":14,"230":5,"231":4,"233":1,"259":6,"288":4,"291":1,"292":2,"297":5}}],["plugins下创建一个文件",{"2":{"292":1}}],["plugins中添加你的插件路径",{"2":{"291":1}}],["plugins目录下为插件目录",{"2":{"275":1}}],["plugins和nonebot",{"2":{"275":1}}],["plugins",{"0":{"155":1,"188":1,"230":1,"233":1,"256":1,"258":1,"259":1},"1":{"257":1,"259":1},"2":{"1":1,"19":1,"155":6,"188":2,"229":3,"230":9,"233":1,"259":4,"275":2,"289":1,"292":2}}],["py即可启动插件",{"2":{"292":1}}],["pyo",{"2":{"289":1}}],["pycache",{"2":{"289":1}}],["pyc",{"2":{"289":1}}],["pycharm",{"2":{"36":1,"132":1,"154":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"186":1,"189":1,"228":1,"232":1,"234":1,"256":1,"258":1}}],["py文件",{"2":{"288":1}}],["py文件或一个包含",{"2":{"288":1}}],["py的文件夹即可被识别为插件",{"2":{"288":1}}],["pyfile",{"0":{"227":1},"2":{"226":8,"227":1}}],["pyi",{"2":{"223":1,"224":1}}],["py",{"2":{"12":1,"36":1,"132":1,"154":1,"160":1,"163":1,"167":2,"168":1,"173":1,"177":1,"186":1,"189":1,"223":1,"224":1,"226":1,"228":1,"230":3,"232":1,"234":1,"256":1,"258":2,"271":1,"275":1,"285":1,"288":1,"289":1,"292":2}}],["py来启动bot",{"2":{"6":1}}],["python格式",{"2":{"279":1}}],["pythonfrom",{"2":{"268":1,"271":1,"288":1,"292":1}}],["pythonimport",{"2":{"268":1,"289":1}}],["pythonasync",{"2":{"21":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"73":1,"111":1,"172":1,"183":1}}],["pythondef",{"2":{"19":1,"20":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"44":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"60":1,"70":1,"71":1,"72":1,"74":1,"80":1,"81":1,"82":1,"83":1,"91":1,"92":1,"95":1,"96":1,"97":1,"98":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"131":1,"134":1,"136":1,"137":1,"138":1,"139":1,"140":1,"141":1,"142":1,"146":1,"149":1,"150":1,"151":1,"152":1,"153":1,"155":1,"161":1,"162":1,"165":1,"166":1,"170":1,"171":1,"174":1,"175":1,"176":1,"180":1,"181":1,"182":1,"188":1,"221":1,"222":1,"223":1,"224":1,"225":1,"226":1,"229":1,"230":1,"231":1,"250":1,"259":1,"261":1,"262":1,"263":1,"264":1,"265":1}}],["python为你的python可执行文件路径",{"2":{"15":1}}],["python3",{"2":{"12":1}}],["python是你要用来运行bot的可执行文件",{"2":{"6":1}}],["python",{"2":{"6":2,"12":1,"15":1,"45":1,"86":1,"87":1,"88":1,"110":1,"113":1,"118":1,"119":1,"120":1,"121":1,"148":1,"184":1,"185":1,"224":1,"257":1,"276":1}}],["pipe",{"2":{"70":2}}],["pip",{"2":{"6":1,"12":1,"15":1,"229":1}}],["pip和python不对应怎么办",{"2":{"6":1}}],["utils",{"0":{"260":1},"1":{"261":1,"262":1,"263":1,"264":1,"265":1},"2":{"275":1}}],["utf",{"2":{"126":1,"127":1,"128":1,"222":1,"224":1}}],["usage",{"0":{"244":1}}],["user",{"0":{"165":1,"299":1},"2":{"165":3,"166":2,"185":1,"281":3}}],["used",{"2":{"74":1,"233":1}}],["use",{"2":{"1":1,"35":1,"229":1}}],["unload",{"2":{"297":1,"298":1}}],["uninstall",{"2":{"297":1,"298":1}}],["uninstall卸载问题插件",{"2":{"6":1}}],["until",{"2":{"262":2}}],["unclassified",{"0":{"239":2,"245":1}}],["unparse",{"2":{"224":10}}],["unsupported",{"2":{"129":1}}],["update",{"2":{"1":1,"2":1,"129":3,"130":1,"131":1,"295":1,"296":1,"297":1,"298":1}}],["某些控制台字体不可用",{"2":{"1":1}}],["tests",{"2":{"275":1}}],["test",{"0":{"240":2},"2":{"231":1}}],["text",{"2":{"225":3}}],["terminated",{"2":{"140":1}}],["terminate",{"0":{"140":1,"141":1},"2":{"22":1,"26":1,"140":2,"141":2}}],["the",{"2":{"158":1,"229":1,"233":1}}],["this",{"2":{"158":1,"233":1}}],["thread",{"0":{"263":1},"2":{"22":1,"137":1,"263":2}}],["threading",{"0":{"115":1},"2":{"19":1,"22":1,"137":1,"263":1}}],["types",{"0":{"251":1}}],["type=plugintype",{"2":{"288":1}}],["type=attr",{"2":{"224":1}}],["type=ast",{"2":{"224":3}}],["type=def",{"2":{"224":1}}],["type=deftype",{"2":{"224":1}}],["type=self",{"2":{"166":2}}],["typeerror",{"2":{"70":1,"71":1,"80":1}}],["type",{"0":{"70":1,"165":2,"199":1,"202":1,"206":1,"231":1,"245":1},"2":{"70":11,"71":7,"80":1,"165":6,"166":2,"224":11,"225":13,"229":2,"231":4,"276":1}}],["typealias",{"2":{"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"63":1,"64":1,"65":1,"66":1,"67":1,"68":1,"144":1,"145":1,"178":1}}],["target",{"0":{"138":3,"221":1},"2":{"138":5,"221":3,"224":5}}],["target=run",{"2":{"263":1}}],["target=self",{"2":{"137":1}}],["target=os",{"2":{"22":1}}],["targets",{"2":{"136":1,"137":1,"138":1,"139":1,"141":1,"142":1,"224":2}}],["task",{"2":{"110":1,"137":1}}],["tasks",{"2":{"45":2}}],["tuple=",{"2":{"138":1}}],["tuplestr",{"2":{"35":1}}],["tuple",{"0":{"35":1,"86":1,"87":1,"88":1,"92":1,"118":1,"119":1,"120":1,"121":1,"134":2,"138":1,"153":1,"198":1},"2":{"35":1,"77":1,"79":1,"86":1,"87":1,"88":1,"92":1,"103":3,"118":1,"119":1,"120":1,"121":1,"134":2,"136":2,"153":1}}],["title",{"2":{"226":2}}],["time>",{"2":{"280":1}}],["timeout",{"2":{"140":1}}],["time",{"2":{"22":1,"36":1,"132":1,"146":9,"154":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"186":1,"189":1,"228":1,"232":1,"234":1,"256":1,"258":1}}],["tip",{"2":{"12":1,"13":1,"283":1,"285":1,"294":1}}],["t",{"0":{"69":1,"71":1,"72":1,"73":1,"74":2},"1":{"70":1,"71":1,"72":1,"73":1,"74":1},"2":{"13":1,"33":1,"63":1,"64":1,"66":1,"67":1,"71":2,"72":2,"73":2,"74":7}}],["txt",{"2":{"12":1}}],["txt来安装依赖",{"2":{"6":1,"15":1}}],["tree",{"2":{"224":3}}],["traceback",{"2":{"172":1,"229":1}}],["try",{"2":{"20":1,"21":1,"106":1,"172":1,"229":1,"262":1}}],["trss",{"2":{"8":1,"14":1}}],["true时例如docs",{"2":{"226":1}}],["true下启动轻雪",{"2":{"6":1}}],["true",{"0":{"106":1,"153":1,"224":1,"230":1,"251":1},"2":{"1":3,"2":1,"72":1,"111":1,"162":1,"183":1,"184":1,"226":1,"268":2,"274":1}}],["tokyo",{"2":{"301":1}}],["token",{"2":{"2":1}}],["top",{"0":{"226":1},"2":{"226":3}}],["toml",{"0":{"128":1},"2":{"128":4,"129":2,"131":1}}],["toml和config目录下的所有配置文件",{"2":{"0":1}}],["to",{"0":{"222":1,"264":1},"2":{"6":3,"13":1,"15":2,"22":1,"23":1,"34":1,"35":1,"71":1,"74":1,"222":1,"226":1,"229":5,"230":2,"233":1,"264":2}}],["image",{"2":{"295":2,"296":1}}],["implemented",{"2":{"148":1}}],["import",{"2":{"117":1,"229":1,"268":5,"271":1,"288":2,"289":3,"292":1}}],["iter",{"2":{"224":2}}],["items",{"2":{"81":1,"125":2,"222":1,"225":1,"226":1}}],["i",{"2":{"174":2,"268":6}}],["ignored",{"0":{"226":1},"2":{"226":7}}],["ignore",{"0":{"106":1,"224":1,"230":1},"2":{"106":3,"224":5,"226":1,"230":5}}],["id仅超级用户可用",{"2":{"295":1}}],["id=user",{"2":{"281":2}}],["id=1234567",{"2":{"295":2}}],["id=123456",{"2":{"281":1}}],["id=self",{"2":{"166":3}}],["id",{"0":{"165":3},"2":{"74":5,"165":9,"166":3,"185":1,"224":6,"281":2,"295":2,"297":1,"303":4}}],["ids",{"2":{"70":2,"74":2}}],["if",{"2":{"22":2,"23":1,"33":2,"35":2,"45":1,"70":5,"71":3,"72":1,"74":6,"80":3,"82":1,"83":1,"104":1,"105":1,"106":3,"107":1,"109":5,"111":2,"113":2,"125":1,"126":1,"127":1,"128":1,"129":2,"130":3,"138":1,"140":2,"142":1,"146":1,"153":1,"161":1,"162":5,"165":1,"166":1,"172":1,"174":1,"183":1,"222":1,"223":1,"224":20,"225":10,"226":4,"229":2,"230":9,"261":2,"262":1,"264":1}}],["isclass",{"2":{"261":1}}],["iscoroutinefunction",{"2":{"261":2}}],["isroutine",{"2":{"261":1}}],["isfile",{"2":{"230":1,"289":1}}],["isdir",{"2":{"230":2}}],["isinstance",{"2":{"80":1,"125":1,"224":13,"229":1,"268":1}}],["is",{"0":{"142":1,"185":1,"203":1,"261":1},"2":{"19":1,"20":2,"21":3,"23":1,"33":2,"45":1,"70":6,"71":1,"74":5,"80":1,"82":1,"83":1,"103":2,"104":1,"105":1,"106":1,"107":1,"109":3,"111":1,"113":2,"126":1,"127":1,"128":1,"138":1,"140":1,"142":2,"153":1,"158":1,"165":1,"183":1,"185":1,"224":2,"225":2,"226":1,"229":1,"230":2,"233":1,"261":1,"262":1}}],["icu",{"2":{"12":1}}],["icon=f",{"2":{"162":5}}],["icon",{"2":{"1":1,"162":7,"225":1,"226":2}}],["index",{"2":{"225":1,"226":1,"285":1}}],["inherit=",{"2":{"224":1}}],["inherit",{"0":{"214":1},"2":{"225":5}}],["inspect",{"2":{"261":4,"265":1}}],["insert",{"2":{"174":1}}],["instead",{"2":{"35":1}}],["instance",{"0":{"113":1,"114":1},"2":{"19":2,"33":4,"71":1,"80":1,"113":5,"116":1}}],["install安装浏览器",{"2":{"6":1}}],["install",{"2":{"6":1,"12":1,"15":1,"294":1,"297":1,"298":1}}],["inner",{"2":{"70":2}}],["in",{"0":{"131":1,"263":1},"2":{"23":1,"33":1,"35":3,"45":1,"70":5,"73":1,"74":1,"80":1,"81":1,"106":1,"109":3,"110":1,"111":1,"125":2,"129":1,"130":2,"131":1,"137":1,"139":1,"140":1,"141":1,"142":1,"153":1,"155":1,"172":1,"174":1,"176":2,"185":1,"222":1,"223":2,"224":13,"225":9,"226":5,"230":2,"233":2,"259":2,"262":2,"263":1,"289":1}}],["int=0",{"2":{"22":1,"175":1,"176":1}}],["int",{"0":{"22":1,"170":1,"175":1,"176":1},"2":{"22":1,"44":1,"70":2,"170":1}}],["initialized",{"2":{"33":1,"70":2}}],["initializing",{"2":{"19":1}}],["init",{"0":{"19":1,"24":1,"25":1,"44":1,"60":1,"70":1,"91":1,"95":1,"103":1,"134":1,"136":1,"162":1,"165":1,"170":1,"180":1},"2":{"19":2,"24":2,"25":2,"44":1,"60":1,"70":1,"91":1,"95":1,"103":1,"134":1,"136":1,"162":1,"165":1,"167":1,"170":1,"180":1,"224":1,"226":2,"230":2,"258":1,"264":1,"288":3}}],["info",{"0":{"224":1,"225":1},"2":{"1":1,"19":1,"20":2,"21":2,"22":1,"162":3,"224":12,"225":5,"226":5,"268":2}}],["日志等级",{"2":{"1":1}}],["lyf结尾",{"2":{"279":1}}],["lyfunction语法",{"2":{"295":1}}],["lyfunction",{"2":{"279":1}}],["lt",{"2":{"276":2,"294":1,"295":7,"297":10,"299":2}}],["locks",{"2":{"106":1}}],["lock",{"0":{"115":2},"2":{"104":3,"105":3,"106":3,"113":1}}],["loaded",{"0":{"188":1},"2":{"188":1}}],["loader",{"0":{"258":1,"259":1},"1":{"259":1},"2":{"19":1,"259":1}}],["loading",{"2":{"126":1,"127":1,"128":1}}],["load",{"0":{"126":1,"127":1,"128":1,"129":1,"130":1,"131":1,"228":1,"229":1,"230":1},"1":{"229":1,"230":1,"231":1},"2":{"19":1,"126":3,"127":3,"128":3,"129":4,"130":2,"131":3,"155":2,"228":1,"229":3,"230":2,"259":2,"297":1,"298":1}}],["loop",{"0":{"111":1},"2":{"19":4,"70":1,"73":3,"103":2,"111":2,"262":10}}],["log0000",{"2":{"268":1}}],["logger",{"0":{"25":1},"2":{"19":1,"20":2,"21":2,"22":1,"24":1,"25":1,"35":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"70":2,"126":1,"127":1,"128":1,"129":2,"130":1,"137":1,"140":2,"142":1,"162":7,"229":3,"230":3,"262":1,"268":3,"289":2}}],["logo",{"2":{"19":1}}],["log",{"0":{"160":1,"162":1},"1":{"161":1,"162":1},"2":{"1":2,"25":1,"160":1,"162":3,"268":1}}],["liteecho",{"0":{"256":1,"257":1},"1":{"257":1},"2":{"256":2,"257":2,"295":1}}],["liteyuki框架是包含在liteyukibot应用中的",{"2":{"275":1}}],["liteyukiexception",{"0":{"157":1}}],["liteyuki轻雪机器人管理脚本",{"2":{"14":1}}],["liteyukibot代替$",{"2":{"13":1}}],["liteyukibot",{"0":{"18":1,"33":1},"1":{"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1},"2":{"12":3,"13":5,"22":1,"33":2,"155":1,"275":1}}],["liteyukistudio",{"2":{"12":2,"13":1,"36":1,"132":1,"154":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"186":1,"189":1,"228":1,"232":1,"234":1,"256":1,"258":1}}],["liteyuki",{"0":{"17":1,"36":1,"58":1,"61":1,"62":1,"89":1,"93":1,"99":1,"122":1,"123":1,"124":1,"132":1,"143":1,"154":1,"156":1,"158":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"186":1,"187":1,"189":1,"228":1,"232":1,"233":1,"234":1,"256":1,"258":1,"260":1,"297":1},"1":{"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"59":1,"60":1,"63":1,"64":1,"65":1,"66":1,"67":1,"68":1,"69":1,"70":1,"71":1,"72":1,"73":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"81":1,"82":1,"83":1,"84":1,"85":1,"86":1,"87":1,"88":1,"90":1,"91":1,"92":1,"94":1,"95":1,"96":1,"97":1,"98":1,"100":1,"101":1,"102":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"131":1,"133":1,"134":1,"135":1,"136":1,"137":1,"138":1,"139":1,"140":1,"141":1,"142":1,"144":1,"145":1,"146":1,"147":1,"148":1,"149":1,"150":1,"151":1,"152":1,"153":1,"155":1,"157":1,"159":1,"161":1,"162":1,"164":1,"165":1,"166":1,"169":1,"170":1,"171":1,"172":1,"174":1,"175":1,"176":1,"178":1,"179":1,"180":1,"181":1,"182":1,"183":1,"184":1,"185":1,"188":1,"190":1,"191":1,"192":1,"193":1,"194":1,"195":1,"196":1,"197":1,"198":1,"199":1,"200":1,"201":1,"202":1,"203":1,"204":1,"205":1,"206":1,"207":1,"208":1,"209":1,"210":1,"211":1,"212":1,"213":1,"214":1,"215":1,"216":1,"217":1,"218":1,"219":1,"220":1,"221":1,"222":1,"223":1,"224":1,"225":1,"226":1,"227":1,"229":1,"230":1,"231":1,"235":1,"236":1,"237":1,"238":1,"239":1,"240":1,"241":1,"242":1,"243":1,"244":1,"245":1,"246":1,"247":1,"248":1,"249":1,"250":1,"251":1,"252":1,"253":1,"254":1,"255":1,"257":1,"259":1,"261":1,"262":1,"263":1,"264":1,"265":1,"298":1},"2":{"1":2,"2":1,"12":1,"19":2,"21":2,"33":1,"155":2,"158":1,"229":5,"259":3,"268":12,"271":2,"275":3,"278":1,"284":1,"288":1,"289":4,"292":1,"295":4,"296":3}}],["listdir",{"2":{"130":1,"230":2}}],["list",{"0":{"165":1,"176":1,"198":1,"212":1,"213":1,"214":1,"217":1,"218":1,"219":1,"223":1},"2":{"44":6,"70":2,"100":1,"101":1,"165":1,"170":1,"174":3,"176":1,"223":4,"224":4,"226":3,"295":1,"297":2,"298":1}}],["life",{"2":{"44":1}}],["lifespan=self",{"2":{"19":1}}],["lifespan",{"0":{"27":2,"28":1,"29":1,"30":1,"31":2,"32":1,"36":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"45":2,"46":2,"47":2,"48":2,"49":2,"50":2,"51":2,"136":2},"1":{"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":2,"45":2,"46":2,"47":2,"48":2,"49":2,"50":2,"51":2,"52":2,"53":2,"54":2,"55":2,"56":2,"57":2},"2":{"19":3,"27":5,"28":4,"29":4,"30":4,"31":5,"32":4,"36":1,"39":2,"42":2,"44":6,"45":4,"46":4,"47":4,"48":4,"49":4,"50":4,"51":4,"136":4}}],["linux系统要支持python3",{"2":{"15":1}}],["linux",{"2":{"14":1,"22":1}}],["linux下使用source",{"2":{"12":1}}],["llonebot",{"2":{"8":1}}],["laptop",{"2":{"226":2}}],["lang",{"0":{"225":1,"226":1},"2":{"225":3,"226":2}}],["language",{"2":{"2":1}}],["last",{"2":{"146":4}}],["lambda",{"2":{"117":1,"118":2,"119":2,"120":2,"121":1}}],["lagrange",{"2":{"8":1}}],["level=0",{"2":{"162":1}}],["level",{"0":{"161":1},"2":{"1":1,"161":2,"162":6}}],["写在外层的配置项将会被覆盖",{"2":{"1":1}}],["switch",{"2":{"295":2,"296":1}}],["simple",{"2":{"288":1}}],["signature",{"2":{"265":2}}],["src目录下为应用程序部分",{"2":{"275":1}}],["src",{"2":{"259":1,"275":1,"289":5}}],["sparkles",{"2":{"276":2}}],["specified",{"2":{"229":1}}],["split",{"2":{"229":4}}],["schedule",{"2":{"153":1}}],["scripts部署",{"0":{"14":1}}],["scripts",{"2":{"12":1}}],["source",{"0":{"201":1},"2":{"224":2,"225":6}}],["sockschannel",{"0":{"94":1},"1":{"95":1,"96":1,"97":1,"98":1}}],["socks",{"0":{"93":1},"1":{"94":1,"95":1,"96":1,"97":1,"98":1}}],["software",{"2":{"36":1,"132":1,"154":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"186":1,"189":1,"228":1,"232":1,"234":1,"256":1,"258":1}}],["shinjuku",{"2":{"301":1}}],["shellstatistic",{"2":{"303":1}}],["shellbind",{"2":{"301":1}}],["shellweather",{"2":{"301":1}}],["shellmain",{"2":{"285":1}}],["shellvar",{"2":{"280":1}}],["shellcmd",{"2":{"279":1}}],["shell",{"2":{"279":1,"281":1}}],["shutil",{"2":{"226":1}}],["shutdown",{"0":{"29":1,"30":1,"48":1,"49":1,"54":1,"55":1},"2":{"29":2,"30":2,"44":2,"48":2,"49":2,"54":3,"55":3}}],["show",{"2":{"162":6}}],["should",{"2":{"70":1}}],["shared",{"0":{"116":1},"2":{"103":3,"117":1,"118":3,"119":3,"120":3,"121":2,"138":1,"271":3}}],["sync",{"0":{"37":1,"40":1,"63":1,"66":1},"2":{"39":1,"42":1,"65":1,"68":1,"265":1}}],["system",{"0":{"153":1},"2":{"22":4,"153":1,"289":2}}],["sys",{"2":{"22":3,"162":1}}],["snowykami",{"2":{"36":2,"132":2,"154":2,"160":2,"163":2,"167":2,"168":2,"173":2,"177":2,"186":2,"189":2,"228":2,"232":2,"234":2,"256":2,"258":2}}],["succeeded",{"2":{"229":1}}],["success",{"2":{"140":1,"162":2,"229":2}}],["summary>",{"2":{"225":3}}],["summary>源代码",{"2":{"225":1}}],["su",{"0":{"185":1},"2":{"185":1,"256":1,"257":1}}],["supported",{"2":{"130":1}}],["superusers",{"2":{"1":1,"185":1}}],["subscribe",{"2":{"109":1}}],["subscriber",{"0":{"100":1,"101":1,"109":1,"110":1},"2":{"109":7,"110":2,"111":1}}],["sub",{"0":{"101":1},"2":{"33":1,"70":2,"74":1,"103":1,"109":4,"111":1}}],["sleep",{"2":{"21":1,"22":1,"268":1,"280":1,"281":1}}],["style",{"2":{"276":1,"285":2}}],["stem",{"2":{"264":2}}],["stdout",{"2":{"162":1}}],["store",{"2":{"103":1,"104":1,"105":1,"106":2,"107":1,"233":1}}],["storage",{"0":{"99":1},"1":{"100":1,"101":1,"102":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1},"2":{"61":2,"271":2}}],["stopped",{"2":{"20":1}}],["stopping",{"2":{"20":1}}],["stop",{"0":{"26":1},"2":{"19":1,"20":1,"21":2,"26":2}}],["stat",{"2":{"304":1}}],["statistic",{"2":{"304":1}}],["statistics",{"0":{"303":1},"1":{"304":1}}],["static",{"0":{"193":1},"2":{"224":1}}],["staticmethod",{"0":{"193":1},"2":{"44":1,"45":1,"109":1,"110":1,"224":1}}],["status",{"2":{"295":1,"296":1}}],["startup",{"2":{"268":2}}],["startswith",{"2":{"224":3,"256":1,"257":1}}],["starting",{"2":{"137":1}}],["start或superusers",{"2":{"6":1}}],["start保证alconna解析正常",{"2":{"1":1}}],["start",{"0":{"27":1,"28":1,"46":1,"47":1,"52":1,"53":1,"111":1,"137":1},"2":{"1":1,"20":1,"22":2,"27":2,"28":2,"44":2,"46":2,"47":2,"52":3,"53":3,"111":2,"137":2,"263":1,"268":1}}],["strip",{"2":{"257":2}}],["str=",{"2":{"225":1,"226":1}}],["structure",{"2":{"71":1}}],["str",{"0":{"23":1,"34":1,"35":2,"60":2,"70":1,"80":1,"81":1,"82":1,"83":1,"86":2,"87":2,"88":2,"95":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"118":2,"119":2,"120":2,"121":2,"125":2,"126":2,"127":2,"128":2,"129":2,"130":2,"131":1,"134":2,"138":1,"140":1,"142":1,"153":1,"155":1,"161":2,"165":9,"166":2,"176":1,"188":1,"197":1,"198":2,"199":1,"200":1,"201":1,"205":1,"206":1,"208":1,"210":1,"211":1,"214":1,"216":1,"220":1,"221":3,"222":2,"223":1,"224":1,"225":2,"226":3,"229":1,"230":1,"231":2,"242":1,"243":1,"244":1,"246":1,"247":1,"248":1,"252":1,"254":1,"264":1},"2":{"19":1,"23":2,"34":2,"35":3,"40":1,"41":1,"60":2,"70":2,"77":2,"79":2,"80":2,"81":2,"82":2,"83":3,"86":2,"87":2,"88":2,"95":1,"100":1,"101":1,"103":5,"104":1,"105":1,"106":1,"107":3,"108":1,"109":1,"110":1,"118":2,"119":2,"120":2,"121":2,"125":2,"126":2,"127":2,"128":2,"129":2,"130":2,"131":1,"134":2,"136":2,"138":1,"140":1,"142":1,"153":1,"155":1,"161":2,"165":9,"166":2,"176":1,"185":1,"188":2,"221":3,"222":2,"223":1,"224":1,"225":1,"226":4,"229":1,"230":1,"231":3,"264":2,"268":1}}],["search",{"2":{"297":1,"298":1}}],["service",{"0":{"237":2},"2":{"231":1,"288":1}}],["server",{"2":{"15":1}}],["sep",{"2":{"224":3}}],["session",{"0":{"165":2,"186":1},"2":{"165":6,"166":5,"186":1}}],["sequence",{"0":{"45":1},"2":{"45":2}}],["send",{"0":{"71":1,"96":1},"2":{"23":2,"70":2,"71":4,"80":1,"82":1,"83":1,"87":1,"88":1,"95":1,"96":1,"104":1,"105":1,"106":1,"107":1,"108":1,"111":1,"118":1,"121":1,"166":1,"268":3,"295":1}}],["set",{"0":{"80":1,"81":1,"86":1,"104":1,"119":1,"230":1},"2":{"19":1,"21":1,"26":1,"70":1,"80":2,"81":2,"85":1,"86":3,"104":2,"118":1,"119":3,"230":2,"262":1,"271":1,"295":2,"296":1,"299":2}}],["self",{"0":{"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"44":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"60":1,"70":1,"71":1,"72":1,"73":1,"74":1,"91":1,"92":1,"95":1,"96":1,"97":1,"98":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"111":1,"134":1,"136":1,"137":1,"138":1,"139":1,"140":1,"141":1,"142":1,"148":1,"149":1,"150":1,"151":1,"152":1,"165":1,"166":1,"170":1,"171":1,"172":1,"180":1,"181":1,"182":1,"183":1,"250":1},"2":{"19":11,"20":4,"21":3,"22":4,"23":2,"24":2,"25":1,"26":3,"27":2,"28":2,"29":2,"30":2,"31":2,"32":2,"44":8,"46":2,"47":2,"48":2,"49":2,"50":2,"51":2,"52":3,"53":3,"54":3,"55":3,"56":3,"57":3,"60":3,"70":14,"71":6,"72":3,"73":2,"74":3,"91":2,"92":2,"95":5,"96":1,"97":1,"98":1,"103":7,"104":3,"105":3,"106":4,"107":3,"108":2,"109":1,"111":4,"134":6,"136":4,"137":2,"138":2,"139":2,"140":3,"141":3,"142":3,"148":1,"149":2,"150":2,"151":2,"152":2,"165":10,"166":3,"170":5,"171":2,"172":3,"180":2,"181":2,"182":2,"183":3,"224":1,"225":1,"250":2}}],["safe",{"2":{"2":1,"126":1}}],["num为每页显示数量",{"2":{"297":2}}],["num",{"2":{"297":2}}],["npm",{"2":{"297":7,"298":1}}],["nliteyuki",{"2":{"279":1}}],["n\`\`\`",{"2":{"225":2}}],["n\`\`\`python",{"2":{"225":2}}],["n",{"2":{"225":52,"226":2}}],["name>",{"2":{"280":2}}],["name=module",{"2":{"229":3}}],["name=target",{"2":{"224":2}}],["name=class",{"2":{"224":1}}],["name=node",{"2":{"224":2}}],["name=f",{"2":{"138":2}}],["name=",{"2":{"75":1,"76":1,"77":1,"84":1,"85":1,"103":3,"288":1}}],["name",{"0":{"23":1,"60":1,"70":1,"80":1,"82":1,"95":1,"138":1,"140":1,"142":1,"197":1,"205":1,"210":1,"227":1,"231":2,"242":1,"252":1,"254":1,"264":1},"2":{"23":6,"60":3,"70":11,"80":7,"81":2,"82":5,"86":3,"87":3,"95":4,"137":3,"138":5,"139":1,"140":6,"141":2,"142":5,"224":11,"225":7,"226":2,"229":20,"230":9,"231":6,"250":1,"264":1,"268":2,"295":4,"297":8}}],["new",{"2":{"19":1,"125":3,"262":1}}],["nodes",{"2":{"224":2}}],["node",{"2":{"224":42}}],["node等进程",{"2":{"15":1}}],["normal",{"0":{"224":1},"2":{"224":1,"226":1}}],["normal>",{"2":{"162":1}}],["nonlocal",{"2":{"146":1}}],["nonedog",{"2":{"288":1}}],["none",{"0":{"19":1,"23":1,"34":1,"35":1,"44":1,"45":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"70":1,"74":1,"91":1,"104":1,"105":1,"106":1,"108":1,"114":1,"138":1,"153":1,"165":2,"172":1,"207":1,"225":1,"226":1,"255":1},"2":{"19":1,"23":2,"33":1,"34":1,"35":1,"44":1,"45":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"70":3,"71":1,"73":1,"74":2,"91":1,"95":2,"104":1,"106":1,"108":1,"113":2,"126":1,"127":1,"128":1,"138":1,"144":1,"146":1,"153":1,"165":1,"172":1,"178":2,"183":1,"224":3,"226":1,"229":4,"230":1,"261":1}}],["nonebot插件目录",{"2":{"275":1}}],["nonebot2提供的框架支持",{"2":{"10":1}}],["nonebot",{"2":{"2":1,"10":1,"260":1,"268":3,"275":1,"288":1,"289":4,"292":1}}],["nonebot机器人的配置",{"2":{"1":1}}],["no",{"0":{"129":1,"130":1,"131":1,"197":1,"198":1,"199":1,"200":1,"202":1,"203":1,"205":1,"206":1,"210":1,"211":1,"212":1,"213":1,"214":1,"216":1,"217":1,"218":1,"219":1,"220":1,"227":1,"242":1,"252":1,"253":1,"254":1},"2":{"78":1,"79":1,"129":3,"130":3,"131":3,"224":3,"225":1,"226":2}}],["nohup",{"2":{"22":2,"280":1,"281":1}}],["notimplementederror",{"2":{"148":1}}],["not",{"2":{"21":1,"23":1,"33":1,"70":1,"71":2,"74":4,"80":1,"106":1,"109":3,"111":1,"126":1,"127":1,"128":1,"129":3,"130":3,"140":2,"142":2,"153":2,"172":1,"222":1,"224":8,"229":1,"230":8,"289":2}}],["ntqq的onebot插件",{"2":{"8":1}}],["nickname",{"2":{"1":1}}],["若不存在则返回空",{"2":{"295":1}}],["若不存在则创建于config",{"2":{"295":1}}],["若存在则返回",{"2":{"295":1}}],["若存在则覆盖",{"2":{"295":1}}],["若存在则会覆盖",{"2":{"295":1}}],["若要戳20s后停止",{"2":{"281":1}}],["若要接收外部请求请填写0",{"2":{"1":1}}],["若函数中启动了其他task",{"2":{"280":1}}],["若有面向普通用户部分",{"2":{"276":1}}],["若有子进程订阅则推送给子进程",{"2":{"111":1}}],["若有困难请联系对应开发者而不是liteyuki的开发者",{"2":{"9":1}}],["若为空",{"2":{"70":1}}],["若你不希望提供这些信息",{"2":{"293":1}}],["若你不能访问github",{"2":{"12":1}}],["若你修改了端口号请将20216",{"2":{"13":1}}],["若没有metadata",{"2":{"285":1}}],["若没有",{"2":{"1":1}}],["14s",{"2":{"303":2}}],["1h",{"2":{"303":2}}],["1d",{"2":{"303":2}}],["1145141919810",{"2":{"295":1}}],["11",{"2":{"258":1}}],["19",{"2":{"163":1,"167":1,"168":1,"173":1,"177":1,"186":1,"189":1}}],["1919810",{"2":{"1":1}}],["10",{"2":{"159":1,"295":1}}],["10+",{"2":{"12":1,"15":1}}],["18",{"2":{"154":1}}],["12",{"2":{"132":1,"160":1}}],["127",{"2":{"1":1,"3":1}}],["1",{"2":{"1":1,"2":1,"3":2,"21":1,"22":2,"23":2,"74":1,"86":2,"87":2,"88":1,"111":2,"118":3,"119":2,"120":1,"121":1,"125":1,"147":1,"148":1,"225":6,"226":1,"229":4,"264":2,"285":2,"288":1}}],["03",{"2":{"268":2}}],["0000",{"2":{"268":3}}],["00",{"2":{"268":18}}],["02",{"2":{"234":1,"258":1}}],["04",{"2":{"154":1}}],["04+",{"2":{"15":1}}],["0",{"0":{"22":1,"175":1,"176":1},"2":{"1":5,"3":4,"19":1,"21":1,"22":2,"44":1,"85":1,"86":2,"87":2,"88":1,"111":1,"117":2,"118":2,"119":2,"120":2,"121":1,"170":1,"224":1,"225":7,"281":1,"285":2,"288":2}}],["请注意",{"2":{"284":1}}],["请确保您所编写的html代码能被bot解析",{"2":{"284":1}}],["请确保用户文档是通俗易懂的",{"2":{"276":1}}],["请确保文档内的链接是正确的",{"2":{"276":1}}],["请确保文档是完善的",{"2":{"276":1}}],["请确保注释风格为google",{"2":{"276":1}}],["请确保代码的类型提示是正确的",{"2":{"276":1}}],["请确保代码是可运行的",{"2":{"276":1}}],["请确保你了解markdown语法和基本前端知识",{"2":{"273":1}}],["请遵循以下规范",{"2":{"276":1}}],["请阅读插件主页的说明",{"2":{"298":1}}],["请阅读插件开发文档和api",{"2":{"273":1}}],["请阅读以下内容",{"2":{"273":1}}],["请不要将需要动态加载的内容写入配置文件",{"2":{"124":1}}],["请联系插件作者或在安全模式safe",{"2":{"6":1}}],["请先查阅插件文档",{"2":{"6":1}}],["请正确安装git",{"2":{"6":1}}],["请检查配置文件的command",{"2":{"6":1}}],["请使用path",{"2":{"15":1}}],["请使用",{"2":{"6":1}}],["请在此填写相同的值",{"2":{"3":1}}],["请开启alconna",{"2":{"1":1}}],["请尽快迁移",{"2":{"1":1}}],["空命令头",{"2":{"1":1}}],["指令前缀",{"2":{"1":1}}],["轻雪天气liteyuki",{"0":{"301":1},"1":{"302":1}}],["轻雪文档",{"2":{"296":1}}],["轻雪命令liteyuki",{"0":{"295":1},"1":{"296":1}}],["轻雪会收集以下内容",{"2":{"293":1}}],["轻雪会自动合并这些配置文件",{"2":{"0":1}}],["轻雪主进程不涉及聊天部分",{"2":{"289":1}}],["轻雪原版资源包请查看liteyukibot",{"2":{"284":1}}],["轻雪函数",{"0":{"278":1},"1":{"279":1,"280":1,"281":1,"282":1,"283":1},"2":{"278":1}}],["轻雪框架提供了一个内存共享通信的接口",{"2":{"270":1}}],["轻雪提供了一个通道channel用于跨进程通信",{"2":{"267":1}}],["轻雪运行在主进程",{"2":{"267":1}}],["轻雪抽象消息事件",{"2":{"165":1}}],["轻雪生命周期管理",{"2":{"44":1}}],["轻雪实例",{"2":{"33":1}}],["轻雪的更新功能依赖git",{"2":{"15":1}}],["轻雪使用git进行版本管理",{"2":{"12":1}}],["轻雪不局限于onebot适配器",{"2":{"4":1}}],["轻雪调试",{"2":{"2":1}}],["轻雪插件是轻雪内置的一部分功能",{"2":{"286":1}}],["轻雪插件目录",{"2":{"275":1}}],["轻雪插件目录列表",{"2":{"1":1}}],["轻雪插件列表",{"2":{"1":1}}],["轻雪支持yaml",{"2":{"0":1}}],["y",{"2":{"231":1}}],["your",{"2":{"229":2}}],["yellow>",{"2":{"162":1}}],["y>",{"2":{"20":2}}],["y>liteyuki",{"2":{"20":2}}],["yunzai",{"2":{"8":1}}],["yamlweather",{"2":{"301":1}}],["yamlname",{"2":{"285":1}}],["yamlnonebot",{"2":{"1":1}}],["yaml",{"0":{"126":1},"2":{"0":1,"2":1,"126":4,"129":2,"131":1}}],["yml格式的所有合法内容",{"2":{"295":1}}],["yml文件",{"2":{"285":1}}],["yml中填写一些信息",{"2":{"285":1}}],["yml中设置dev",{"2":{"274":1}}],["yml",{"2":{"0":1,"129":1,"131":1,"285":2,"295":1}}],["yml和config目录",{"2":{"0":1}}],["你的插件代码",{"2":{"288":1}}],["你的贡献将会使轻雪变得更好",{"2":{"277":1}}],["你在a包中定义了一个index",{"2":{"285":1}}],["你自己制作的资源包也应该遵循这个规则",{"2":{"285":1}}],["你也可以自己制作资源包",{"2":{"284":1}}],["你应该使用其他储存方式",{"2":{"124":1}}],["你将无法使用更新功能",{"2":{"15":1}}],["你需要使用onebot标准的实现端来连接到轻雪并将消息上报给轻雪",{"2":{"6":1}}],["你有这个问题说明你不是很了解这个项目",{"2":{"6":1}}],["你可以选择开启auto",{"2":{"293":1}}],["你可以自由使用",{"2":{"293":1}}],["你可以自定义一些信息",{"2":{"285":1}}],["你可以在多个线程中读写共享内存",{"2":{"270":1}}],["你可以通过storage模块实现内存共享通信",{"2":{"270":1}}],["你可以通过channel发送消息给其他进程",{"2":{"267":1}}],["你可以使用python",{"2":{"12":1}}],["你可以使用nonebot2支持的任何适配器或使用轻雪讯息传递插件",{"2":{"4":1}}],["你可在此自定义生成的markdown格式",{"2":{"225":1}}],["你可在config目录下创建多个配置文件",{"2":{"0":1}}],["你可修改配置项后重启轻雪",{"2":{"0":1}}],["你只需要修改superusers及nickname字段即可",{"2":{"0":1}}],["绝大多数情况下",{"2":{"0":1}}],["取决于你个人的喜好",{"2":{"0":1}}],["配置项",{"2":{"301":1}}],["配置项目",{"2":{"125":1}}],["配置了命令别名的命令可以使用别名代替原命令",{"2":{"294":1}}],["配置文件尽量扁平化",{"2":{"124":1}}],["配置值",{"2":{"34":1,"35":1}}],["配置键",{"2":{"34":1,"35":1}}],["配置",{"0":{"0":1},"1":{"1":1,"2":1,"3":1,"4":1},"2":{"19":2,"296":1}}]],"serializationVersion":2}`;export{e as default}; diff --git a/assets/chunks/@localSearchIndexroot.J2Co3lhu.js b/assets/chunks/@localSearchIndexroot.J2Co3lhu.js new file mode 100644 index 00000000..e1a54e65 --- /dev/null +++ b/assets/chunks/@localSearchIndexroot.J2Co3lhu.js @@ -0,0 +1 @@ +const e=`{"documentCount":305,"nextId":305,"documentIds":{"0":"/deploy/config.html#配置","1":"/deploy/config.html#基础配置项","2":"/deploy/config.html#其他配置","3":"/deploy/config.html#示例-与nonebot对接的onebot实现端配置","4":"/deploy/config.html#其他","5":"/deploy/fandq.html#答疑","6":"/deploy/fandq.html#常见问题","7":"/deploy/fandq.html#其他问题","8":"/deploy/fandq.html#推荐方案-qq","9":"/deploy/fandq.html#推荐方案-minecraft","10":"/deploy/fandq.html#鸣谢","11":"/deploy/install.html#安装","12":"/deploy/install.html#常规部署","13":"/deploy/install.html#使用docker构建","14":"/deploy/install.html#使用trss-scripts部署","15":"/deploy/install.html#装置要求","16":"/deploy/install.html#其他问题请移步至答疑","17":"/dev/api/bot/#模块-liteyuki-bot","18":"/dev/api/bot/#class-liteyukibot","19":"/dev/api/bot/#func-init-self-kwargs-none","20":"/dev/api/bot/#func-run-self","21":"/dev/api/bot/#async-func-keep-alive-self","22":"/dev/api/bot/#func-restart-self-delay-int-0","23":"/dev/api/bot/#func-restart-process-self-name-optional-str-none","24":"/dev/api/bot/#func-init-self-args-kwargs","25":"/dev/api/bot/#func-init-logger-self","26":"/dev/api/bot/#func-stop-self","27":"/dev/api/bot/#func-on-before-start-self-func-lifespan-func-lifespan-func","28":"/dev/api/bot/#func-on-after-start-self-func-lifespan-func","29":"/dev/api/bot/#func-on-after-shutdown-self-func-lifespan-func","30":"/dev/api/bot/#func-on-before-process-shutdown-self-func-process-lifespan-func","31":"/dev/api/bot/#func-on-before-process-restart-self-func-process-lifespan-func-process-lifespan-func","32":"/dev/api/bot/#func-on-after-restart-self-func-lifespan-func","33":"/dev/api/bot/#func-get-bot-liteyukibot","34":"/dev/api/bot/#func-get-config-key-str-default-any-none-any","35":"/dev/api/bot/#func-get-config-with-compat-key-str-compat-keys-tuple-str-default-any-none-any","36":"/dev/api/bot/lifespan.html#模块-liteyuki-bot-lifespan","37":"/dev/api/bot/lifespan.html#var-sync-lifespan-func","38":"/dev/api/bot/lifespan.html#var-async-lifespan-func","39":"/dev/api/bot/lifespan.html#var-lifespan-func","40":"/dev/api/bot/lifespan.html#var-sync-process-lifespan-func","41":"/dev/api/bot/lifespan.html#var-async-process-lifespan-func","42":"/dev/api/bot/lifespan.html#var-process-lifespan-func","43":"/dev/api/bot/lifespan.html#class-lifespan","44":"/dev/api/bot/lifespan.html#func-init-self-none","45":"/dev/api/bot/lifespan.html#async-func-run-funcs-funcs-sequence-lifespan-func-process-lifespan-func-args-kwargs-none","46":"/dev/api/bot/lifespan.html#func-on-before-start-self-func-lifespan-func-lifespan-func","47":"/dev/api/bot/lifespan.html#func-on-after-start-self-func-lifespan-func-lifespan-func","48":"/dev/api/bot/lifespan.html#func-on-before-process-shutdown-self-func-process-lifespan-func-process-lifespan-func","49":"/dev/api/bot/lifespan.html#func-on-after-shutdown-self-func-lifespan-func-lifespan-func","50":"/dev/api/bot/lifespan.html#func-on-before-process-restart-self-func-process-lifespan-func-process-lifespan-func","51":"/dev/api/bot/lifespan.html#func-on-after-restart-self-func-lifespan-func-lifespan-func","52":"/dev/api/bot/lifespan.html#async-func-before-start-self-none","53":"/dev/api/bot/lifespan.html#async-func-after-start-self-none","54":"/dev/api/bot/lifespan.html#async-func-before-process-shutdown-self-args-kwargs-none","55":"/dev/api/bot/lifespan.html#async-func-after-shutdown-self-none","56":"/dev/api/bot/lifespan.html#async-func-before-process-restart-self-args-kwargs-none","57":"/dev/api/bot/lifespan.html#async-func-after-restart-self-none","58":"/dev/api/comm/channel.html#模块-liteyuki-comm-channel","59":"/dev/api/comm/channel.html#var-sync-on-receive-func","60":"/dev/api/comm/channel.html#var-async-on-receive-func","61":"/dev/api/comm/channel.html#var-on-receive-func","62":"/dev/api/comm/channel.html#var-sync-filter-func","63":"/dev/api/comm/channel.html#var-async-filter-func","64":"/dev/api/comm/channel.html#var-filter-func","65":"/dev/api/comm/channel.html#class-channel-generic-t","66":"/dev/api/comm/channel.html#func-init-self-name-str-type-check-optional-bool-none","67":"/dev/api/comm/channel.html#func-send-self-data-t","68":"/dev/api/comm/channel.html#func-receive-self-t","69":"/dev/api/comm/channel.html#async-func-async-receive-self-t","70":"/dev/api/comm/channel.html#func-on-receive-self-filter-func-optional-filter-func-none-callable-callable-t-any-callable-t-any","71":"/dev/api/comm/channel.html#var-active-channel","72":"/dev/api/comm/channel.html#var-passive-channel","73":"/dev/api/comm/channel.html#var-publish-channel","74":"/dev/api/comm/channel.html#var-channel-deliver-active-channel","75":"/dev/api/comm/channel.html#var-channel-deliver-passive-channel","76":"/dev/api/comm/channel.html#func-set-channel-name-str-channel-channel","77":"/dev/api/comm/channel.html#func-set-channels-channels-dict-str-channel","78":"/dev/api/comm/channel.html#func-get-channel-name-str-channel","79":"/dev/api/comm/channel.html#func-get-channels-dict-str-channel","80":"/dev/api/comm/channel.html#var-channel-deliver-active-channel-1","81":"/dev/api/comm/channel.html#var-channel-deliver-passive-channel-1","82":"/dev/api/comm/channel.html#func-on-set-channel-data-tuple-str-dict-str-any","83":"/dev/api/comm/channel.html#func-on-get-channel-data-tuple-str-dict-str-any","84":"/dev/api/comm/channel.html#func-on-get-channels-data-tuple-str-dict-str-any","85":"/dev/api/comm/event.html#模块-liteyuki-comm-event","86":"/dev/api/comm/event.html#class-event","87":"/dev/api/comm/event.html#func-init-self-name-str-data-dict-str-any","88":"/dev/api/comm/#模块-liteyuki-comm","89":"/dev/api/comm/rpc.html#模块-liteyuki-comm-rpc","90":"/dev/api/comm/rpc.html#class-rpc","91":"/dev/api/comm/rpc.html#func-init-self-on-calling-on-calling-func-none","92":"/dev/api/comm/rpc.html#func-call-self-args-tuple-kwargs-dict-any","93":"/dev/api/comm/socks_channel.html#模块-liteyuki-comm-socks-channel","94":"/dev/api/comm/socks_channel.html#class-sockschannel","95":"/dev/api/comm/socks_channel.html#func-init-self-name-str","96":"/dev/api/comm/socks_channel.html#func-send-self-data","97":"/dev/api/comm/socks_channel.html#func-receive-self","98":"/dev/api/comm/socks_channel.html#func-close-self","99":"/dev/api/comm/storage.html#模块-liteyuki-comm-storage","100":"/dev/api/comm/storage.html#var-on-main-subscriber-receive-funcs","101":"/dev/api/comm/storage.html#var-on-sub-subscriber-receive-funcs","102":"/dev/api/comm/storage.html#class-keyvaluestore","103":"/dev/api/comm/storage.html#func-init-self","104":"/dev/api/comm/storage.html#func-set-self-key-str-value-any-none","105":"/dev/api/comm/storage.html#func-get-self-key-str-default-optional-any-none-optional-any","106":"/dev/api/comm/storage.html#func-delete-self-key-str-ignore-key-error-bool-true-none","107":"/dev/api/comm/storage.html#func-get-all-self-dict-str-any","108":"/dev/api/comm/storage.html#func-publish-self-channel-str-data-any-none","109":"/dev/api/comm/storage.html#func-on-subscriber-receive-self-channel-str-callable-on-receive-func-on-receive-func","110":"/dev/api/comm/storage.html#async-func-run-subscriber-receive-funcs-channel-str-data-any","111":"/dev/api/comm/storage.html#async-func-start-receive-loop-self","112":"/dev/api/comm/storage.html#class-globalkeyvaluestore","113":"/dev/api/comm/storage.html#func-get-instance-cls","114":"/dev/api/comm/storage.html#attr-instance-none","115":"/dev/api/comm/storage.html#attr-lock-threading-lock","116":"/dev/api/comm/storage.html#var-shared-memory","117":"/dev/api/comm/storage.html#var-ref-count","118":"/dev/api/comm/storage.html#func-on-get-data-tuple-str-dict-str-any","119":"/dev/api/comm/storage.html#func-on-set-data-tuple-str-dict-str-any","120":"/dev/api/comm/storage.html#func-on-delete-data-tuple-str-dict-str-any","121":"/dev/api/comm/storage.html#func-on-get-all-data-tuple-str-dict-str-any","122":"/dev/api/config.html#模块-liteyuki-config","123":"/dev/api/config.html#func-flat-config-config-dict-str-any-dict-str-any","124":"/dev/api/config.html#func-load-from-yaml-file-str-dict-str-any","125":"/dev/api/config.html#func-load-from-json-file-str-dict-str-any","126":"/dev/api/config.html#func-load-from-toml-file-str-dict-str-any","127":"/dev/api/config.html#func-load-from-files-files-str-no-warning-bool-false-dict-str-any","128":"/dev/api/config.html#func-load-configs-from-dirs-directories-str-no-waring-bool-false-dict-str-any","129":"/dev/api/config.html#func-load-config-in-default-no-waring-bool-false-dict-str-any","130":"/dev/api/core/#模块-liteyuki-core","131":"/dev/api/core/manager.html#模块-liteyuki-core-manager","132":"/dev/api/core/manager.html#class-channeldeliver","133":"/dev/api/core/manager.html#func-init-self-active-channel-any-passive-channel-any-channel-deliver-active-channel-channel-any-channel-deliver-passive-channel-tuple-str-dict-publish-channel-tuple-str-any","134":"/dev/api/core/manager.html#class-processmanager","135":"/dev/api/core/manager.html#func-init-self-lifespan-lifespan","136":"/dev/api/core/manager.html#func-start-all-self","137":"/dev/api/core/manager.html#func-add-target-self-name-str-target-target-func-args-tuple-kwargs-none","138":"/dev/api/core/manager.html#func-join-all-self","139":"/dev/api/core/manager.html#func-terminate-self-name-str","140":"/dev/api/core/manager.html#func-terminate-all-self","141":"/dev/api/core/manager.html#func-is-process-alive-self-name-str-bool","142":"/dev/api/dev/#模块-liteyuki-dev","143":"/dev/api/dev/observer.html#模块-liteyuki-dev-observer","144":"/dev/api/dev/observer.html#var-callback-func","145":"/dev/api/dev/observer.html#var-filter-func","146":"/dev/api/dev/observer.html#func-debounce-wait","147":"/dev/api/dev/observer.html#class-codemodifiedhandler-filesystemeventhandler","148":"/dev/api/dev/observer.html#func-on-modified-self-event","149":"/dev/api/dev/observer.html#func-on-created-self-event","150":"/dev/api/dev/observer.html#func-on-deleted-self-event","151":"/dev/api/dev/observer.html#func-on-moved-self-event","152":"/dev/api/dev/observer.html#func-on-any-event-self-event","153":"/dev/api/dev/observer.html#func-on-file-system-event-directories-tuple-str-recursive-bool-true-event-filter-filter-func-none-callable-callback-func-callback-func","154":"/dev/api/dev/plugin.html#模块-liteyuki-dev-plugin","155":"/dev/api/dev/plugin.html#func-run-plugins-module-path-str-path","156":"/dev/api/exception.html#模块-liteyuki-exception","157":"/dev/api/exception.html#class-liteyukiexception-baseexception","158":"/dev/api/#模块-liteyuki","159":"/dev/api/#var-version","160":"/dev/api/log.html#模块-liteyuki-log","161":"/dev/api/log.html#func-get-format-level-str-str","162":"/dev/api/log.html#func-init-log-config-dict","163":"/dev/api/message/event.html#模块-liteyuki-message-event","164":"/dev/api/message/event.html#class-messageevent","165":"/dev/api/message/event.html#func-init-self-bot-id-str-message-list-dict-str-any-str-message-type-str-raw-message-str-session-id-str-user-id-str-session-type-str-receive-channel-optional-channel-messageevent-none-data-optional-dict-str-any-none","166":"/dev/api/message/event.html#func-reply-self-message-str-dict-str-any","167":"/dev/api/message/#模块-liteyuki-message","168":"/dev/api/message/matcher.html#模块-liteyuki-message-matcher","169":"/dev/api/message/matcher.html#class-matcher","170":"/dev/api/message/matcher.html#func-init-self-rule-rule-priority-int-block-bool","171":"/dev/api/message/matcher.html#func-handle-self-callable-eventhandler-eventhandler","172":"/dev/api/message/matcher.html#async-func-run-self-event-messageevent-none","173":"/dev/api/message/on.html#模块-liteyuki-message-on","174":"/dev/api/message/on.html#func-add-matcher-matcher-matcher","175":"/dev/api/message/on.html#func-on-message-rule-rule-empty-rule-priority-int-0-block-bool-false-matcher","176":"/dev/api/message/on.html#func-on-keywords-keywords-list-str-rule-empty-rule-priority-int-0-block-bool-false-matcher","177":"/dev/api/message/rule.html#模块-liteyuki-message-rule","178":"/dev/api/message/rule.html#var-rulehandlerfunc","179":"/dev/api/message/rule.html#class-rule","180":"/dev/api/message/rule.html#func-init-self-handler-rulehandlerfunc","181":"/dev/api/message/rule.html#func-self-other-rule-rule","182":"/dev/api/message/rule.html#func-self-other-rule-rule-1","183":"/dev/api/message/rule.html#async-func-self-event-messageevent-bool","184":"/dev/api/message/rule.html#async-func-empty-rule-event-messageevent-bool","185":"/dev/api/message/rule.html#async-func-is-su-rule-event-messageevent-bool","186":"/dev/api/message/session.html#模块-liteyuki-message-session","187":"/dev/api/mkdoc.html#模块-liteyuki-mkdoc","188":"/dev/api/mkdoc.html#class-deftype-enum","189":"/dev/api/mkdoc.html#attr-function-function","190":"/dev/api/mkdoc.html#attr-method-method","191":"/dev/api/mkdoc.html#attr-static-method-staticmethod","192":"/dev/api/mkdoc.html#attr-class-method-classmethod","193":"/dev/api/mkdoc.html#attr-property-property","194":"/dev/api/mkdoc.html#class-functioninfo-basemodel","195":"/dev/api/mkdoc.html#attr-name-str-no-default","196":"/dev/api/mkdoc.html#attr-args-list-tuple-str-str-no-default","197":"/dev/api/mkdoc.html#attr-return-type-str-no-default","198":"/dev/api/mkdoc.html#attr-docstring-str-no-default","199":"/dev/api/mkdoc.html#attr-source-code-str","200":"/dev/api/mkdoc.html#attr-type-deftype-no-default","201":"/dev/api/mkdoc.html#attr-is-async-bool-no-default","202":"/dev/api/mkdoc.html#class-attributeinfo-basemodel","203":"/dev/api/mkdoc.html#attr-name-str-no-default-1","204":"/dev/api/mkdoc.html#attr-type-str-no-default","205":"/dev/api/mkdoc.html#attr-value-any-none","206":"/dev/api/mkdoc.html#attr-docstring-str","207":"/dev/api/mkdoc.html#class-classinfo-basemodel","208":"/dev/api/mkdoc.html#attr-name-str-no-default-2","209":"/dev/api/mkdoc.html#attr-docstring-str-no-default-1","210":"/dev/api/mkdoc.html#attr-methods-list-functioninfo-no-default","211":"/dev/api/mkdoc.html#attr-attributes-list-attributeinfo-no-default","212":"/dev/api/mkdoc.html#attr-inherit-list-str-no-default","213":"/dev/api/mkdoc.html#class-moduleinfo-basemodel","214":"/dev/api/mkdoc.html#attr-module-path-str-no-default","215":"/dev/api/mkdoc.html#attr-functions-list-functioninfo-no-default","216":"/dev/api/mkdoc.html#attr-classes-list-classinfo-no-default","217":"/dev/api/mkdoc.html#attr-attributes-list-attributeinfo-no-default-1","218":"/dev/api/mkdoc.html#attr-docstring-str-no-default-2","219":"/dev/api/mkdoc.html#func-get-relative-path-base-path-str-target-path-str-str","220":"/dev/api/mkdoc.html#func-write-to-files-file-data-dict-str-str","221":"/dev/api/mkdoc.html#func-get-file-list-module-folder-str","222":"/dev/api/mkdoc.html#func-get-module-info-normal-file-path-str-ignore-private-bool-true-moduleinfo","223":"/dev/api/mkdoc.html#func-generate-markdown-module-info-moduleinfo-front-matter-none-lang-str-zh-cn-str","224":"/dev/api/mkdoc.html#func-generate-docs-module-folder-str-output-dir-str-with-top-bool-false-lang-str-zh-cn-ignored-paths-none","225":"/dev/api/mkdoc.html#var-no-module-name-pyfile-path","226":"/dev/api/plugin/#模块-liteyuki-plugin","227":"/dev/api/plugin/#func-get-loaded-plugins-dict-str-plugin","228":"/dev/api/plugin/load.html#模块-liteyuki-plugin-load","229":"/dev/api/plugin/load.html#func-load-plugin-module-path-str-path-optional-plugin","230":"/dev/api/plugin/load.html#func-load-plugins-plugin-dir-str-ignore-warning-bool-true-set-plugin","231":"/dev/api/plugin/load.html#func-format-display-name-display-name-str-plugin-type-plugintype-str","232":"/dev/api/plugin/manager.html#模块-liteyuki-plugin-manager","233":"/dev/api/plugin/model.html#模块-liteyuki-plugin-model","234":"/dev/api/plugin/model.html#class-plugintype-enum","235":"/dev/api/plugin/model.html#attr-application-application","236":"/dev/api/plugin/model.html#attr-service-service","237":"/dev/api/plugin/model.html#attr-module-module","238":"/dev/api/plugin/model.html#attr-unclassified-unclassified","239":"/dev/api/plugin/model.html#attr-test-test","240":"/dev/api/plugin/model.html#class-pluginmetadata-basemodel","241":"/dev/api/plugin/model.html#attr-name-str-no-default","242":"/dev/api/plugin/model.html#attr-description-str","243":"/dev/api/plugin/model.html#attr-usage-str","244":"/dev/api/plugin/model.html#attr-type-plugintype-plugintype-unclassified","245":"/dev/api/plugin/model.html#attr-author-str","246":"/dev/api/plugin/model.html#attr-homepage-str","247":"/dev/api/plugin/model.html#attr-extra-dict-str-any","248":"/dev/api/plugin/model.html#class-plugin-basemodel","249":"/dev/api/plugin/model.html#func-hash-self","250":"/dev/api/plugin/model.html#attr-model-config-arbitrary-types-allowed-true","251":"/dev/api/plugin/model.html#attr-name-str-no-default-1","252":"/dev/api/plugin/model.html#attr-module-moduletype-no-default","253":"/dev/api/plugin/model.html#attr-module-name-str-no-default","254":"/dev/api/plugin/model.html#attr-metadata-optional-pluginmetadata-none","255":"/dev/api/plugins/#模块-liteyuki-plugins","256":"/dev/api/plugins/liteecho.html#模块-liteyuki-plugins-liteecho","257":"/dev/api/plugins/liteecho.html#async-func-liteecho-event-messageevent","258":"/dev/api/plugins/plugin_loader/#模块-liteyuki-plugins-plugin-loader","259":"/dev/api/plugins/plugin_loader/#func-default-plugins-loader","260":"/dev/api/utils.html#模块-liteyuki-utils","261":"/dev/api/utils.html#func-is-coroutine-callable-call-callable-any-bool","262":"/dev/api/utils.html#func-run-coroutine-coro-coroutine","263":"/dev/api/utils.html#func-run-coroutine-in-thread-coro-coroutine","264":"/dev/api/utils.html#func-path-to-module-name-path-path-str","265":"/dev/api/utils.html#func-async-wrapper-func-callable-any-callable-coroutine","266":"/dev/comm.html#通道通信","267":"/dev/comm.html#简介","268":"/dev/comm.html#示例","269":"/dev/comm.html#共享内存通信","270":"/dev/comm.html#简介-1","271":"/dev/comm.html#示例-1","272":"/dev/guide.html#开发指南","273":"/dev/guide.html#如何开发","274":"/dev/guide.html#建议","275":"/dev/guide.html#项目结构","276":"/dev/guide.html#规范化","277":"/dev/guide.html#最后","278":"/dev/lyfunc.html#轻雪函数","279":"/dev/lyfunc.html#函数文件","280":"/dev/lyfunc.html#命令文档","281":"/dev/lyfunc.html#示例","282":"/dev/lyfunc.html#api","283":"/dev/lyfunc.html#结束关键字","284":"/dev/plugin.html#简介","285":"/dev/plugin.html#开始","286":"/dev/plugin.html#创建插件","287":"/dev/plugin.html#编写逻辑部分","288":"/dev/plugin.html#加载插件","289":"/dev/plugin.html#方法1","290":"/dev/plugin.html#方法2","291":"/dev/resource.html#简介","292":"/dev/resource.html#加载资源包","293":"/usage/agreement.html#用户协议","294":"/usage/basic.html#基础插件","295":"/usage/basic.html#轻雪命令liteyuki-command","296":"/usage/basic.html#命令别名","297":"/usage/basic.html#插件-包管理器-liteyuki-pacman","298":"/usage/basic.html#命令别名-1","299":"/usage/basic.html#用户管理liteyuki-user","300":"/usage/extra.html#功能插件命令","301":"/usage/extra.html#轻雪天气liteyuki-weather","302":"/usage/extra.html#命令别名","303":"/usage/extra.html#统计信息liteyuki-statistics","304":"/usage/extra.html#命令别名-1"},"fieldIds":{"title":0,"titles":1,"text":2},"fieldLength":{"0":[1,1,16],"1":[1,1,51],"2":[1,1,48],"3":[2,1,28],"4":[1,1,3],"5":[1,1,1],"6":[1,1,55],"7":[1,1,2],"8":[3,1,30],"9":[3,1,6],"10":[1,1,8],"11":[1,1,1],"12":[1,1,48],"13":[1,1,35],"14":[2,1,7],"15":[1,1,39],"16":[1,2,1],"17":[3,1,1],"18":[2,3,1],"19":[6,5,57],"20":[4,5,28],"21":[6,5,30],"22":[8,5,59],"23":[10,5,35],"24":[6,5,15],"25":[5,5,13],"26":[4,5,15],"27":[8,5,20],"28":[8,5,19],"29":[8,5,20],"30":[10,5,22],"31":[10,5,23],"32":[8,5,20],"33":[5,3,34],"34":[10,3,26],"35":[14,3,45],"36":[4,1,24],"37":[4,4,8],"38":[4,4,9],"39":[3,4,11],"40":[5,4,9],"41":[5,4,10],"42":[4,4,12],"43":[2,4,1],"44":[5,6,31],"45":[13,6,38],"46":[8,6,21],"47":[8,6,21],"48":[10,6,23],"49":[8,6,21],"50":[10,6,23],"51":[8,6,21],"52":[7,6,20],"53":[7,6,20],"54":[10,6,23],"55":[7,6,21],"56":[10,6,23],"57":[7,6,21],"58":[4,1,3],"59":[5,4,9],"60":[5,4,10],"61":[4,4,12],"62":[4,4,9],"63":[4,4,11],"64":[3,4,11],"65":[5,4,1],"66":[12,9,72],"67":[6,9,44],"68":[5,9,29],"69":[6,9,28],"70":[15,9,64],"71":[3,4,9],"72":[3,4,9],"73":[3,4,15],"74":[4,4,11],"75":[4,4,12],"76":[7,4,40],"77":[7,4,19],"78":[7,4,31],"79":[8,4,30],"80":[4,4,9],"81":[4,4,17],"82":[10,4,25],"83":[10,4,28],"84":[10,4,27],"85":[4,1,2],"86":[2,4,1],"87":[9,6,13],"88":[3,1,8],"89":[4,1,4],"90":[2,4,1],"91":[10,6,15],"92":[9,6,18],"93":[5,1,2],"94":[2,5,1],"95":[6,7,20],"96":[5,7,13],"97":[4,7,13],"98":[4,7,10],"99":[4,1,4],"100":[6,4,12],"101":[6,4,12],"102":[2,4,1],"103":[4,6,30],"104":[9,6,31],"105":[12,6,37],"106":[12,6,42],"107":[9,6,30],"108":[9,6,21],"109":[13,6,52],"110":[11,6,29],"111":[7,6,42],"112":[2,4,2],"113":[5,6,18],"114":[4,6,1],"115":[6,6,1],"116":[3,4,9],"117":[3,4,17],"118":[9,4,29],"119":[9,4,27],"120":[9,4,27],"121":[10,4,27],"122":[3,1,14],"123":[8,3,38],"124":[10,3,35],"125":[10,3,34],"126":[10,3,34],"127":[14,3,43],"128":[16,3,49],"129":[15,3,34],"130":[3,1,1],"131":[4,1,24],"132":[2,4,1],"133":[14,6,18],"134":[2,4,1],"135":[6,6,17],"136":[5,6,28],"137":[14,6,48],"138":[5,6,13],"139":[6,6,31],"140":[5,6,12],"141":[9,6,27],"142":[3,1,2],"143":[4,1,5],"144":[3,4,9],"145":[3,4,9],"146":[4,4,25],"147":[4,4,3],"148":[6,8,17],"149":[6,8,10],"150":[6,8,10],"151":[6,8,10],"152":[6,8,10],"153":[20,4,53],"154":[4,1,24],"155":[9,4,30],"156":[3,1,2],"157":[4,3,1],"158":[2,1,10],"159":[3,2,7],"160":[3,1,24],"161":[6,3,17],"162":[6,3,46],"163":[4,1,24],"164":[2,4,1],"165":[24,6,32],"166":[9,6,34],"167":[3,1,24],"168":[4,1,24],"169":[2,4,1],"170":[10,6,25],"171":[7,6,20],"172":[8,6,30],"173":[4,1,24],"174":[5,4,21],"175":[15,4,19],"176":[16,4,30],"177":[4,1,24],"178":[2,4,11],"179":[2,4,1],"180":[6,6,10],"181":[7,6,19],"182":[7,6,19],"183":[8,6,20],"184":[8,4,16],"185":[9,4,21],"186":[4,1,24],"187":[3,1,24],"188":[4,3,1],"189":[5,7,1],"190":[5,7,1],"191":[6,7,1],"192":[6,7,1],"193":[5,7,1],"194":[4,3,1],"195":[6,7,1],"196":[8,7,1],"197":[7,7,1],"198":[6,7,1],"199":[6,7,1],"200":[6,7,1],"201":[7,7,1],"202":[4,3,1],"203":[6,7,1],"204":[6,7,1],"205":[5,7,1],"206":[5,7,1],"207":[4,3,1],"208":[6,7,1],"209":[6,7,1],"210":[7,7,1],"211":[7,7,1],"212":[7,7,1],"213":[4,3,1],"214":[7,7,1],"215":[7,7,1],"216":[7,7,1],"217":[7,7,1],"218":[6,7,1],"219":[8,3,20],"220":[9,3,36],"221":[8,3,27],"222":[15,3,143],"223":[15,3,95],"224":[20,3,95],"225":[6,3,10],"226":[3,1,1],"227":[9,3,17],"228":[4,1,24],"229":[12,4,75],"230":[15,4,58],"231":[9,4,37],"232":[4,1,24],"233":[4,1,24],"234":[4,4,1],"235":[5,8,1],"236":[5,8,1],"237":[5,8,1],"238":[5,8,1],"239":[5,8,1],"240":[4,4,1],"241":[6,8,1],"242":[5,8,1],"243":[5,8,1],"244":[5,8,1],"245":[5,8,1],"246":[5,8,1],"247":[7,8,1],"248":[4,4,1],"249":[3,8,10],"250":[9,8,1],"251":[6,8,1],"252":[6,8,1],"253":[7,8,1],"254":[6,8,1],"255":[3,1,15],"256":[4,1,30],"257":[6,4,21],"258":[5,1,24],"259":[5,5,21],"260":[3,1,5],"261":[9,3,30],"262":[6,3,42],"263":[8,3,20],"264":[8,3,38],"265":[8,3,25],"266":[1,1,1],"267":[1,1,12],"268":[1,1,83],"269":[1,1,1],"270":[1,2,9],"271":[1,2,18],"272":[1,1,1],"273":[1,1,18],"274":[1,2,10],"275":[1,1,36],"276":[1,1,55],"277":[1,1,4],"278":[1,1,9],"279":[1,1,25],"280":[1,1,33],"281":[1,2,26],"282":[1,1,7],"283":[1,1,18],"284":[1,1,4],"285":[1,1,1],"286":[1,2,42],"287":[1,2,58],"288":[1,2,1],"289":[1,3,6],"290":[1,3,25],"291":[1,1,31],"292":[1,1,56],"293":[1,1,28],"294":[1,1,16],"295":[2,1,86],"296":[1,3,30],"297":[4,1,53],"298":[1,5,38],"299":[2,1,20],"300":[1,1,1],"301":[2,1,30],"302":[1,3,8],"303":[2,1,35],"304":[1,3,17]},"averageFieldLength":[5.550819672131149,4.127868852459012,18.93114754098361],"storedFields":{"0":{"title":"配置","titles":[]},"1":{"title":"基础配置项","titles":["配置"]},"2":{"title":"其他配置","titles":["配置"]},"3":{"title":"示例:与NoneBot对接的OneBot实现端配置","titles":["配置"]},"4":{"title":"其他","titles":["配置"]},"5":{"title":"答疑","titles":[]},"6":{"title":"常见问题","titles":["答疑"]},"7":{"title":"其他问题","titles":["答疑"]},"8":{"title":"推荐方案(QQ)","titles":["答疑"]},"9":{"title":"推荐方案(Minecraft)","titles":["答疑"]},"10":{"title":"鸣谢","titles":["答疑"]},"11":{"title":"安装","titles":[]},"12":{"title":"常规部署","titles":["安装"]},"13":{"title":"使用Docker构建","titles":["安装"]},"14":{"title":"使用TRSS Scripts部署","titles":["安装"]},"15":{"title":"装置要求","titles":["安装"]},"16":{"title":"其他问题请移步至","titles":["安装","装置要求"]},"17":{"title":"模块 liteyuki.bot","titles":[]},"18":{"title":"class LiteyukiBot","titles":["模块 liteyuki.bot"]},"19":{"title":"func __init__(self, **kwargs) -> None","titles":["模块 liteyuki.bot","class LiteyukiBot"]},"20":{"title":"func run(self)","titles":["模块 liteyuki.bot","class LiteyukiBot"]},"21":{"title":"async func keep_alive(self)","titles":["模块 liteyuki.bot","class LiteyukiBot"]},"22":{"title":"func restart(self, delay: int = 0)","titles":["模块 liteyuki.bot","class LiteyukiBot"]},"23":{"title":"func restart_process(self, name: Optional[str] = None)","titles":["模块 liteyuki.bot","class LiteyukiBot"]},"24":{"title":"func init(self, *args, **kwargs)","titles":["模块 liteyuki.bot","class LiteyukiBot"]},"25":{"title":"func init_logger(self)","titles":["模块 liteyuki.bot","class LiteyukiBot"]},"26":{"title":"func stop(self)","titles":["模块 liteyuki.bot","class LiteyukiBot"]},"27":{"title":"func on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC","titles":["模块 liteyuki.bot","class LiteyukiBot"]},"28":{"title":"func on_after_start(self, func: LIFESPAN_FUNC)","titles":["模块 liteyuki.bot","class LiteyukiBot"]},"29":{"title":"func on_after_shutdown(self, func: LIFESPAN_FUNC)","titles":["模块 liteyuki.bot","class LiteyukiBot"]},"30":{"title":"func on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC)","titles":["模块 liteyuki.bot","class LiteyukiBot"]},"31":{"title":"func on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC","titles":["模块 liteyuki.bot","class LiteyukiBot"]},"32":{"title":"func on_after_restart(self, func: LIFESPAN_FUNC)","titles":["模块 liteyuki.bot","class LiteyukiBot"]},"33":{"title":"func get_bot() -> LiteyukiBot","titles":["模块 liteyuki.bot"]},"34":{"title":"func get_config(key: str, default: Any = None) -> Any","titles":["模块 liteyuki.bot"]},"35":{"title":"func get_config_with_compat(key: str, compat_keys: tuple[str], default: Any = None) -> Any","titles":["模块 liteyuki.bot"]},"36":{"title":"模块 liteyuki.bot.lifespan","titles":[]},"37":{"title":"var SYNC_LIFESPAN_FUNC","titles":["模块 liteyuki.bot.lifespan"]},"38":{"title":"var ASYNC_LIFESPAN_FUNC","titles":["模块 liteyuki.bot.lifespan"]},"39":{"title":"var LIFESPAN_FUNC","titles":["模块 liteyuki.bot.lifespan"]},"40":{"title":"var SYNC_PROCESS_LIFESPAN_FUNC","titles":["模块 liteyuki.bot.lifespan"]},"41":{"title":"var ASYNC_PROCESS_LIFESPAN_FUNC","titles":["模块 liteyuki.bot.lifespan"]},"42":{"title":"var PROCESS_LIFESPAN_FUNC","titles":["模块 liteyuki.bot.lifespan"]},"43":{"title":"class Lifespan","titles":["模块 liteyuki.bot.lifespan"]},"44":{"title":"func __init__(self) -> None","titles":["模块 liteyuki.bot.lifespan","class Lifespan"]},"45":{"title":"async func run_funcs(funcs: Sequence[LIFESPAN_FUNC | PROCESS_LIFESPAN_FUNC], *args, **kwargs) -> None","titles":["模块 liteyuki.bot.lifespan","class Lifespan"]},"46":{"title":"func on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC","titles":["模块 liteyuki.bot.lifespan","class Lifespan"]},"47":{"title":"func on_after_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC","titles":["模块 liteyuki.bot.lifespan","class Lifespan"]},"48":{"title":"func on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC","titles":["模块 liteyuki.bot.lifespan","class Lifespan"]},"49":{"title":"func on_after_shutdown(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC","titles":["模块 liteyuki.bot.lifespan","class Lifespan"]},"50":{"title":"func on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC","titles":["模块 liteyuki.bot.lifespan","class Lifespan"]},"51":{"title":"func on_after_restart(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC","titles":["模块 liteyuki.bot.lifespan","class Lifespan"]},"52":{"title":"async func before_start(self) -> None","titles":["模块 liteyuki.bot.lifespan","class Lifespan"]},"53":{"title":"async func after_start(self) -> None","titles":["模块 liteyuki.bot.lifespan","class Lifespan"]},"54":{"title":"async func before_process_shutdown(self, *args, **kwargs) -> None","titles":["模块 liteyuki.bot.lifespan","class Lifespan"]},"55":{"title":"async func after_shutdown(self) -> None","titles":["模块 liteyuki.bot.lifespan","class Lifespan"]},"56":{"title":"async func before_process_restart(self, *args, **kwargs) -> None","titles":["模块 liteyuki.bot.lifespan","class Lifespan"]},"57":{"title":"async func after_restart(self) -> None","titles":["模块 liteyuki.bot.lifespan","class Lifespan"]},"58":{"title":"模块 liteyuki.comm.channel","titles":[]},"59":{"title":"var SYNC_ON_RECEIVE_FUNC","titles":["模块 liteyuki.comm.channel"]},"60":{"title":"var ASYNC_ON_RECEIVE_FUNC","titles":["模块 liteyuki.comm.channel"]},"61":{"title":"var ON_RECEIVE_FUNC","titles":["模块 liteyuki.comm.channel"]},"62":{"title":"var SYNC_FILTER_FUNC","titles":["模块 liteyuki.comm.channel"]},"63":{"title":"var ASYNC_FILTER_FUNC","titles":["模块 liteyuki.comm.channel"]},"64":{"title":"var FILTER_FUNC","titles":["模块 liteyuki.comm.channel"]},"65":{"title":"class Channel(Generic[T])","titles":["模块 liteyuki.comm.channel"]},"66":{"title":"func __init__(self, name: str, type_check: Optional[bool] = None)","titles":["模块 liteyuki.comm.channel","class Channel(Generic[T])"]},"67":{"title":"func send(self, data: T)","titles":["模块 liteyuki.comm.channel","class Channel(Generic[T])"]},"68":{"title":"func receive(self) -> T","titles":["模块 liteyuki.comm.channel","class Channel(Generic[T])"]},"69":{"title":"async func async_receive(self) -> T","titles":["模块 liteyuki.comm.channel","class Channel(Generic[T])"]},"70":{"title":"func on_receive(self, filter_func: Optional[FILTER_FUNC] = None) -> Callable[[Callable[[T], Any]], Callable[[T], Any]]","titles":["模块 liteyuki.comm.channel","class Channel(Generic[T])"]},"71":{"title":"var active_channel","titles":["模块 liteyuki.comm.channel"]},"72":{"title":"var passive_channel","titles":["模块 liteyuki.comm.channel"]},"73":{"title":"var publish_channel","titles":["模块 liteyuki.comm.channel"]},"74":{"title":"var channel_deliver_active_channel","titles":["模块 liteyuki.comm.channel"]},"75":{"title":"var channel_deliver_passive_channel","titles":["模块 liteyuki.comm.channel"]},"76":{"title":"func set_channel(name: str, channel: Channel)","titles":["模块 liteyuki.comm.channel"]},"77":{"title":"func set_channels(channels: dict[str, Channel])","titles":["模块 liteyuki.comm.channel"]},"78":{"title":"func get_channel(name: str) -> Channel","titles":["模块 liteyuki.comm.channel"]},"79":{"title":"func get_channels() -> dict[str, Channel]","titles":["模块 liteyuki.comm.channel"]},"80":{"title":"var channel_deliver_active_channel","titles":["模块 liteyuki.comm.channel"]},"81":{"title":"var channel_deliver_passive_channel","titles":["模块 liteyuki.comm.channel"]},"82":{"title":"func on_set_channel(data: tuple[str, dict[str, Any]])","titles":["模块 liteyuki.comm.channel"]},"83":{"title":"func on_get_channel(data: tuple[str, dict[str, Any]])","titles":["模块 liteyuki.comm.channel"]},"84":{"title":"func on_get_channels(data: tuple[str, dict[str, Any]])","titles":["模块 liteyuki.comm.channel"]},"85":{"title":"模块 liteyuki.comm.event","titles":[]},"86":{"title":"class Event","titles":["模块 liteyuki.comm.event"]},"87":{"title":"func __init__(self, name: str, data: dict[str, Any])","titles":["模块 liteyuki.comm.event","class Event"]},"88":{"title":"模块 liteyuki.comm","titles":[]},"89":{"title":"模块 liteyuki.comm.rpc","titles":[]},"90":{"title":"class RPC","titles":["模块 liteyuki.comm.rpc"]},"91":{"title":"func __init__(self, on_calling: ON_CALLING_FUNC) -> None","titles":["模块 liteyuki.comm.rpc","class RPC"]},"92":{"title":"func call(self, args: tuple, kwargs: dict) -> Any","titles":["模块 liteyuki.comm.rpc","class RPC"]},"93":{"title":"模块 liteyuki.comm.socks_channel","titles":[]},"94":{"title":"class SocksChannel","titles":["模块 liteyuki.comm.socks_channel"]},"95":{"title":"func __init__(self, name: str)","titles":["模块 liteyuki.comm.socks_channel","class SocksChannel"]},"96":{"title":"func send(self, data)","titles":["模块 liteyuki.comm.socks_channel","class SocksChannel"]},"97":{"title":"func receive(self)","titles":["模块 liteyuki.comm.socks_channel","class SocksChannel"]},"98":{"title":"func close(self)","titles":["模块 liteyuki.comm.socks_channel","class SocksChannel"]},"99":{"title":"模块 liteyuki.comm.storage","titles":[]},"100":{"title":"var _on_main_subscriber_receive_funcs","titles":["模块 liteyuki.comm.storage"]},"101":{"title":"var _on_sub_subscriber_receive_funcs","titles":["模块 liteyuki.comm.storage"]},"102":{"title":"class KeyValueStore","titles":["模块 liteyuki.comm.storage"]},"103":{"title":"func __init__(self)","titles":["模块 liteyuki.comm.storage","class KeyValueStore"]},"104":{"title":"func set(self, key: str, value: Any) -> None","titles":["模块 liteyuki.comm.storage","class KeyValueStore"]},"105":{"title":"func get(self, key: str, default: Optional[Any] = None) -> Optional[Any]","titles":["模块 liteyuki.comm.storage","class KeyValueStore"]},"106":{"title":"func delete(self, key: str, ignore_key_error: bool = True) -> None","titles":["模块 liteyuki.comm.storage","class KeyValueStore"]},"107":{"title":"func get_all(self) -> dict[str, Any]","titles":["模块 liteyuki.comm.storage","class KeyValueStore"]},"108":{"title":"func publish(self, channel_: str, data: Any) -> None","titles":["模块 liteyuki.comm.storage","class KeyValueStore"]},"109":{"title":"func on_subscriber_receive(self, channel_: str) -> Callable[[ON_RECEIVE_FUNC], ON_RECEIVE_FUNC]","titles":["模块 liteyuki.comm.storage","class KeyValueStore"]},"110":{"title":"async func run_subscriber_receive_funcs(channel_: str, data: Any)","titles":["模块 liteyuki.comm.storage","class KeyValueStore"]},"111":{"title":"async func start_receive_loop(self)","titles":["模块 liteyuki.comm.storage","class KeyValueStore"]},"112":{"title":"class GlobalKeyValueStore","titles":["模块 liteyuki.comm.storage"]},"113":{"title":"func get_instance(cls)","titles":["模块 liteyuki.comm.storage","class GlobalKeyValueStore"]},"114":{"title":"attr _instance = None","titles":["模块 liteyuki.comm.storage","class GlobalKeyValueStore"]},"115":{"title":"attr _lock = threading.Lock()","titles":["模块 liteyuki.comm.storage","class GlobalKeyValueStore"]},"116":{"title":"var shared_memory","titles":["模块 liteyuki.comm.storage"]},"117":{"title":"var _ref_count","titles":["模块 liteyuki.comm.storage"]},"118":{"title":"func on_get(data: tuple[str, dict[str, Any]])","titles":["模块 liteyuki.comm.storage"]},"119":{"title":"func on_set(data: tuple[str, dict[str, Any]])","titles":["模块 liteyuki.comm.storage"]},"120":{"title":"func on_delete(data: tuple[str, dict[str, Any]])","titles":["模块 liteyuki.comm.storage"]},"121":{"title":"func on_get_all(data: tuple[str, dict[str, Any]])","titles":["模块 liteyuki.comm.storage"]},"122":{"title":"模块 liteyuki.config","titles":[]},"123":{"title":"func flat_config(config: dict[str, Any]) -> dict[str, Any]","titles":["模块 liteyuki.config"]},"124":{"title":"func load_from_yaml(file_: str) -> dict[str, Any]","titles":["模块 liteyuki.config"]},"125":{"title":"func load_from_json(file_: str) -> dict[str, Any]","titles":["模块 liteyuki.config"]},"126":{"title":"func load_from_toml(file_: str) -> dict[str, Any]","titles":["模块 liteyuki.config"]},"127":{"title":"func load_from_files(*files: str, *, no_warning: bool = False) -> dict[str, Any]","titles":["模块 liteyuki.config"]},"128":{"title":"func load_configs_from_dirs(*directories: str, *, no_waring: bool = False) -> dict[str, Any]","titles":["模块 liteyuki.config"]},"129":{"title":"func load_config_in_default(no_waring: bool = False) -> dict[str, Any]","titles":["模块 liteyuki.config"]},"130":{"title":"模块 liteyuki.core","titles":[]},"131":{"title":"模块 liteyuki.core.manager","titles":[]},"132":{"title":"class ChannelDeliver","titles":["模块 liteyuki.core.manager"]},"133":{"title":"func __init__(self, active: Channel[Any], passive: Channel[Any], channel_deliver_active: Channel[Channel[Any]], channel_deliver_passive: Channel[tuple[str, dict]], publish: Channel[tuple[str, Any]])","titles":["模块 liteyuki.core.manager","class ChannelDeliver"]},"134":{"title":"class ProcessManager","titles":["模块 liteyuki.core.manager"]},"135":{"title":"func __init__(self, lifespan: Lifespan)","titles":["模块 liteyuki.core.manager","class ProcessManager"]},"136":{"title":"func start_all(self)","titles":["模块 liteyuki.core.manager","class ProcessManager"]},"137":{"title":"func add_target(self, name: str, target: TARGET_FUNC, args: tuple = (), kwargs = None)","titles":["模块 liteyuki.core.manager","class ProcessManager"]},"138":{"title":"func join_all(self)","titles":["模块 liteyuki.core.manager","class ProcessManager"]},"139":{"title":"func terminate(self, name: str)","titles":["模块 liteyuki.core.manager","class ProcessManager"]},"140":{"title":"func terminate_all(self)","titles":["模块 liteyuki.core.manager","class ProcessManager"]},"141":{"title":"func is_process_alive(self, name: str) -> bool","titles":["模块 liteyuki.core.manager","class ProcessManager"]},"142":{"title":"模块 liteyuki.dev","titles":[]},"143":{"title":"模块 liteyuki.dev.observer","titles":[]},"144":{"title":"var CALLBACK_FUNC","titles":["模块 liteyuki.dev.observer"]},"145":{"title":"var FILTER_FUNC","titles":["模块 liteyuki.dev.observer"]},"146":{"title":"func debounce(wait)","titles":["模块 liteyuki.dev.observer"]},"147":{"title":"class CodeModifiedHandler(FileSystemEventHandler)","titles":["模块 liteyuki.dev.observer"]},"148":{"title":"func on_modified(self, event)","titles":["模块 liteyuki.dev.observer","class CodeModifiedHandler(FileSystemEventHandler)"]},"149":{"title":"func on_created(self, event)","titles":["模块 liteyuki.dev.observer","class CodeModifiedHandler(FileSystemEventHandler)"]},"150":{"title":"func on_deleted(self, event)","titles":["模块 liteyuki.dev.observer","class CodeModifiedHandler(FileSystemEventHandler)"]},"151":{"title":"func on_moved(self, event)","titles":["模块 liteyuki.dev.observer","class CodeModifiedHandler(FileSystemEventHandler)"]},"152":{"title":"func on_any_event(self, event)","titles":["模块 liteyuki.dev.observer","class CodeModifiedHandler(FileSystemEventHandler)"]},"153":{"title":"func on_file_system_event(directories: tuple[str], recursive: bool = True, event_filter: FILTER_FUNC = None) -> Callable[[CALLBACK_FUNC], CALLBACK_FUNC]","titles":["模块 liteyuki.dev.observer"]},"154":{"title":"模块 liteyuki.dev.plugin","titles":[]},"155":{"title":"func run_plugins(*module_path: str | Path)","titles":["模块 liteyuki.dev.plugin"]},"156":{"title":"模块 liteyuki.exception","titles":[]},"157":{"title":"class LiteyukiException(BaseException)","titles":["模块 liteyuki.exception"]},"158":{"title":"模块 liteyuki","titles":[]},"159":{"title":"var __version__","titles":["模块 liteyuki"]},"160":{"title":"模块 liteyuki.log","titles":[]},"161":{"title":"func get_format(level: str) -> str","titles":["模块 liteyuki.log"]},"162":{"title":"func init_log(config: dict)","titles":["模块 liteyuki.log"]},"163":{"title":"模块 liteyuki.message.event","titles":[]},"164":{"title":"class MessageEvent","titles":["模块 liteyuki.message.event"]},"165":{"title":"func __init__(self, bot_id: str, message: list[dict[str, Any]] | str, message_type: str, raw_message: str, session_id: str, user_id: str, session_type: str, receive_channel: Optional[Channel[MessageEvent]] = None, data: Optional[dict[str, Any]] = None)","titles":["模块 liteyuki.message.event","class MessageEvent"]},"166":{"title":"func reply(self, message: str | dict[str, Any])","titles":["模块 liteyuki.message.event","class MessageEvent"]},"167":{"title":"模块 liteyuki.message","titles":[]},"168":{"title":"模块 liteyuki.message.matcher","titles":[]},"169":{"title":"class Matcher","titles":["模块 liteyuki.message.matcher"]},"170":{"title":"func __init__(self, rule: Rule, priority: int, block: bool)","titles":["模块 liteyuki.message.matcher","class Matcher"]},"171":{"title":"func handle(self) -> Callable[[EventHandler], EventHandler]","titles":["模块 liteyuki.message.matcher","class Matcher"]},"172":{"title":"async func run(self, event: MessageEvent) -> None","titles":["模块 liteyuki.message.matcher","class Matcher"]},"173":{"title":"模块 liteyuki.message.on","titles":[]},"174":{"title":"func add_matcher(matcher: Matcher)","titles":["模块 liteyuki.message.on"]},"175":{"title":"func on_message(rule: Rule = empty_rule, priority: int = 0, block: bool = False) -> Matcher","titles":["模块 liteyuki.message.on"]},"176":{"title":"func on_keywords(keywords: list[str], rule = empty_rule, priority: int = 0, block: bool = False) -> Matcher","titles":["模块 liteyuki.message.on"]},"177":{"title":"模块 liteyuki.message.rule","titles":[]},"178":{"title":"var RuleHandlerFunc","titles":["模块 liteyuki.message.rule"]},"179":{"title":"class Rule","titles":["模块 liteyuki.message.rule"]},"180":{"title":"func __init__(self, handler: RuleHandlerFunc)","titles":["模块 liteyuki.message.rule","class Rule"]},"181":{"title":"func self | other: Rule => Rule","titles":["模块 liteyuki.message.rule","class Rule"]},"182":{"title":"func self & other: Rule => Rule","titles":["模块 liteyuki.message.rule","class Rule"]},"183":{"title":"async func self () event: MessageEvent => bool","titles":["模块 liteyuki.message.rule","class Rule"]},"184":{"title":"async func empty_rule(event: MessageEvent) -> bool","titles":["模块 liteyuki.message.rule"]},"185":{"title":"async func is_su_rule(event: MessageEvent) -> bool","titles":["模块 liteyuki.message.rule"]},"186":{"title":"模块 liteyuki.message.session","titles":[]},"187":{"title":"模块 liteyuki.mkdoc","titles":[]},"188":{"title":"class DefType(Enum)","titles":["模块 liteyuki.mkdoc"]},"189":{"title":"attr FUNCTION = 'function'","titles":["模块 liteyuki.mkdoc","class DefType(Enum)"]},"190":{"title":"attr METHOD = 'method'","titles":["模块 liteyuki.mkdoc","class DefType(Enum)"]},"191":{"title":"attr STATIC_METHOD = 'staticmethod'","titles":["模块 liteyuki.mkdoc","class DefType(Enum)"]},"192":{"title":"attr CLASS_METHOD = 'classmethod'","titles":["模块 liteyuki.mkdoc","class DefType(Enum)"]},"193":{"title":"attr PROPERTY = 'property'","titles":["模块 liteyuki.mkdoc","class DefType(Enum)"]},"194":{"title":"class FunctionInfo(BaseModel)","titles":["模块 liteyuki.mkdoc"]},"195":{"title":"attr name: str = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class FunctionInfo(BaseModel)"]},"196":{"title":"attr args: list[tuple[str, str]] = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class FunctionInfo(BaseModel)"]},"197":{"title":"attr return_type: str = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class FunctionInfo(BaseModel)"]},"198":{"title":"attr docstring: str = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class FunctionInfo(BaseModel)"]},"199":{"title":"attr source_code: str = ''","titles":["模块 liteyuki.mkdoc","class FunctionInfo(BaseModel)"]},"200":{"title":"attr type: DefType = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class FunctionInfo(BaseModel)"]},"201":{"title":"attr is_async: bool = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class FunctionInfo(BaseModel)"]},"202":{"title":"class AttributeInfo(BaseModel)","titles":["模块 liteyuki.mkdoc"]},"203":{"title":"attr name: str = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class AttributeInfo(BaseModel)"]},"204":{"title":"attr type: str = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class AttributeInfo(BaseModel)"]},"205":{"title":"attr value: Any = None","titles":["模块 liteyuki.mkdoc","class AttributeInfo(BaseModel)"]},"206":{"title":"attr docstring: str = ''","titles":["模块 liteyuki.mkdoc","class AttributeInfo(BaseModel)"]},"207":{"title":"class ClassInfo(BaseModel)","titles":["模块 liteyuki.mkdoc"]},"208":{"title":"attr name: str = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class ClassInfo(BaseModel)"]},"209":{"title":"attr docstring: str = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class ClassInfo(BaseModel)"]},"210":{"title":"attr methods: list[FunctionInfo] = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class ClassInfo(BaseModel)"]},"211":{"title":"attr attributes: list[AttributeInfo] = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class ClassInfo(BaseModel)"]},"212":{"title":"attr inherit: list[str] = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class ClassInfo(BaseModel)"]},"213":{"title":"class ModuleInfo(BaseModel)","titles":["模块 liteyuki.mkdoc"]},"214":{"title":"attr module_path: str = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class ModuleInfo(BaseModel)"]},"215":{"title":"attr functions: list[FunctionInfo] = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class ModuleInfo(BaseModel)"]},"216":{"title":"attr classes: list[ClassInfo] = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class ModuleInfo(BaseModel)"]},"217":{"title":"attr attributes: list[AttributeInfo] = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class ModuleInfo(BaseModel)"]},"218":{"title":"attr docstring: str = NO_DEFAULT","titles":["模块 liteyuki.mkdoc","class ModuleInfo(BaseModel)"]},"219":{"title":"func get_relative_path(base_path: str, target_path: str) -> str","titles":["模块 liteyuki.mkdoc"]},"220":{"title":"func write_to_files(file_data: dict[str, str])","titles":["模块 liteyuki.mkdoc"]},"221":{"title":"func get_file_list(module_folder: str)","titles":["模块 liteyuki.mkdoc"]},"222":{"title":"func get_module_info_normal(file_path: str, ignore_private: bool = True) -> ModuleInfo","titles":["模块 liteyuki.mkdoc"]},"223":{"title":"func generate_markdown(module_info: ModuleInfo, front_matter = None, lang: str = 'zh-CN') -> str","titles":["模块 liteyuki.mkdoc"]},"224":{"title":"func generate_docs(module_folder: str, output_dir: str, with_top: bool = False, lang: str = 'zh-CN', ignored_paths = None)","titles":["模块 liteyuki.mkdoc"]},"225":{"title":"var no_module_name_pyfile_path","titles":["模块 liteyuki.mkdoc"]},"226":{"title":"模块 liteyuki.plugin","titles":[]},"227":{"title":"func get_loaded_plugins() -> dict[str, Plugin]","titles":["模块 liteyuki.plugin"]},"228":{"title":"模块 liteyuki.plugin.load","titles":[]},"229":{"title":"func load_plugin(module_path: str | Path) -> Optional[Plugin]","titles":["模块 liteyuki.plugin.load"]},"230":{"title":"func load_plugins(*plugin_dir: str, *, ignore_warning: bool = True) -> set[Plugin]","titles":["模块 liteyuki.plugin.load"]},"231":{"title":"func format_display_name(display_name: str, plugin_type: PluginType) -> str","titles":["模块 liteyuki.plugin.load"]},"232":{"title":"模块 liteyuki.plugin.manager","titles":[]},"233":{"title":"模块 liteyuki.plugin.model","titles":[]},"234":{"title":"class PluginType(Enum)","titles":["模块 liteyuki.plugin.model"]},"235":{"title":"attr APPLICATION = 'application'","titles":["模块 liteyuki.plugin.model","class PluginType(Enum)"]},"236":{"title":"attr SERVICE = 'service'","titles":["模块 liteyuki.plugin.model","class PluginType(Enum)"]},"237":{"title":"attr MODULE = 'module'","titles":["模块 liteyuki.plugin.model","class PluginType(Enum)"]},"238":{"title":"attr UNCLASSIFIED = 'unclassified'","titles":["模块 liteyuki.plugin.model","class PluginType(Enum)"]},"239":{"title":"attr TEST = 'test'","titles":["模块 liteyuki.plugin.model","class PluginType(Enum)"]},"240":{"title":"class PluginMetadata(BaseModel)","titles":["模块 liteyuki.plugin.model"]},"241":{"title":"attr name: str = NO_DEFAULT","titles":["模块 liteyuki.plugin.model","class PluginMetadata(BaseModel)"]},"242":{"title":"attr description: str = ''","titles":["模块 liteyuki.plugin.model","class PluginMetadata(BaseModel)"]},"243":{"title":"attr usage: str = ''","titles":["模块 liteyuki.plugin.model","class PluginMetadata(BaseModel)"]},"244":{"title":"attr type: PluginType = PluginType.UNCLASSIFIED","titles":["模块 liteyuki.plugin.model","class PluginMetadata(BaseModel)"]},"245":{"title":"attr author: str = ''","titles":["模块 liteyuki.plugin.model","class PluginMetadata(BaseModel)"]},"246":{"title":"attr homepage: str = ''","titles":["模块 liteyuki.plugin.model","class PluginMetadata(BaseModel)"]},"247":{"title":"attr extra: dict[str, Any] = {}","titles":["模块 liteyuki.plugin.model","class PluginMetadata(BaseModel)"]},"248":{"title":"class Plugin(BaseModel)","titles":["模块 liteyuki.plugin.model"]},"249":{"title":"func hash self","titles":["模块 liteyuki.plugin.model","class Plugin(BaseModel)"]},"250":{"title":"attr model_config = {'arbitrary_types_allowed': True}","titles":["模块 liteyuki.plugin.model","class Plugin(BaseModel)"]},"251":{"title":"attr name: str = NO_DEFAULT","titles":["模块 liteyuki.plugin.model","class Plugin(BaseModel)"]},"252":{"title":"attr module: ModuleType = NO_DEFAULT","titles":["模块 liteyuki.plugin.model","class Plugin(BaseModel)"]},"253":{"title":"attr module_name: str = NO_DEFAULT","titles":["模块 liteyuki.plugin.model","class Plugin(BaseModel)"]},"254":{"title":"attr metadata: Optional[PluginMetadata] = None","titles":["模块 liteyuki.plugin.model","class Plugin(BaseModel)"]},"255":{"title":"模块 liteyuki.plugins","titles":[]},"256":{"title":"模块 liteyuki.plugins.liteecho","titles":[]},"257":{"title":"async func liteecho(event: MessageEvent)","titles":["模块 liteyuki.plugins.liteecho"]},"258":{"title":"模块 liteyuki.plugins.plugin_loader","titles":[]},"259":{"title":"func default_plugins_loader()","titles":["模块 liteyuki.plugins.plugin_loader"]},"260":{"title":"模块 liteyuki.utils","titles":[]},"261":{"title":"func is_coroutine_callable(call: Callable[..., Any]) -> bool","titles":["模块 liteyuki.utils"]},"262":{"title":"func run_coroutine(*coro: Coroutine)","titles":["模块 liteyuki.utils"]},"263":{"title":"func run_coroutine_in_thread(*coro: Coroutine)","titles":["模块 liteyuki.utils"]},"264":{"title":"func path_to_module_name(path: Path) -> str","titles":["模块 liteyuki.utils"]},"265":{"title":"func async_wrapper(func: Callable[..., Any]) -> Callable[..., Coroutine]","titles":["模块 liteyuki.utils"]},"266":{"title":"通道通信","titles":[]},"267":{"title":"简介","titles":["通道通信"]},"268":{"title":"示例","titles":["通道通信"]},"269":{"title":"共享内存通信","titles":["通道通信"]},"270":{"title":"简介","titles":["通道通信","共享内存通信"]},"271":{"title":"示例","titles":["通道通信","共享内存通信"]},"272":{"title":"开发指南","titles":[]},"273":{"title":"如何开发","titles":["开发指南"]},"274":{"title":"建议","titles":["开发指南","如何开发"]},"275":{"title":"项目结构","titles":["开发指南"]},"276":{"title":"规范化","titles":["开发指南"]},"277":{"title":"最后","titles":["开发指南"]},"278":{"title":"轻雪函数","titles":[]},"279":{"title":"函数文件","titles":["轻雪函数"]},"280":{"title":"命令文档","titles":["轻雪函数"]},"281":{"title":"示例","titles":["轻雪函数","命令文档"]},"282":{"title":"API","titles":["轻雪函数"]},"283":{"title":"结束关键字","titles":["轻雪函数"]},"284":{"title":"简介","titles":[]},"285":{"title":"开始","titles":["简介"]},"286":{"title":"创建插件","titles":["简介","开始"]},"287":{"title":"编写逻辑部分","titles":["简介","开始"]},"288":{"title":"加载插件","titles":["简介","开始"]},"289":{"title":"方法1","titles":["简介","开始","加载插件"]},"290":{"title":"方法2","titles":["简介","开始","加载插件"]},"291":{"title":"简介","titles":[]},"292":{"title":"加载资源包","titles":["简介"]},"293":{"title":"用户协议","titles":[]},"294":{"title":"基础插件","titles":[]},"295":{"title":"轻雪命令liteyuki_command","titles":["基础插件"]},"296":{"title":"命令别名","titles":["基础插件","轻雪命令liteyuki_command"]},"297":{"title":"插件/包管理器 liteyuki_pacman","titles":["基础插件"]},"298":{"title":"命令别名","titles":["基础插件","插件/包管理器 liteyuki_pacman"]},"299":{"title":"用户管理liteyuki_user","titles":["基础插件"]},"300":{"title":"功能插件命令","titles":[]},"301":{"title":"轻雪天气liteyuki_weather","titles":["功能插件命令"]},"302":{"title":"命令别名","titles":["功能插件命令","轻雪天气liteyuki_weather"]},"303":{"title":"统计信息liteyuki_statistics","titles":["功能插件命令"]},"304":{"title":"命令别名","titles":["功能插件命令","统计信息liteyuki_statistics"]}},"dirtCount":0,"index":[["当前bot",{"2":{"303":1}}],["当前群聊",{"2":{"303":1}}],["当前会话启用",{"2":{"297":1}}],["秒",{"2":{"303":2}}],["小时",{"2":{"303":2}}],["天",{"2":{"303":2}}],["天气",{"2":{"301":1,"302":1}}],["格式",{"2":{"303":1}}],["格式为onebot",{"2":{"295":1}}],["统计时间范围为duration",{"2":{"303":1}}],["统计周期为period",{"2":{"303":1}}],["统计信息",{"2":{"303":1}}],["统计信息liteyuki",{"0":{"303":1},"1":{"304":1}}],["功能",{"2":{"303":1}}],["功能插件命令",{"0":{"300":1},"1":{"301":1,"302":1,"303":1,"304":1}}],["个人全局生效",{"2":{"301":1}}],["个人信息",{"2":{"299":1}}],["绑定城市",{"2":{"302":1}}],["绑定查询城市",{"2":{"301":1}}],["绑定端口",{"2":{"1":1}}],["海淀",{"2":{"301":1}}],["北京",{"2":{"301":1}}],["受限于nonebot2钩子函数的依赖注入参数",{"2":{"298":1}}],["帮助",{"2":{"298":1}}],["列表",{"2":{"298":1}}],["列出所有资源包",{"2":{"297":1}}],["列出所有插件",{"2":{"297":1}}],["更改",{"2":{"298":1}}],["更新",{"2":{"298":1}}],["更新插件商店索引",{"2":{"297":1}}],["更新轻雪",{"2":{"295":1,"296":1}}],["更新轻雪失败",{"2":{"6":1}}],["全局停用",{"2":{"298":1}}],["全局启用",{"2":{"297":1,"298":1}}],["搜索",{"2":{"298":1}}],["卸载",{"2":{"298":2}}],["卸载资源包",{"2":{"297":1}}],["卸载插件",{"2":{"297":1}}],["私聊所有人可用",{"2":{"297":2}}],["包管理器",{"0":{"297":1},"1":{"298":1}}],["包括子task",{"2":{"280":1}}],["包括chromium",{"2":{"15":1}}],["切换图片模式",{"2":{"296":1}}],["切换到bot目录下",{"2":{"12":1}}],["状态",{"2":{"296":1}}],["别名",{"2":{"296":1,"298":1,"299":1,"302":1,"304":1}}],["别用你那b",{"2":{"15":1}}],["所有人",{"2":{"295":1,"297":1,"299":3}}],["所以在编写lyfunction时也要注意异步的调用",{"2":{"283":1}}],["所以此项目既是liteyukibot应用仓库",{"2":{"275":1}}],["群聊",{"2":{"296":1}}],["群聊仅群主",{"2":{"295":1,"297":2}}],["群号",{"2":{"295":1}}],["管理员",{"2":{"295":1,"297":2}}],["停用插件",{"2":{"297":2}}],["停用",{"2":{"296":1,"298":1}}],["停用机器人",{"2":{"295":1}}],["停止后钩子",{"2":{"55":1}}],["停止前钩子",{"2":{"54":1}}],["停止",{"2":{"44":1}}],["停止轻雪",{"2":{"23":1,"26":1}}],["查询目标地实时天气",{"2":{"301":1}}],["查询实时天气",{"2":{"301":1}}],["查询",{"2":{"296":1,"299":1}}],["查询配置项",{"2":{"295":1}}],["查看用户信息菜单",{"2":{"299":1}}],["查看插件帮助",{"2":{"297":1}}],["查看轻雪文档",{"2":{"295":1}}],["查看统计信息和状态",{"2":{"295":1}}],["查看当前bot",{"2":{"295":1}}],["版本",{"2":{"295":1}}],["❌",{"2":{"295":11}}],["超级用户可用",{"2":{"295":1,"297":2}}],["超级用户",{"2":{"295":10,"297":10}}],["超级用户列表",{"2":{"1":1}}],["重载",{"2":{"298":1}}],["重载所有资源包",{"2":{"297":1}}],["重载资源",{"2":{"296":1}}],["重载轻雪",{"2":{"295":1}}],["重启轻雪",{"2":{"296":1}}],["重启轻雪即可加载插件",{"2":{"289":1}}],["重启轻雪本体",{"2":{"22":1}}],["重启后钩子",{"2":{"57":1}}],["重启前钩子",{"2":{"56":1}}],["重启",{"2":{"44":1}}],["举例",{"2":{"295":1}}],["权限",{"2":{"295":1,"297":2,"299":1}}],["~代替",{"2":{"294":1}}],["~可以使用插件",{"2":{"294":1}}],["命令",{"2":{"295":1,"296":1,"297":2,"298":1,"299":2,"301":1,"302":1,"303":1,"304":1}}],["命令别名",{"0":{"296":1,"298":1,"302":1,"304":1},"2":{"294":1,"299":1}}],["命令文档",{"0":{"280":1},"1":{"281":1}}],["系统信息及python信息",{"2":{"293":1}}],["分钟",{"2":{"303":2}}],["分发",{"2":{"293":1}}],["分工明确",{"2":{"122":1}}],["修改优先级",{"2":{"297":1}}],["修改",{"2":{"293":1}}],["修订文档时",{"2":{"276":1}}],["第三方资源包开发者需要注意版本兼容性",{"2":{"292":1}}],["└─",{"2":{"292":1}}],["└───",{"2":{"292":1}}],["└─resource",{"2":{"292":2}}],["├─templates",{"2":{"292":1}}],["├─metadata",{"2":{"292":2}}],["正常的路径应该是这样的",{"2":{"292":1}}],["只需要将其解压到根目录resources目录下即可",{"2":{"292":1}}],["只负责处理和回应消息",{"2":{"6":1}}],["zip格式压缩的",{"2":{"292":1}}],["zh",{"0":{"223":1,"224":1},"2":{"2":1,"223":2,"224":1,"275":1}}],["错位等无法预料的事情发生",{"2":{"291":1}}],["异常",{"2":{"291":1}}],["异步任务结束关键字",{"2":{"283":1}}],["异步等待",{"2":{"280":1}}],["异步包装器",{"2":{"265":1}}],["异步接收数据",{"2":{"69":1}}],["异步接收函数",{"2":{"60":1}}],["异步过滤函数",{"2":{"63":1}}],["异步进程生命周期函数",{"2":{"41":1}}],["异步生命周期函数",{"2":{"38":1}}],["欢迎各位投稿资源包到轻雪资源商店",{"2":{"291":1}}],["部分异常信息",{"2":{"293":1}}],["部分内容制作需要一点点前端基础",{"2":{"291":1}}],["部分来源于",{"2":{"260":1}}],["讲起打包成一个新的资源包",{"2":{"291":1}}],["仅需按照原有路径进行文件替换即可",{"2":{"291":1}}],["资源",{"2":{"291":1}}],["资源包管理",{"2":{"297":1}}],["资源包的结构会随着轻雪的更新而有变动",{"2":{"292":1}}],["资源包的制作很简单",{"2":{"291":1}}],["资源包加载遵循一个优先级",{"2":{"292":1}}],["资源包描述",{"2":{"292":1}}],["资源包名称",{"2":{"292":1}}],["资源包通常是以",{"2":{"292":1}}],["资源包",{"2":{"291":1,"298":1}}],["它允许你一定程度上自定义轻雪的外观",{"2":{"291":1}}],["它允许你在轻雪中运行一些自定义的由数据驱动的命令",{"2":{"278":1}}],["亦可根据用途称为主题包",{"2":{"291":1}}],["保存后轻雪会自动重载nonebot进程",{"2":{"290":1}}],["保持轻雪运行",{"2":{"21":1}}],["方法2",{"0":{"290":1}}],["方法1",{"0":{"289":1}}],["用户管理liteyuki",{"0":{"299":1}}],["用户协议",{"0":{"293":1}}],["用observer的on",{"2":{"287":1}}],["用于统计bot接收到的消息",{"2":{"303":1}}],["用于开发nonebot时进行文件系统变更重载",{"2":{"287":1}}],["用于结束当前已完成function的执行",{"2":{"283":1}}],["用于存放内置插件",{"2":{"255":1}}],["用于获取和唯一标识",{"2":{"137":1}}],["用于进程间通信",{"2":{"58":1}}],["排除的文件扩展名",{"2":{"287":1}}],["因此插件主要是一些后台任务或者与聊天机器人的通信",{"2":{"287":1}}],["因此无法通过内存共享和直接对象传递的方式进行通信",{"2":{"267":1}}],["定义插件元数据",{"2":{"286":1}}],["定义变量",{"2":{"280":1}}],["导入轻雪bot和日志",{"2":{"287":1}}],["导入文件系统事件",{"2":{"287":1}}],["导入文件系统观察器",{"2":{"287":1}}],["导入文件夹下多个插件",{"2":{"230":1}}],["导入逻辑部分",{"2":{"286":1}}],["编写逻辑部分",{"0":{"287":1}}],["编写轻雪函数推荐你使用vs",{"2":{"283":1}}],["编辑时的语法高亮可采取shell格式",{"2":{"279":1}}],["那么加载b包后",{"2":{"292":1}}],["那么你能够很快就上手",{"2":{"291":1}}],["那么当前所有函数包的task都会被截停销毁",{"2":{"283":1}}],["那么将会被解析为nickname而不是命令",{"2":{"6":1}}],["的情况是效率提升的关键",{"2":{"283":1}}],["避免出现",{"2":{"283":1}}],["由于liteyukibot基于异步运行",{"2":{"283":1}}],["结束关键字",{"0":{"283":1}}],["结束函数关键字",{"2":{"280":1}}],["理论上所有基于onebotv11的api都可调用",{"2":{"282":1}}],["则该文件夹不会被识别为资源包",{"2":{"292":1}}],["则需要删除await",{"2":{"281":1}}],["则传入泛型默认开启",{"2":{"66":1}}],["无需手动创建实例",{"2":{"290":1}}],["无需手动初始化bot",{"2":{"155":1}}],["无限戳",{"2":{"281":1}}],["执行",{"2":{"281":1}}],["疯狂戳好友",{"2":{"281":1}}],["否则会导致渲染失败或渲染结果不理想",{"2":{"291":1}}],["否则task对象会被销毁",{"2":{"280":1}}],["否则默认关闭",{"2":{"66":1}}],["等待所有异步任务结束",{"2":{"280":1}}],["单线程走到底",{"2":{"283":1}}],["单位s",{"2":{"280":1}}],["单元测试目录",{"2":{"275":1}}],["也支持句末注释",{"2":{"279":1}}],["也可以监听其他进程的消息",{"2":{"267":1}}],["支持中英文",{"2":{"301":2}}],["支持中英文城市名",{"2":{"301":1}}],["支持多个关键词查询",{"2":{"301":1}}],["支持绑定城市",{"2":{"301":1}}],["支持单行注释",{"2":{"279":1}}],["支持onebotv11标准",{"2":{"9":1}}],["函数文件放在资源包的functions目录下",{"2":{"279":1}}],["函数文件",{"0":{"279":1}}],["函数列表",{"2":{"45":1}}],["属于资源包的一部分",{"2":{"278":1}}],["是可以相对引用的",{"2":{"292":1}}],["是轻雪的一个功能",{"2":{"278":1}}],["是否为协程可调用对象",{"2":{"261":1}}],["是否忽略警告",{"2":{"230":1}}],["是否忽略键不存在的错误",{"2":{"106":1}}],["是否包含顶层文件夹",{"2":{"224":1}}],["是否阻断后续优先级更低的匹配器",{"2":{"170":1}}],["是否递归监听子目录",{"2":{"153":1}}],["是否开启类型检查",{"2":{"66":1}}],["是否允许更新",{"2":{"2":1}}],["是否自动更新轻雪",{"2":{"1":1}}],["是否自动上报问题给轻雪服务器",{"2":{"1":1}}],["是否显示日志等级图标",{"2":{"1":1}}],["最后",{"0":{"277":1}}],["总结来说就是你干了什么",{"2":{"276":1}}],["给event添加新字段",{"2":{"276":1}}],["具体请参考gitmoji",{"2":{"276":1}}],["表示修复bug等",{"2":{"276":1}}],["表示引入新功能",{"2":{"276":1}}],["我们在src",{"2":{"290":1}}],["我们欢迎任何人参与开发",{"2":{"277":1}}],["我们使用gitmoji来标记commit的类型",{"2":{"276":1}}],["我们专门为minecraft开发的服务器bot",{"2":{"9":1}}],["应在每次完成一个功能或修复一个bug后提交代码",{"2":{"276":1}}],["应在初始化时调用",{"2":{"259":1}}],["尽量避免使用单引号",{"2":{"276":1}}],["尽量不要冲突",{"2":{"122":1}}],["没有危害的",{"2":{"276":1}}],["没有异步的必要",{"2":{"67":1}}],["提交到轻雪仓库的代码",{"2":{"276":1}}],["提供",{"2":{"6":1}}],["代码请遵循pep8和google",{"2":{"276":1}}],["规范化",{"0":{"276":1}}],["规则函数签名",{"2":{"178":1}}],["规则",{"2":{"170":1}}],["业务逻辑请在此目录下进行开发",{"2":{"275":1}}],["同时用户也应该自行选择可用的资源包",{"2":{"292":1}}],["同时也是liteyuki框架的仓库",{"2":{"275":1}}],["同步接收数据",{"2":{"68":1}}],["同步接收函数",{"2":{"59":1}}],["同步过滤函数",{"2":{"62":1}}],["同步进程生命周期函数",{"2":{"40":1}}],["同步生命周期函数",{"2":{"37":1}}],["中文文档",{"2":{"275":1}}],["英文文档",{"2":{"275":1}}],["文档请遵循markdown语法",{"2":{"276":1}}],["文档目录",{"2":{"275":1}}],["文件内容为一系列的命令",{"2":{"279":1}}],["文件名以",{"2":{"279":1}}],["文件夹路径",{"2":{"230":1}}],["文件路径",{"2":{"222":1}}],["文件数据",{"2":{"220":1}}],["工具目录",{"2":{"275":1}}],["内置资源包目录",{"2":{"275":1}}],["内存共享是线程安全的",{"2":{"270":1}}],["内存共享使得代码编写更加简洁",{"2":{"270":1}}],["内存",{"2":{"15":1,"293":1}}],["框架目录",{"2":{"275":1}}],["机器人源码目录",{"2":{"275":1}}],["机器人入口文件",{"2":{"275":1}}],["机器人昵称列表",{"2":{"1":1}}],["项目结构",{"0":{"275":1}}],["项目目录下的配置文件优先",{"2":{"129":1}}],["项目目录下的配置文件优先级高于config目录下的配置文件",{"2":{"122":1}}],["项目目录下的config",{"2":{"129":1}}],["出现冲突请与仓库维护者联系",{"2":{"273":1}}],["将你的分支合并到轻雪仓库的main分支",{"2":{"273":1}}],["将你的代码提交到这个分支",{"2":{"273":1}}],["将消息按照onebot标准处理好上报给轻雪",{"2":{"6":1}}],["组织账户下",{"2":{"273":1}}],["首先创建一个文件夹",{"2":{"286":1}}],["首先fork一份轻雪仓库到你的个人",{"2":{"273":1}}],["首次运行后生成config",{"2":{"0":1}}],["引用",{"2":{"273":1}}],["引用计数",{"2":{"117":1}}],["线程锁会自动保护共享内存的读写操作",{"2":{"270":1}}],["相比于普通进程通信",{"2":{"270":1}}],["相对路径",{"2":{"220":1}}],["且通过安全的方式传输到轻雪的服务器",{"2":{"293":1}}],["且通道标识为",{"2":{"268":1}}],["且遵守了相关字体开源协议",{"2":{"10":1}}],["创建入口文件",{"2":{"290":1}}],["创建插件",{"0":{"286":1}}],["创建子进程的同时会初始化一个被动通道和一个主动通道",{"2":{"268":1}}],["创建asyncio",{"2":{"136":1}}],["实现",{"2":{"268":1}}],["实现端本身不负责处理响应逻辑",{"2":{"6":1}}],["被动模式",{"2":{"268":1}}],["被动模式由chan",{"2":{"268":1}}],["被动通道传递通道",{"2":{"75":1,"81":1}}],["被动通道",{"2":{"72":1}}],["即后加载的资源包会覆盖前面的资源包",{"2":{"292":1}}],["即可创建一个插件",{"2":{"286":1}}],["即不等待",{"2":{"280":1}}],["即被动模式和主动模式",{"2":{"268":1}}],["即轻雪作为服务端",{"2":{"3":1}}],["有一个task任务没有完成而await被执行了",{"2":{"283":1}}],["有条件可以使用中英双语",{"2":{"276":1}}],["有两种接收模式",{"2":{"268":1}}],["有的插件安装后报错无法启动",{"2":{"6":1}}],["这样可以在控制台看到更多的调试信息",{"2":{"274":1}}],["这时可以通过通道对主进程发送消息",{"2":{"267":1}}],["这里给出一个参考值",{"2":{"3":1}}],["里",{"2":{"267":1}}],["简介",{"0":{"267":1,"270":1,"284":1,"291":1},"1":{"285":1,"286":1,"287":1,"288":1,"289":1,"290":1,"292":1}}],["路径a",{"2":{"264":1}}],["转换路径为模块名",{"2":{"264":1}}],["判断是否为协程可调用对象",{"2":{"261":1}}],["一个",{"2":{"286":1}}],["一个键不要多次出现",{"2":{"122":1}}],["一些常用的工具类",{"2":{"260":1}}],["根据不同类型插件设置颜色",{"2":{"231":1}}],["插件停用只能阻断传入响应",{"2":{"298":1}}],["插件管理",{"2":{"297":1,"298":1}}],["插件",{"0":{"297":1},"1":{"298":1}}],["插件信息",{"2":{"293":1}}],["插件描述",{"2":{"286":1}}],["插件版本",{"2":{"286":1}}],["插件开发请在此目录下进行开发",{"2":{"275":1}}],["插件开发无需阅读本文档",{"2":{"273":1}}],["插件类型",{"2":{"231":1,"286":1}}],["插件名称",{"2":{"229":1,"231":1,"286":1}}],["插件字典",{"2":{"227":1}}],["插件路径",{"2":{"155":1}}],["去头路径",{"2":{"225":1}}],["忽略的路径",{"2":{"224":1}}],["忽略私有函数和类",{"2":{"222":1}}],["\`",{"2":{"223":14}}],["+",{"2":{"223":2,"264":1}}],["+=",{"2":{"22":1,"70":1,"223":15}}],["字体包",{"2":{"291":1}}],["字符串请使用双引号",{"2":{"276":1}}],["字符串",{"2":{"223":1}}],["字段",{"2":{"3":1}}],["语言包等",{"2":{"291":1}}],["语言",{"2":{"223":1,"224":1}}],["输入值会被执行以转换为正确的类型",{"2":{"295":1}}],["输入playwright",{"2":{"6":1}}],["输出",{"2":{"279":1}}],["输出文件夹",{"2":{"224":1}}],["输出文件",{"2":{"220":1}}],["目标路径",{"2":{"219":1}}],["目前可用性较低",{"2":{"8":1}}],["目前markdown消息支持lagrange",{"2":{"8":1}}],["x26",{"2":{"176":1,"223":4}}],["x3c",{"2":{"20":4,"22":1,"162":5,"174":1,"223":8,"229":2,"231":2,"280":6,"301":2,"303":2}}],["505468b及以后的lagrange",{"2":{"295":1}}],["59",{"2":{"228":1,"232":1}}],["55",{"2":{"177":1}}],["52",{"2":{"173":1}}],["51",{"2":{"168":1}}],["添加配置项",{"2":{"295":1}}],["添加sleep",{"2":{"281":1}}],["添加处理函数",{"2":{"171":1}}],["添加进程",{"2":{"137":1}}],["优先级",{"2":{"170":1}}],["匹配器",{"2":{"170":1}}],["45m",{"2":{"303":2}}],["44",{"2":{"167":1}}],["47",{"2":{"163":1,"186":1}}],["回复消息",{"2":{"166":1}}],["⭕",{"2":{"162":1}}],["⚠️",{"2":{"162":1}}],["✅",{"2":{"162":1}}],["ℹ️信息",{"2":{"268":4}}],["ℹ️",{"2":{"162":1}}],["🐛",{"2":{"162":1}}],["31",{"2":{"256":1}}],["3",{"2":{"159":1,"230":1,"268":1}}],["6",{"2":{"159":1}}],["测试版本号",{"2":{"159":1}}],["此模块为内置插件文件夹",{"2":{"255":1}}],["此模块为liteyuki的框架整体",{"2":{"158":1}}],["此模块用于注册观察者函数",{"2":{"143":1}}],["运行环境的设备信息",{"2":{"293":1}}],["运行在主进程中",{"2":{"284":1}}],["运行协程",{"2":{"262":1}}],["运行处理函数",{"2":{"172":1}}],["运行插件",{"2":{"155":1}}],["运行订阅者接收函数",{"2":{"110":1}}],["上午12",{"2":{"233":1}}],["上午11",{"2":{"131":1}}],["上午6",{"2":{"187":1}}],["上午9",{"2":{"160":1}}],["上午5",{"2":{"154":1}}],["事件过滤器",{"2":{"153":1}}],["事件循环",{"2":{"19":1}}],["防抖函数",{"2":{"146":1}}],["防止获取空指针",{"2":{"117":1}}],["位置1为filesystemevent",{"2":{"144":1,"145":1}}],["启用",{"2":{"296":1,"298":1}}],["启用插件后",{"2":{"290":1}}],["启用开发者模式",{"2":{"274":1}}],["启用该模块需要在配置文件中设置dev",{"2":{"143":1}}],["启动后控制台输出",{"2":{"268":1}}],["启动后钩子",{"2":{"53":1}}],["启动所有进程",{"2":{"136":1}}],["启动发布订阅接收器循环",{"2":{"111":1}}],["启动前钩子",{"2":{"52":1}}],["启动",{"2":{"44":1}}],["启动容器",{"2":{"13":1}}],["启动bot",{"2":{"12":1}}],["启动时会加载项目目录下config",{"2":{"0":1}}],["检查进程是否存活",{"2":{"141":1}}],["终止进程并从进程字典中删除",{"2":{"139":1}}],["对于主动推送的插件不生效",{"2":{"298":1}}],["对于不同资源包的不同文件",{"2":{"292":1}}],["对外启动方法",{"2":{"136":1}}],["对公开放时建议设置",{"2":{"2":1}}],["按照读取文件的优先级反向覆盖",{"2":{"128":1}}],["从一个标准的轻雪项目加载配置文件",{"2":{"129":1}}],["从目录下加载配置文件",{"2":{"128":1}}],["从指定文件加载配置项",{"2":{"127":1}}],["8",{"2":{"124":1,"125":1,"126":1,"154":1,"163":1,"167":1,"168":1,"173":1,"177":1,"186":1,"187":1,"220":1,"222":1,"256":1,"257":1,"258":1}}],["但请注意甄别第三方插件的安全性",{"2":{"293":1}}],["但请保证以上三个字段",{"2":{"292":1}}],["但若出现非单function的情况",{"2":{"283":1}}],["但需单独起篇幅",{"2":{"278":1}}],["但在嵌套字符串时可以使用单引号",{"2":{"276":1}}],["但一个通道只能使用一种",{"2":{"268":1}}],["但也包含原有的键值对",{"2":{"123":1}}],["但是请保留原作者信息",{"2":{"293":1}}],["但是更加轻量级并且线程安全",{"2":{"99":1}}],["但是bot昵称有一个help",{"2":{"6":1}}],["但是基本上都是一样的",{"2":{"3":1}}],["但是部分内容会被覆盖",{"2":{"1":1}}],["扁平化后的配置文件",{"2":{"123":1}}],["扁平化配置文件",{"2":{"123":1}}],["扁平化编写",{"2":{"122":1}}],["注意不要嵌套文件夹",{"2":{"292":1}}],["注意冲突时的优先级",{"2":{"122":1}}],["注册一个函数在nonebot启动后运行",{"2":{"268":1}}],["注册一个函数在轻雪启动后运行",{"2":{"268":1}}],["注册文件系统变化监听器",{"2":{"153":1}}],["注册重启后的函数",{"2":{"32":1,"51":1}}],["注册进程重启前的函数",{"2":{"31":1,"50":1}}],["注册进程停止前的函数",{"2":{"30":1,"48":1}}],["注册停止后的函数",{"2":{"29":1,"49":1}}],["注册启动时的函数",{"2":{"46":1,"47":1}}],["注册启动后的函数",{"2":{"28":1}}],["注册启动前的函数",{"2":{"27":1}}],["每隔0",{"2":{"281":1}}],["每行一个命令",{"2":{"279":1}}],["每个语言的文档都要修订",{"2":{"276":1}}],["每个配置文件给一个或一类服务提供配置",{"2":{"122":1}}],["每种语言都有对应的文档",{"2":{"276":1}}],["每次接收到字符串数据时都会运行",{"2":{"268":1}}],["每3秒发送一次消息",{"2":{"268":1}}],["每天4点检查更新",{"2":{"1":1}}],["多配置文件编写原则",{"2":{"122":1}}],["共享内存通信",{"0":{"269":1},"1":{"270":1,"271":1}}],["共享内存对象",{"2":{"116":1}}],["共享内存模块",{"2":{"99":1}}],["订阅者接收消息时的回调",{"2":{"109":1}}],["频道",{"2":{"108":1,"109":1,"110":1}}],["发布消息",{"2":{"108":1}}],["发送函数为同步函数",{"2":{"67":1}}],["发送数据",{"2":{"67":1,"96":1}}],["删除键值对",{"2":{"106":1}}],["值",{"2":{"104":1,"105":1}}],["键值对",{"2":{"107":1}}],["键",{"2":{"104":1,"105":1,"106":1}}],["类似于minecraft的mcfunction",{"2":{"278":1}}],["类似于redis",{"2":{"99":1}}],["类型",{"2":{"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"71":1,"72":1,"73":1,"74":1,"75":1,"100":1,"101":1,"116":1,"144":1,"145":1,"178":1}}],["关闭通道",{"2":{"98":1}}],["关键字参数",{"2":{"24":1}}],["调用机器人函数",{"2":{"295":1}}],["调用机器人api",{"2":{"295":1}}],["调用重启进程方法",{"2":{"287":1}}],["调用函数",{"2":{"280":1}}],["调用bot",{"2":{"280":1}}],["调用",{"2":{"92":1}}],["通过关键词搜索插件",{"2":{"297":1}}],["通过装饰器注册一个函数在接收到消息时运行",{"2":{"268":1}}],["通常是目录不存在或目录为空",{"2":{"230":1}}],["通常会默认传入chan",{"2":{"137":1}}],["通信",{"2":{"89":1}}],["通道是全双工的",{"2":{"268":1}}],["通道通信",{"0":{"266":1},"1":{"267":1,"268":1,"269":1,"270":1,"271":1}}],["通道实例",{"2":{"76":1,"77":1,"78":1,"79":1}}],["通道名称",{"2":{"76":1,"78":1}}],["通道传递通道",{"2":{"73":1,"74":1}}],["通道id",{"2":{"66":1,"95":1}}],["依赖关系",{"2":{"88":1}}],["主题包中的html渲染使用js来规定数据的渲染位置",{"2":{"291":1}}],["主题商店提供了一些资源包供你选择",{"2":{"291":1}}],["主动模式需调用chan",{"2":{"268":1}}],["主动通道传递通道",{"2":{"80":1}}],["主进程中",{"2":{"268":1}}],["主进程中通过get",{"2":{"268":1}}],["主进程接收到消息后重启对应子进程",{"2":{"267":1}}],["主进程订阅者接收函数",{"2":{"100":1}}],["主进程创建单例",{"2":{"73":1,"74":1}}],["设置用户信息或打开属性设置菜单",{"2":{"299":1}}],["设置",{"2":{"296":1,"299":1}}],["设置共享内存",{"2":{"271":1}}],["设置后的插件名称",{"2":{"231":1}}],["设置插件名称颜色",{"2":{"231":1}}],["设置键值对",{"2":{"104":1}}],["设置通道实例",{"2":{"76":1,"77":1}}],["设备上python环境太乱了",{"2":{"6":1}}],["子进程中获取通道直接导入进程全局单例即可",{"2":{"268":1}}],["子进程中导入单例active",{"2":{"268":1}}],["子进程订阅者接收函数",{"2":{"101":1}}],["子进程初始化时实例化",{"2":{"73":1,"74":1}}],["子进程可用的主动和被动通道",{"2":{"71":1}}],["装饰回调函数实现",{"2":{"268":1}}],["装饰一个函数在接收到数据后执行",{"2":{"153":1}}],["装饰器",{"2":{"70":1,"109":1,"153":1,"171":2}}],["装置要求",{"0":{"15":1},"1":{"16":1}}],["接收数据",{"2":{"97":1}}],["接收数据并执行函数",{"2":{"70":1}}],["接收函数",{"2":{"61":1}}],["会自动判断key版本",{"2":{"301":1}}],["会自动识别文件格式",{"2":{"127":1}}],["会话负载信息",{"2":{"293":1}}],["会触发最大递归深度限制",{"2":{"281":1}}],["会挂起等待",{"2":{"69":1}}],["会阻塞线程",{"2":{"68":1}}],["数据",{"2":{"67":1,"68":1,"69":1,"96":1,"97":1,"108":1,"110":1}}],["过滤函数",{"2":{"64":1,"70":1}}],["并且应该在metadata",{"2":{"292":1}}],["并且不用修改源代码",{"2":{"291":1}}],["并且支持vitepress相关内容",{"2":{"276":1}}],["并在其中写入一些代码",{"2":{"290":1}}],["并在其中写入以下代码",{"2":{"290":1}}],["并在其中创建一个",{"2":{"286":1}}],["并遵循其许可进行修改",{"2":{"260":1}}],["并发运行异步函数",{"2":{"45":1}}],["并使用克隆而非直接下载的方式部署轻雪",{"2":{"6":1}}],["|",{"0":{"45":1,"155":1,"165":1,"166":1,"181":1,"229":1},"2":{"39":1,"42":1,"45":2,"61":1,"64":1,"155":1,"165":1,"166":1,"229":1}}],["下午12",{"2":{"256":1}}],["下午11",{"2":{"228":1,"232":1}}],["下午10",{"2":{"163":1,"167":1,"168":1,"173":1,"177":1,"186":1,"258":1}}],["下午8",{"2":{"36":1}}],["下面已经列出一些推荐的实现端",{"2":{"6":1}}],["7",{"2":{"36":1,"131":1,"160":1,"228":1,"232":1,"233":1}}],["兼容键",{"2":{"35":1}}],["兼容旧版本",{"2":{"35":1}}],["获取用户信息",{"2":{"299":1}}],["获取唯一的轻雪bot实例",{"2":{"287":1}}],["获取共享内存",{"2":{"271":1}}],["获取主动通道",{"2":{"268":1}}],["获取被动通道",{"2":{"268":1}}],["获取已加载的插件",{"2":{"227":1}}],["获取函数和类",{"2":{"222":1}}],["获取相对路径",{"2":{"219":1}}],["获取所有键值对",{"2":{"107":1}}],["获取键值对",{"2":{"105":1}}],["获取通道实例们",{"2":{"79":1}}],["获取通道实例",{"2":{"78":1}}],["获取配置",{"2":{"34":1,"35":1}}],["获取轻雪实例",{"2":{"33":1}}],["为可选参数",{"2":{"294":1}}],["为必填参数",{"2":{"294":1}}],["为子进程重启时调用",{"2":{"31":1}}],["为子进程停止时调用",{"2":{"30":1}}],["为什么我启动后机器人没有反应",{"2":{"6":1}}],["未实现",{"2":{"29":1,"32":1,"55":1,"57":1}}],["返回true则执行回调函数",{"2":{"153":1}}],["返回",{"2":{"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"68":1,"69":1,"70":1,"78":1,"79":1,"97":1,"105":1,"107":1,"109":1,"123":1,"153":1,"171":1,"222":1,"223":1,"227":1,"231":1,"261":1,"264":1,"265":1}}],["自定义选项title",{"2":{"223":1}}],["自动调用",{"2":{"24":1}}],["自己整一个websocket客户端",{"2":{"8":1}}],["进程生命周期函数",{"2":{"48":2,"50":2}}],["进程函数关键字参数",{"2":{"137":1}}],["进程函数参数",{"2":{"137":1}}],["进程函数",{"2":{"42":1,"137":1}}],["进程名",{"2":{"23":1,"137":1}}],["进入轻雪目录",{"2":{"13":1}}],["join",{"0":{"138":1},"2":{"22":1,"128":1,"138":2,"139":1,"221":1,"223":4,"224":1,"230":2,"264":2}}],["js",{"2":{"8":1}}],["json",{"0":{"125":1},"2":{"0":1,"125":4,"127":2,"129":1}}],["json和toml作为配置文件",{"2":{"0":1}}],["延迟重启时间",{"2":{"22":1}}],["kill",{"2":{"139":1}}],["k",{"2":{"123":2,"223":2}}],["keyword",{"2":{"176":2}}],["keywords为城市名",{"2":{"301":2}}],["keywords",{"0":{"176":2},"2":{"176":5,"297":1,"301":2}}],["keyerror",{"2":{"106":1}}],["keyvaluestore",{"0":{"102":1},"1":{"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1},"2":{"113":1,"116":1}}],["keys",{"0":{"35":1},"2":{"35":3}}],["key",{"0":{"34":1,"35":1,"104":1,"105":1,"106":2},"2":{"34":3,"35":10,"104":6,"105":6,"106":11,"118":3,"119":3,"120":3,"123":2,"271":2,"295":4,"299":2,"301":1}}],["keyboardinterrupt",{"2":{"20":1}}],["keeping",{"2":{"21":1}}],["keep",{"0":{"21":1},"2":{"21":1}}],["kwargs=none",{"2":{"137":1}}],["kwargs",{"0":{"19":1,"24":1,"45":1,"54":1,"56":1,"92":1,"137":1},"2":{"19":3,"24":2,"45":3,"54":2,"56":2,"92":2,"137":4,"146":2,"265":2,"295":2}}],["echo",{"2":{"279":3}}],["emoji",{"2":{"276":1}}],["emsp",{"2":{"223":4}}],["empty",{"0":{"175":1,"176":1,"184":1},"2":{"184":1,"229":1,"230":1}}],["email",{"2":{"36":1,"131":1,"154":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"186":1,"187":1,"228":1,"232":1,"233":1,"256":1,"258":1}}],["enable",{"2":{"295":2,"296":1,"297":2,"298":2}}],["end",{"2":{"280":1}}],["endswith",{"2":{"127":3,"128":1,"221":1,"230":1,"287":1}}],["en",{"2":{"275":1}}],["ensure",{"2":{"262":1}}],["enum",{"0":{"188":1,"234":1},"1":{"189":1,"190":1,"191":1,"192":1,"193":1,"235":1,"236":1,"237":1,"238":1,"239":1}}],["enumerate",{"2":{"174":1}}],["encoding=",{"2":{"124":1,"125":1,"126":1,"220":1,"222":1}}],["enforcing",{"2":{"66":1}}],["e",{"2":{"106":2,"229":1,"231":1,"262":2}}],["errors=true",{"2":{"224":1}}],["error",{"0":{"106":1},"2":{"106":3,"162":2,"262":1}}],["else",{"2":{"22":1,"23":1,"33":1,"45":1,"66":1,"70":2,"76":1,"78":1,"79":1,"104":1,"105":1,"106":1,"107":1,"109":2,"124":1,"125":1,"126":1,"161":1,"162":5,"174":1,"222":9,"223":10,"224":2,"229":2,"262":1,"264":1}}],["elif",{"2":{"22":2,"66":1,"70":1,"127":4,"222":5,"229":2,"230":1}}],["extensions",{"2":{"287":2}}],["extend",{"2":{"155":1}}],["extra",{"0":{"247":1}}],["exclude",{"2":{"287":2}}],["exc",{"2":{"172":1,"229":1}}],["exception模块包含了liteyuki运行中的所有错误",{"2":{"156":1}}],["exception",{"0":{"156":1},"1":{"157":1},"2":{"21":1,"172":1,"229":1,"262":2}}],["except",{"2":{"20":1,"21":1,"106":1,"172":1,"229":1,"262":2}}],["executor",{"2":{"69":1}}],["executable",{"2":{"22":3}}],["exist",{"2":{"230":1}}],["exists",{"2":{"66":2,"76":1,"127":1,"128":1,"220":1,"230":2}}],["exit",{"2":{"22":1}}],["exiting",{"2":{"21":1}}],["event装饰器监听文件系统事件",{"2":{"287":1}}],["events",{"2":{"287":1}}],["eventhandler",{"0":{"171":2},"2":{"170":1,"171":4}}],["event",{"0":{"85":1,"86":1,"148":1,"149":1,"150":1,"151":1,"152":2,"153":2,"163":1,"172":1,"183":1,"184":1,"185":1,"257":1},"1":{"86":1,"87":2,"164":1,"165":1,"166":1},"2":{"19":4,"21":1,"26":1,"88":1,"148":1,"149":2,"150":2,"151":2,"152":3,"153":8,"163":1,"166":2,"172":4,"176":2,"181":3,"182":3,"183":2,"184":1,"185":2,"257":3,"262":2,"287":8}}],["外部启动接口",{"2":{"20":1}}],["加载",{"2":{"298":1}}],["加载资源包",{"0":{"292":1},"2":{"297":1}}],["加载插件",{"0":{"288":1},"1":{"289":1,"290":1}}],["加载插件加载器",{"2":{"19":1}}],["加载单个插件",{"2":{"229":1}}],["加入qq群775840726",{"2":{"7":1}}],["生成文档",{"2":{"224":1}}],["生成模块的markdown",{"2":{"223":1}}],["生命周期函数",{"2":{"27":2,"28":2,"29":2,"30":2,"31":2,"32":2,"39":1,"46":2,"47":2,"49":2,"51":2}}],["生命周期管理",{"2":{"19":1}}],["生产环境中推荐反向websocket",{"2":{"3":1}}],["初始化通道",{"2":{"66":1,"95":1}}],["初始化日志",{"2":{"25":1}}],["初始化轻雪",{"2":{"24":1}}],["初始化轻雪实例",{"2":{"19":1}}],["初始化",{"2":{"19":1}}],["=none",{"2":{"23":1,"66":1,"70":1,"105":1,"165":2}}],["==",{"2":{"22":3,"81":1,"82":2,"83":2,"84":1,"111":1,"117":1,"118":2,"119":2,"120":2,"121":1,"161":1,"222":4,"223":2,"264":1}}],["=",{"0":{"22":1,"23":1,"34":1,"35":1,"66":1,"70":1,"105":1,"106":1,"114":1,"115":1,"127":1,"128":1,"129":1,"137":2,"153":2,"165":2,"175":3,"176":3,"181":1,"182":1,"183":1,"189":1,"190":1,"191":1,"192":1,"193":1,"195":1,"196":1,"197":1,"198":1,"199":1,"200":1,"201":1,"203":1,"204":1,"205":1,"206":1,"208":1,"209":1,"210":1,"211":1,"212":1,"214":1,"215":1,"216":1,"217":1,"218":1,"222":1,"223":2,"224":3,"230":1,"235":1,"236":1,"237":1,"238":1,"239":1,"241":1,"242":1,"243":1,"244":1,"245":1,"246":1,"247":1,"250":1,"251":1,"252":1,"253":1,"254":1},"2":{"19":7,"22":6,"23":2,"44":7,"45":1,"66":10,"67":1,"68":1,"69":2,"70":1,"76":1,"78":1,"79":1,"82":1,"83":1,"84":1,"87":2,"91":1,"95":4,"103":6,"104":2,"105":2,"106":1,"107":1,"109":2,"111":1,"113":1,"118":3,"119":2,"120":1,"121":1,"123":2,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"133":5,"135":3,"137":5,"139":1,"146":3,"153":2,"155":4,"162":1,"165":10,"166":1,"170":5,"175":1,"180":1,"221":1,"222":17,"223":16,"224":13,"229":12,"230":6,"231":5,"261":1,"262":2,"264":1,"265":1,"268":5,"271":1,"286":1,"287":2}}],[">",{"2":{"19":1,"27":1,"31":1,"33":1,"34":1,"35":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"68":1,"69":1,"70":3,"78":1,"79":1,"91":1,"92":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":2,"123":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"141":1,"146":1,"153":2,"161":1,"171":2,"172":1,"175":1,"176":1,"181":2,"182":2,"183":1,"184":1,"185":1,"219":1,"222":1,"223":3,"224":1,"227":1,"229":1,"230":1,"231":3,"261":1,"264":1,"265":1,"301":2}}],["在群聊启用",{"2":{"295":1}}],["在普通图片和markdown大图之间切换",{"2":{"295":1}}],["在b中定义了templates",{"2":{"292":1}}],["在配置文件中的liteyuki",{"2":{"289":1}}],["在设备上执行命令",{"2":{"280":1}}],["在发信器输出",{"2":{"279":1}}],["在你的仓库中创建一个pull",{"2":{"273":1}}],["在你的仓库中创建一个新的分支",{"2":{"273":1}}],["在你的仓库中进行开发",{"2":{"273":1}}],["在任意进程中均可使用",{"2":{"271":1}}],["在子进程中",{"2":{"268":1}}],["在轻雪插件中",{"2":{"268":1}}],["在新线程中运行协程",{"2":{"263":1}}],["在语言加载完成后执行",{"2":{"162":1}}],["在主进程中运行",{"2":{"111":1}}],["在github上查看",{"2":{"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"66":1,"67":1,"68":1,"69":1,"70":1,"76":1,"77":1,"78":1,"79":1,"82":1,"83":1,"84":1,"87":1,"91":1,"92":1,"95":1,"96":1,"97":1,"98":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1,"113":1,"118":1,"119":1,"120":1,"121":1,"123":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"133":1,"135":1,"136":1,"137":1,"138":1,"139":1,"140":1,"141":1,"146":1,"148":1,"149":1,"150":1,"151":1,"152":1,"153":1,"155":1,"161":1,"162":1,"165":1,"166":1,"170":1,"171":1,"172":1,"174":1,"175":1,"176":1,"180":1,"181":1,"182":1,"183":1,"184":1,"185":1,"219":1,"220":1,"221":1,"222":1,"223":1,"224":1,"227":1,"229":1,"230":1,"231":1,"249":1,"257":1,"259":1,"261":1,"262":1,"263":1,"264":1,"265":1}}],["在安全模式下你可以使用npm",{"2":{"6":1}}],["或插件路径",{"2":{"229":1}}],["或",{"2":{"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"66":1,"67":1,"68":1,"69":1,"70":1,"76":1,"77":1,"78":1,"79":1,"82":1,"83":1,"84":1,"87":1,"91":1,"92":1,"95":1,"96":1,"97":1,"98":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1,"113":1,"118":1,"119":1,"120":1,"121":1,"123":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"133":1,"135":1,"136":1,"137":1,"138":1,"139":1,"140":1,"141":1,"146":1,"148":1,"149":1,"150":1,"151":1,"152":1,"153":1,"155":1,"161":1,"162":1,"165":1,"166":1,"170":1,"171":1,"172":1,"174":1,"175":1,"176":1,"180":1,"181":1,"182":1,"183":1,"184":1,"185":1,"219":1,"220":1,"221":1,"222":1,"223":1,"224":1,"227":1,"229":1,"230":1,"231":1,"249":1,"257":1,"259":1,"261":1,"262":1,"263":1,"264":1,"265":1,"303":2}}],["源代码",{"2":{"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"66":1,"67":1,"68":1,"69":1,"70":1,"76":1,"77":1,"78":1,"79":1,"82":1,"83":1,"84":1,"87":1,"91":1,"92":1,"95":1,"96":1,"97":1,"98":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1,"113":1,"118":1,"119":1,"120":1,"121":1,"123":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"133":1,"135":1,"136":1,"137":1,"138":1,"139":1,"140":1,"141":1,"146":1,"148":1,"149":1,"150":1,"151":1,"152":1,"153":1,"155":1,"161":1,"162":1,"165":1,"166":1,"170":1,"171":1,"172":1,"174":1,"175":1,"176":1,"180":1,"181":1,"182":1,"183":1,"184":1,"185":1,"219":1,"220":1,"221":1,"222":1,"223":2,"224":1,"227":1,"229":1,"230":1,"231":1,"249":1,"257":1,"259":1,"261":1,"262":1,"263":1,"264":1,"265":1,"271":1}}],["参与开发默认你已经了解python语言和轻雪框架的基本使用方法",{"2":{"273":1}}],["参考liteyuki",{"2":{"155":1}}],["参考值",{"2":{"3":1}}],["参数列表",{"2":{"295":2}}],["参数为调用set",{"2":{"268":1}}],["参数",{"2":{"19":1,"22":1,"23":1,"24":2,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"34":1,"35":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"66":1,"67":1,"70":1,"76":1,"77":1,"78":1,"95":1,"96":1,"104":1,"105":1,"106":1,"108":1,"109":1,"110":1,"123":1,"137":1,"139":1,"141":1,"153":1,"155":1,"166":1,"170":1,"172":1,"219":1,"220":1,"222":1,"223":1,"224":1,"229":1,"230":1,"231":1,"261":1,"262":1,"263":1,"264":1,"265":1,"294":1,"303":1}}],["feat",{"2":{"276":1}}],["future",{"2":{"262":1}}],["function实现语法高亮",{"2":{"283":1}}],["functiondef",{"2":{"222":3}}],["functioninfo",{"0":{"194":1,"210":1,"215":1},"1":{"195":1,"196":1,"197":1,"198":1,"199":1,"200":1,"201":1},"2":{"222":2}}],["function",{"0":{"189":2},"2":{"222":3,"278":1,"280":1,"281":2,"295":3}}],["functions=",{"2":{"222":1}}],["functions",{"0":{"215":1},"2":{"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"222":1,"223":1}}],["func=none",{"2":{"153":1}}],["func=lambda",{"2":{"81":1,"82":2,"83":2,"84":1,"268":1}}],["funcs",{"0":{"45":2,"100":1,"101":1,"110":1},"2":{"44":6,"45":4,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":2,"53":2,"54":2,"55":2,"56":2,"57":2,"70":1,"109":6,"110":2,"111":1}}],["func",{"0":{"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":4,"28":3,"29":3,"30":3,"31":4,"32":3,"33":1,"34":1,"35":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"44":1,"45":3,"46":4,"47":4,"48":4,"49":4,"50":4,"51":4,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"66":1,"67":1,"68":1,"69":1,"70":3,"76":1,"77":1,"78":1,"79":1,"82":1,"83":1,"84":1,"87":1,"91":2,"92":1,"95":1,"96":1,"97":1,"98":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":3,"110":1,"111":1,"113":1,"118":1,"119":1,"120":1,"121":1,"123":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"133":1,"135":1,"136":1,"137":2,"138":1,"139":1,"140":1,"141":1,"144":1,"145":1,"146":1,"148":1,"149":1,"150":1,"151":1,"152":1,"153":4,"155":1,"161":1,"162":1,"165":1,"166":1,"170":1,"171":1,"172":1,"174":1,"175":1,"176":1,"180":1,"181":1,"182":1,"183":1,"184":1,"185":1,"219":1,"220":1,"221":1,"222":1,"223":1,"224":1,"227":1,"229":1,"230":1,"231":1,"249":1,"257":1,"259":1,"261":1,"262":1,"263":1,"264":1,"265":2},"2":{"27":7,"28":6,"29":6,"30":6,"31":7,"32":6,"39":2,"42":2,"44":6,"45":8,"46":8,"47":8,"48":8,"49":8,"50":8,"51":8,"61":2,"64":2,"66":2,"70":20,"91":1,"100":1,"101":1,"109":8,"110":2,"137":1,"146":2,"153":7,"222":2,"223":9,"261":2,"265":4,"280":1}}],["failed",{"2":{"229":1}}],["false时例如docs",{"2":{"224":1}}],["false",{"0":{"127":1,"128":1,"129":1,"175":1,"176":1,"224":1},"2":{"2":4,"66":2,"95":1,"103":2,"261":1}}],["first",{"2":{"222":2}}],["filter=lambda",{"2":{"287":1}}],["filter",{"0":{"62":1,"63":1,"64":1,"70":2,"145":1,"153":2},"2":{"64":2,"70":8,"81":1,"82":2,"83":2,"84":1,"153":5,"268":1}}],["filesystemeventhandler",{"0":{"147":1},"1":{"148":1,"149":1,"150":1,"151":1,"152":1}}],["filesystemevent",{"2":{"144":1,"145":1,"153":1,"287":2}}],["files",{"0":{"127":2,"220":1},"2":{"127":3,"128":1,"129":1,"220":1,"221":2,"224":1}}],["file",{"0":{"124":1,"125":1,"126":1,"153":1,"220":1,"221":1,"222":1},"2":{"36":1,"124":4,"125":4,"126":4,"127":12,"128":3,"131":1,"153":1,"154":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"186":1,"187":1,"220":3,"221":7,"222":8,"224":6,"228":1,"232":1,"233":1,"256":1,"258":1,"287":3}}],["friend",{"2":{"281":2}}],["front",{"0":{"223":1},"2":{"223":5,"224":3}}],["from",{"0":{"124":1,"125":1,"126":1,"127":1,"128":1},"2":{"68":1,"124":3,"125":3,"126":3,"127":4,"128":2,"129":2,"268":4,"286":1,"287":3}}],["framework",{"2":{"158":1}}],["flake8",{"2":{"274":1}}],["flat",{"0":{"123":1},"2":{"123":2,"124":1,"125":1,"126":1}}],["flag",{"2":{"44":1}}],["folder",{"0":{"221":1,"224":1},"2":{"221":2,"224":4,"225":1,"255":1}}],["found",{"2":{"67":1,"76":1,"127":1,"128":1,"139":1,"141":1}}],["format=get",{"2":{"162":1}}],["formats",{"2":{"128":1}}],["format",{"0":{"161":1,"231":1},"2":{"127":1,"161":3,"162":1,"229":2,"231":1}}],["for",{"2":{"23":1,"35":1,"45":1,"66":1,"77":1,"110":1,"123":2,"127":1,"128":2,"136":1,"138":1,"140":1,"153":1,"172":1,"174":1,"176":1,"220":1,"221":2,"222":12,"223":9,"224":3,"230":2,"259":2,"262":2,"286":1}}],["f",{"2":{"22":1,"23":2,"35":1,"66":4,"67":1,"76":2,"123":1,"124":1,"125":1,"126":1,"127":2,"128":1,"136":1,"139":2,"141":1,"220":2,"223":19,"224":1,"229":5,"230":9,"231":1,"262":1,"268":2,"287":1}}],["模块名",{"2":{"264":1}}],["模块文件夹",{"2":{"224":1}}],["模块信息",{"2":{"222":1,"223":1}}],["模块",{"0":{"17":1,"36":1,"58":1,"85":1,"88":1,"89":1,"93":1,"99":1,"122":1,"130":1,"131":1,"142":1,"143":1,"154":1,"156":1,"158":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"186":1,"187":1,"226":1,"228":1,"232":1,"233":1,"255":1,"256":1,"258":1,"260":1},"1":{"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"65":1,"66":1,"67":1,"68":1,"69":1,"70":1,"71":1,"72":1,"73":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"81":1,"82":1,"83":1,"84":1,"86":1,"87":1,"90":1,"91":1,"92":1,"94":1,"95":1,"96":1,"97":1,"98":1,"100":1,"101":1,"102":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"123":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"132":1,"133":1,"134":1,"135":1,"136":1,"137":1,"138":1,"139":1,"140":1,"141":1,"144":1,"145":1,"146":1,"147":1,"148":1,"149":1,"150":1,"151":1,"152":1,"153":1,"155":1,"157":1,"159":1,"161":1,"162":1,"164":1,"165":1,"166":1,"169":1,"170":1,"171":1,"172":1,"174":1,"175":1,"176":1,"178":1,"179":1,"180":1,"181":1,"182":1,"183":1,"184":1,"185":1,"188":1,"189":1,"190":1,"191":1,"192":1,"193":1,"194":1,"195":1,"196":1,"197":1,"198":1,"199":1,"200":1,"201":1,"202":1,"203":1,"204":1,"205":1,"206":1,"207":1,"208":1,"209":1,"210":1,"211":1,"212":1,"213":1,"214":1,"215":1,"216":1,"217":1,"218":1,"219":1,"220":1,"221":1,"222":1,"223":1,"224":1,"225":1,"227":1,"229":1,"230":1,"231":1,"234":1,"235":1,"236":1,"237":1,"238":1,"239":1,"240":1,"241":1,"242":1,"243":1,"244":1,"245":1,"246":1,"247":1,"248":1,"249":1,"250":1,"251":1,"252":1,"253":1,"254":1,"257":1,"259":1,"261":1,"262":1,"263":1,"264":1,"265":1}}],["至少1gb空间",{"2":{"15":1}}],["至少1vcpu",{"2":{"15":1}}],["硬盘",{"2":{"15":1}}],["及",{"2":{"15":1}}],["不带key返回配置项列表",{"2":{"295":1}}],["不包含任何隐私信息",{"2":{"293":1}}],["不含隐私部分",{"2":{"293":1}}],["不含插件数据",{"2":{"293":1}}],["不同adapter",{"2":{"282":1}}],["不同的实现端给出的字段可能不同",{"2":{"3":1}}],["不限制commit",{"2":{"276":1}}],["不要出现无法访问的死链接",{"2":{"276":1}}],["不要出现过多的嵌套",{"2":{"122":1}}],["不要将多个功能或多个bug的代码混在一起提交",{"2":{"276":1}}],["不递归",{"2":{"128":1}}],["不是liteyukibot官方提供的功能",{"2":{"14":1}}],["该功能需要commit",{"2":{"295":1}}],["该功能由trss提供支持",{"2":{"14":1}}],["该模块封装通道实现",{"2":{"270":1}}],["该模块用于存放一些开发工具",{"2":{"142":1}}],["该模块用于常用配置文件的加载",{"2":{"122":1}}],["该模块用于轻雪主进程和nonebot子进程之间的通信",{"2":{"88":1}}],["该步骤为必要项",{"2":{"12":1}}],["weather",{"0":{"301":1},"1":{"302":1},"2":{"301":1,"302":1}}],["world",{"2":{"279":5}}],["w",{"2":{"220":1}}],["write",{"0":{"220":1},"2":{"220":2,"224":1}}],["wrapper",{"0":{"265":1},"2":{"45":1,"70":2,"109":4,"137":1,"146":2,"153":2,"265":4}}],["watchdog",{"2":{"287":1,"290":1}}],["watch",{"2":{"286":1,"287":1}}],["walk",{"2":{"221":1,"222":1}}],["wait",{"0":{"146":1},"2":{"146":2}}],["waring=no",{"2":{"129":1}}],["waring",{"0":{"128":1,"129":1},"2":{"128":3,"129":3}}],["warning=no",{"2":{"128":1,"129":1}}],["warning",{"0":{"127":1,"230":1},"2":{"15":2,"35":1,"127":5,"128":1,"139":1,"141":1,"162":2,"229":1,"230":8,"283":1,"298":1}}],["will",{"2":{"35":1}}],["with",{"0":{"35":1,"224":1},"2":{"35":1,"104":1,"105":1,"106":1,"113":1,"220":1,"222":1,"223":5,"224":3}}],["windows",{"2":{"15":1,"22":1}}],["windows系统版本最低windows10+",{"2":{"15":1}}],["windows请使用项目绝对目录",{"2":{"13":1}}],["while",{"2":{"21":1,"68":1,"111":1,"268":2}}],["ws",{"2":{"3":2}}],["$",{"2":{"13":2}}],["构建镜像",{"2":{"13":1}}],["克隆项目",{"2":{"13":1}}],["克隆项目到本地",{"2":{"12":1}}],["使用通用日期简写",{"2":{"303":2}}],["使用此项目代表你已经同意以上协议",{"2":{"293":1}}],["使用开发工具快速运行插件",{"2":{"290":1}}],["使用",{"2":{"281":1}}],["使用新的task执行命令",{"2":{"280":1}}],["使用watchdog监控文件变化并重启bot",{"2":{"143":1}}],["使用trss",{"0":{"14":1}}],["使用docker构建",{"0":{"13":1}}],["使用其他项目连接请先自行查阅文档",{"2":{"9":1}}],["b包也定义了一个index",{"2":{"292":1}}],["bug",{"2":{"276":1}}],["built",{"2":{"255":2}}],["build",{"2":{"13":1}}],["break",{"2":{"174":1}}],["black等工具进行代码检查和格式化",{"2":{"274":1}}],["block",{"0":{"170":1,"175":1,"176":1},"2":{"170":4,"175":2,"176":2}}],["blue>",{"2":{"162":1}}],["bases",{"2":{"222":1}}],["base",{"0":{"219":1},"2":{"219":3,"222":2}}],["basemodel",{"0":{"194":1,"202":1,"207":1,"213":1,"240":1,"248":1},"1":{"195":1,"196":1,"197":1,"198":1,"199":1,"200":1,"201":1,"203":1,"204":1,"205":1,"206":1,"208":1,"209":1,"210":1,"211":1,"212":1,"214":1,"215":1,"216":1,"217":1,"218":1,"241":1,"242":1,"243":1,"244":1,"245":1,"246":1,"247":1,"249":1,"250":1,"251":1,"252":1,"253":1,"254":1}}],["baseexception",{"0":{"157":1}}],["bash",{"2":{"12":1}}],["b",{"2":{"123":1,"224":2,"264":2,"304":1}}],["body",{"2":{"222":1}}],["bool=false",{"2":{"127":1,"128":1,"129":1,"175":1,"176":1,"224":1}}],["bool=true",{"2":{"106":1,"153":1,"222":1,"230":1}}],["bool",{"0":{"66":1,"106":1,"127":1,"128":1,"129":1,"141":1,"153":1,"170":1,"175":1,"176":1,"183":1,"184":1,"185":1,"201":1,"222":1,"224":1,"230":1,"261":1},"2":{"62":1,"63":1,"66":1,"141":1,"145":1,"170":1,"178":1,"181":1,"182":1,"183":1,"184":1,"185":1,"261":2}}],["bot",{"0":{"17":1,"33":1,"36":1,"165":1},"1":{"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1},"2":{"19":2,"33":4,"34":1,"35":4,"155":2,"165":3,"166":2,"268":4,"279":1,"287":2,"295":1,"303":3,"304":1}}],["bot无其他插件会占用300~500mb",{"2":{"15":1}}],["be",{"2":{"35":1,"67":1,"70":1,"76":1,"148":1}}],["before",{"0":{"27":1,"30":1,"31":1,"46":1,"48":1,"50":1,"52":1,"54":1,"56":1},"2":{"27":2,"30":2,"31":2,"44":3,"46":2,"48":2,"50":2,"52":3,"54":3,"56":3}}],["bind",{"2":{"302":1}}],["bin",{"2":{"12":1}}],["可用",{"2":{"295":1}}],["可用参数",{"2":{"295":1}}],["可递归",{"2":{"280":1}}],["可调用对象",{"2":{"261":1}}],["可以在配置文件中把auto",{"2":{"293":1}}],["可以在a的index",{"2":{"292":1}}],["可以在此基础上进行修改",{"2":{"291":1}}],["可以在config",{"2":{"274":1}}],["可以很高程度地扩展轻雪的功能",{"2":{"284":1}}],["可以是本地插件或是通过",{"2":{"229":1}}],["可以使用liteyuki镜像",{"2":{"12":1}}],["可使用ws",{"2":{"8":1}}],["help",{"2":{"297":1,"298":1}}],["hello",{"2":{"279":5,"295":1}}],["html中用",{"2":{"292":1}}],["html",{"2":{"292":1}}],["html文件会被覆盖",{"2":{"292":1}}],["html文件",{"2":{"292":2}}],["https",{"2":{"12":2,"13":1}}],["hash",{"0":{"249":1},"2":{"249":2}}],["handle",{"0":{"171":1},"2":{"171":1,"256":1,"257":1}}],["handlers",{"2":{"170":1,"171":1,"172":1}}],["handler",{"0":{"180":1},"2":{"153":3,"171":4,"172":2,"180":3,"181":4,"182":4,"183":2}}],["homepage",{"0":{"246":1}}],["host",{"2":{"1":1}}],["hint",{"2":{"66":1,"222":1,"223":1}}],["环境",{"2":{"12":1}}],["和风天气的天气key",{"2":{"301":1}}],["和10是不一样的",{"2":{"295":1}}],["和config目录下的所有配置文件",{"2":{"129":1}}],["和",{"2":{"12":1,"295":1}}],["常规操作",{"2":{"19":1}}],["常规部署",{"0":{"12":1}}],["常见问题",{"0":{"6":1}}],["安装插件",{"2":{"297":1}}],["安装的插件",{"2":{"229":1}}],["安装依赖",{"2":{"12":1}}],["安装",{"0":{"11":1},"1":{"12":1,"13":1,"14":1,"15":1,"16":1},"2":{"12":1,"13":1,"294":1,"298":1}}],["安全模式",{"2":{"2":1}}],["鸣谢",{"0":{"10":1}}],["然后运行python",{"2":{"290":1}}],["然后使用",{"2":{"12":1}}],["然后给轻雪传输数据",{"2":{"8":1}}],["然后用",{"2":{"6":1}}],["看着qq的消息",{"2":{"8":1}}],["人工实现的onebot协议",{"2":{"8":1}}],["需要在最后调用",{"2":{"280":1}}],["需要官方机器人权限",{"2":{"8":1}}],["需要安装ntqq",{"2":{"8":1}}],["原生实现",{"2":{"8":1}}],["group",{"2":{"295":9,"296":1,"297":2,"303":3,"304":1}}],["green>",{"2":{"162":1}}],["guide",{"2":{"276":1}}],["g",{"2":{"231":1,"304":1}}],["gather",{"2":{"45":1,"262":1}}],["generate",{"0":{"223":1,"224":1},"2":{"223":1,"224":3}}],["generic",{"0":{"65":1},"1":{"66":1,"67":1,"68":1,"69":1,"70":1},"2":{"66":2,"67":1}}],["gensokyo",{"2":{"8":1}}],["getattr",{"2":{"261":1}}],["get",{"0":{"33":1,"34":1,"35":1,"78":1,"79":1,"83":1,"84":1,"105":1,"107":1,"113":1,"118":1,"121":1,"161":1,"219":1,"221":1,"222":1,"227":1},"2":{"23":2,"33":2,"34":3,"35":5,"66":2,"67":1,"69":1,"78":2,"79":2,"82":1,"83":4,"84":3,"104":1,"105":4,"106":1,"107":2,"113":1,"116":1,"117":1,"118":3,"120":1,"121":3,"155":1,"161":1,"162":2,"219":1,"221":1,"222":5,"224":3,"225":1,"227":1,"229":3,"230":1,"259":2,"262":1,"268":8,"271":1,"287":2,"295":3,"296":1,"299":2}}],["globalkeyvaluestore",{"0":{"112":1},"1":{"113":1,"114":1,"115":1},"2":{"116":1}}],["global",{"2":{"19":1,"70":1,"297":2,"298":2}}],["gt",{"0":{"19":1,"27":1,"31":1,"33":1,"34":1,"35":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"68":1,"69":1,"70":1,"78":1,"79":1,"91":1,"92":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"123":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"141":1,"153":1,"161":1,"171":1,"172":1,"175":1,"176":1,"181":1,"182":1,"183":1,"184":1,"185":1,"219":1,"222":1,"223":1,"227":1,"229":1,"230":1,"231":1,"261":1,"264":1,"265":1},"2":{"88":3,"123":1,"170":1,"264":1,"276":2,"294":1,"295":7,"297":10,"299":2}}],["github",{"2":{"12":1,"13":1}}],["git",{"2":{"12":3,"13":1}}],["golang",{"2":{"8":1}}],["go语言实现的onebot11实现端",{"2":{"8":1}}],["go",{"2":{"8":1}}],["occurred",{"2":{"262":1}}],["output",{"0":{"224":1},"2":{"224":5}}],["outlook",{"2":{"36":1,"131":1,"154":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"186":1,"187":1,"228":1,"232":1,"233":1,"256":1,"258":1}}],["order",{"2":{"224":1}}],["or",{"2":{"181":2,"222":4}}],["other",{"0":{"181":1,"182":1},"2":{"181":2,"182":2}}],["overall",{"2":{"158":1}}],["observer",{"0":{"143":1},"1":{"144":1,"145":1,"146":1,"147":1,"148":1,"149":1,"150":1,"151":1,"152":1,"153":1},"2":{"153":1,"287":2}}],["os",{"2":{"127":1,"128":3,"219":1,"220":4,"221":2,"222":1,"224":2,"230":9,"287":2}}],["of",{"2":{"67":1,"76":1,"158":1,"229":1}}],["only",{"2":{"70":1}}],["on",{"0":{"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"59":1,"60":1,"61":1,"70":1,"82":1,"83":1,"84":1,"91":2,"100":1,"101":1,"109":3,"118":1,"119":1,"120":1,"121":1,"148":1,"149":1,"150":1,"151":1,"152":1,"153":1,"173":1,"175":1,"176":1},"1":{"174":1,"175":1,"176":1},"2":{"27":2,"28":2,"29":2,"30":2,"31":2,"32":2,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"61":2,"66":2,"70":4,"81":1,"82":3,"83":3,"84":2,"91":4,"92":1,"100":1,"101":1,"109":11,"110":1,"117":1,"118":3,"119":3,"120":3,"121":2,"148":2,"149":2,"150":2,"151":2,"152":2,"153":2,"173":1,"175":1,"176":4,"256":1,"257":1,"268":6,"287":1}}],["onebot",{"2":{"2":1,"3":1,"8":2,"282":1,"295":1}}],["open",{"2":{"22":1,"124":1,"125":1,"126":1,"220":1,"222":1}}],["openshamrock",{"2":{"8":1}}],["option",{"2":{"294":1}}],["optional",{"0":{"23":1,"66":1,"70":1,"105":2,"165":2,"229":1,"254":1},"2":{"22":1,"23":2,"34":1,"35":1,"66":1,"70":3,"103":2,"105":3,"165":2,"229":1}}],["opt",{"2":{"20":2,"229":3}}],["基础插件",{"0":{"294":1},"1":{"295":1,"296":1,"297":1,"298":1,"299":1}}],["基础路径",{"2":{"219":1}}],["基础配置项",{"0":{"1":1}}],["基于socket的通道",{"2":{"93":1}}],["基于ipc",{"2":{"89":1}}],["基于",{"2":{"8":1}}],["基于node",{"2":{"8":1}}],["基于ntqq的onebot实现",{"2":{"8":1}}],["基于lsposed的onebot11实现",{"2":{"8":1}}],["qq群号",{"2":{"303":1}}],["qq官方机器人api",{"2":{"8":1}}],["qq",{"0":{"8":1}}],["quot",{"2":{"3":2,"276":1,"283":2,"295":2,"301":4}}],["推荐私聊使用",{"2":{"295":1}}],["推荐在编写html时同时更改对应js代码",{"2":{"291":1}}],["推荐",{"2":{"276":1}}],["推荐ubuntu",{"2":{"15":1}}],["推荐使用arch",{"2":{"14":1}}],["推荐使用虚拟环境来运行轻雪",{"2":{"12":1}}],["推荐使用反向ws协议进行通信",{"2":{"3":1}}],["推荐方案",{"0":{"8":1,"9":1}}],["仍然出现问题",{"2":{"6":1}}],["登录功能由实现端",{"2":{"6":1}}],["本项目不会收集用户的任何隐私信息",{"2":{"293":1}}],["本项目不负责实现登录功能",{"2":{"6":1}}],["本项目遵循mit协议",{"2":{"293":1}}],["本项目是一个非盈利的开源项目",{"2":{"277":1}}],["本模块用于实现rpc",{"2":{"89":1}}],["本模块用于轻雪主进程和子进程之间的通信的事件类",{"2":{"85":1}}],["本模块定义了一个通用的通道类",{"2":{"58":1}}],["本机默认为127",{"2":{"3":1}}],["例如npm",{"2":{"294":1}}],["例如nonebot插件中",{"2":{"268":1}}],["例如你在a中定义了templates",{"2":{"292":1}}],["例如html",{"2":{"291":1}}],["例如main",{"2":{"290":1}}],["例如watchdog",{"2":{"286":1,"289":1}}],["例如",{"2":{"279":2,"292":1,"301":1}}],["例如test",{"2":{"279":1,"290":1}}],["例如子进程接收到用户信息需要重启机器人",{"2":{"267":1}}],["例如qq",{"2":{"6":1}}],["例如一个命令是help",{"2":{"6":1}}],["怎么登录聊天平台",{"2":{"6":1}}],["报错invalidgitrepositoryerror",{"2":{"6":1}}],["冲突",{"2":{"6":1}}],["确认插件必要配置项完好后",{"2":{"6":1}}],["确认命令头没有和nickname",{"2":{"6":1}}],["确认你有权限使用命令并按照正确的命令发送",{"2":{"6":1}}],["其中type字段为commit类型且可选",{"2":{"276":1}}],["其中",{"2":{"6":1,"275":1}}],["其他插件框架进程是伴随的子进程",{"2":{"267":1}}],["其他插件占用视具体插件而定",{"2":{"15":1}}],["其他插件自带的调试功能也将开启",{"2":{"2":1}}],["其他问题请移步至",{"0":{"16":1}}],["其他问题",{"0":{"7":1}}],["其他",{"0":{"4":1}}],["其他nonebot插件的配置项",{"2":{"2":1}}],["其他配置",{"0":{"2":1}}],["r>",{"2":{"229":2}}],["rv",{"2":{"224":2}}],["rk",{"2":{"224":2}}],["rmtree",{"2":{"224":1}}],["rpm",{"2":{"297":5,"298":1}}],["rp",{"2":{"220":4}}],["rpc",{"0":{"89":1,"90":1},"1":{"90":1,"91":2,"92":2},"2":{"88":1}}],["rule=is",{"2":{"256":1,"257":1}}],["rule=empty",{"2":{"175":1,"176":1}}],["rulehandlerfunc",{"0":{"178":1,"180":1},"2":{"180":1}}],["rule",{"0":{"170":2,"175":3,"176":2,"177":1,"179":1,"181":2,"182":2,"184":1,"185":1},"1":{"178":1,"179":1,"180":2,"181":2,"182":2,"183":2,"184":1,"185":1},"2":{"170":5,"172":1,"175":3,"176":5,"177":1,"181":3,"182":3,"183":1,"184":3,"185":2,"256":1,"257":1}}],["running",{"2":{"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"66":1,"69":1,"103":2,"262":2}}],["runtimeerror",{"2":{"33":2,"67":1,"68":1,"70":1,"109":1,"111":1,"262":1}}],["run",{"0":{"20":1,"45":1,"110":1,"155":1,"172":1,"262":1,"263":1},"2":{"13":1,"20":3,"45":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"69":1,"110":1,"111":1,"136":1,"155":2,"172":1,"262":3,"263":1,"290":2}}],["raw",{"0":{"165":1},"2":{"165":3,"166":1,"176":1,"257":1}}],["raise",{"2":{"33":2,"66":3,"67":2,"68":1,"70":1,"76":2,"106":1,"109":1,"111":1,"148":1}}],["rights",{"2":{"36":1,"131":1,"154":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"186":1,"187":1,"228":1,"232":1,"233":1,"256":1,"258":1}}],["root",{"2":{"13":1,"221":2}}],["request",{"2":{"273":1}}],["required",{"2":{"66":1}}],["requirements",{"2":{"6":1,"12":1,"15":1}}],["readme",{"2":{"224":2}}],["read",{"2":{"222":1}}],["reload",{"2":{"295":1,"296":2,"297":1,"298":1}}],["reloading",{"2":{"287":1}}],["rel",{"2":{"224":4,"264":5}}],["relpath",{"2":{"219":1}}],["relative",{"0":{"219":1},"2":{"219":1,"224":1,"225":1,"264":1}}],["replace",{"2":{"222":3,"223":4,"224":8}}],["reply",{"0":{"166":1},"2":{"166":3,"257":1}}],["report设定为false",{"2":{"293":1}}],["report",{"2":{"1":1,"293":1}}],["red>",{"2":{"162":1}}],["remove",{"2":{"162":1}}],["ref",{"0":{"117":1}}],["recursive=recursive",{"2":{"153":1}}],["recursive",{"0":{"153":1},"2":{"153":2}}],["recv",{"2":{"66":2,"68":2,"78":5,"79":5,"83":3,"84":3,"95":1,"105":5,"107":5,"118":3,"121":3}}],["receive",{"0":{"59":1,"60":1,"61":1,"68":1,"69":1,"70":1,"97":1,"100":1,"101":1,"109":3,"110":1,"111":1,"165":1},"2":{"61":2,"66":3,"68":2,"69":2,"70":4,"78":1,"79":1,"81":1,"82":2,"83":2,"84":1,"97":1,"100":1,"101":1,"103":2,"105":1,"107":1,"109":11,"110":2,"111":4,"117":1,"118":2,"119":2,"120":2,"121":1,"165":3,"166":3,"268":11}}],["resources",{"2":{"275":1,"291":1,"292":1,"296":1}}],["resolve",{"2":{"264":2}}],["reserved",{"2":{"36":1,"131":1,"154":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"186":1,"187":1,"228":1,"232":1,"233":1,"256":1,"258":1}}],["restarting",{"2":{"22":1}}],["restart",{"0":{"22":1,"23":1,"31":1,"32":1,"50":1,"51":1,"56":1,"57":1},"2":{"19":1,"22":3,"23":1,"31":2,"32":2,"44":2,"50":2,"51":2,"56":3,"57":3,"287":2}}],["returns",{"2":{"222":4}}],["return",{"0":{"197":1},"2":{"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":3,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"68":1,"69":1,"70":6,"78":2,"79":2,"92":1,"105":2,"107":2,"109":2,"113":1,"123":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"139":1,"141":1,"146":3,"153":3,"161":2,"171":2,"172":1,"175":1,"176":2,"181":2,"182":2,"183":2,"184":1,"185":1,"219":1,"221":1,"222":3,"223":3,"227":1,"229":2,"230":1,"231":1,"249":1,"261":3,"264":2,"265":2}}],["r",{"2":{"6":1,"12":1,"15":1,"124":1,"125":1,"126":1,"222":1}}],["msg",{"2":{"295":1}}],["mcfunction",{"2":{"279":2}}],["mkdir",{"2":{"224":1}}],["mkdoc",{"0":{"187":1},"1":{"188":1,"189":1,"190":1,"191":1,"192":1,"193":1,"194":1,"195":1,"196":1,"197":1,"198":1,"199":1,"200":1,"201":1,"202":1,"203":1,"204":1,"205":1,"206":1,"207":1,"208":1,"209":1,"210":1,"211":1,"212":1,"213":1,"214":1,"215":1,"216":1,"217":1,"218":1,"219":1,"220":1,"221":1,"222":1,"223":1,"224":1,"225":1},"2":{"187":1}}],["md",{"2":{"224":13}}],["member",{"2":{"295":1}}],["memory",{"0":{"116":1},"2":{"103":3,"117":1,"118":3,"119":3,"120":3,"121":2,"137":1,"271":3}}],["meta",{"2":{"229":4,"286":1}}],["metadata",{"0":{"254":1},"2":{"229":13}}],["methods=",{"2":{"222":1}}],["methods",{"0":{"210":1},"2":{"222":1,"223":1}}],["method",{"0":{"190":2,"191":1,"192":1},"2":{"222":5,"223":13}}],["message的语言",{"2":{"276":1}}],["message的格式为",{"2":{"276":1}}],["message字段为简短的描述",{"2":{"276":1}}],["message请遵循以下规范",{"2":{"276":1}}],["message=",{"2":{"166":1,"295":1}}],["message=message",{"2":{"166":1}}],["messageevent",{"0":{"164":1,"165":1,"172":1,"183":1,"184":1,"185":1,"257":1},"1":{"165":1,"166":1},"2":{"165":1,"166":1,"172":1,"176":1,"178":1,"181":1,"182":1,"183":1,"184":1,"185":1,"257":1}}],["message",{"0":{"163":1,"165":3,"166":1,"167":1,"168":1,"173":1,"175":1,"177":1,"186":1},"1":{"164":1,"165":1,"166":1,"169":1,"170":1,"171":1,"172":1,"174":1,"175":1,"176":1,"178":1,"179":1,"180":1,"181":1,"182":1,"183":1,"184":1,"185":1},"2":{"165":9,"166":5,"175":1,"176":2,"257":1,"276":1,"303":1,"304":1}}],["moved",{"0":{"151":1},"2":{"151":1}}],["moduletype",{"0":{"252":1}}],["module=module",{"2":{"229":1}}],["moduleinfo",{"0":{"213":1,"222":1,"223":1},"1":{"214":1,"215":1,"216":1,"217":1,"218":1},"2":{"222":2,"223":1}}],["module",{"0":{"155":1,"214":1,"221":1,"222":1,"223":1,"224":1,"225":1,"229":1,"237":2,"252":1,"253":1,"264":1},"2":{"155":3,"158":1,"221":2,"222":11,"223":5,"224":19,"225":1,"229":26,"230":9,"231":1,"249":1,"255":1,"264":1}}],["modified",{"0":{"148":1},"2":{"148":2,"149":1,"150":1,"151":1,"152":1,"153":4}}],["model",{"0":{"233":1,"250":1},"1":{"234":1,"235":1,"236":1,"237":1,"238":1,"239":1,"240":1,"241":1,"242":1,"243":1,"244":1,"245":1,"246":1,"247":1,"248":1,"249":1,"250":1,"251":1,"252":1,"253":1,"254":1},"2":{"233":1}}],["mode为true",{"2":{"143":1}}],["mode",{"2":{"2":2,"6":1,"274":1,"295":2,"296":1}}],["must",{"2":{"67":1,"76":1,"148":1}}],["match",{"2":{"231":1}}],["matcher",{"0":{"168":1,"169":1,"174":3,"175":1,"176":1},"1":{"169":1,"170":2,"171":2,"172":2},"2":{"168":1,"174":9,"175":6,"176":1}}],["matter=none",{"2":{"223":1}}],["matter",{"0":{"223":1},"2":{"223":4,"224":3}}],["markdown",{"0":{"223":1},"2":{"223":2,"224":1}}],["makedirs",{"2":{"220":1}}],["manually",{"2":{"66":1}}],["manager",{"0":{"131":1,"232":1},"1":{"132":1,"133":1,"134":1,"135":1,"136":1,"137":1,"138":1,"139":1,"140":1,"141":1},"2":{"19":1,"20":1,"22":1,"23":1,"26":1,"131":1,"232":1}}],["maplemono提供的字体",{"2":{"10":1}}],["mainprocess",{"2":{"267":1}}],["main",{"0":{"100":1},"2":{"6":1,"12":1,"33":1,"66":4,"70":4,"76":1,"78":1,"79":1,"103":1,"104":1,"105":1,"106":1,"107":1,"109":5,"110":1,"111":1,"268":6,"275":1,"290":1}}],["misans",{"2":{"10":1}}],["minecraftonebot",{"2":{"9":1}}],["minecraft",{"0":{"9":1}}],["m",{"2":{"6":1,"12":1,"15":1,"174":2,"231":1,"304":1}}],["答疑",{"0":{"5":1},"1":{"6":1,"7":1,"8":1,"9":1,"10":1}}],["要使用其他通信方式请访问onebot",{"2":{"3":1}}],["如",{"2":{"276":2}}],["如需往轻雪仓库提交代码",{"2":{"273":1}}],["如需自定义请手动添加",{"2":{"2":1}}],["如何开发",{"0":{"273":1},"1":{"274":1}}],["如果是文档相关的开发",{"2":{"273":1}}],["如果你接触过minecraft的资源包",{"2":{"291":1}}],["如果你想同时输出多行内容可以尝试换行符",{"2":{"279":1}}],["如果你没有安装git直接下载源代码运行",{"2":{"15":1}}],["如果你给轻雪配置了accesstoken",{"2":{"3":1}}],["如果装置上有多个环境",{"2":{"15":1}}],["version=",{"2":{"286":1}}],["version",{"0":{"159":1},"2":{"292":1}}],["venv来创建虚拟环境",{"2":{"12":1}}],["venv",{"2":{"12":3}}],["validate",{"2":{"67":1}}],["value=ast",{"2":{"222":1}}],["value",{"0":{"104":1,"205":1},"2":{"104":5,"119":3,"123":3,"222":6,"223":3,"271":2,"295":2,"299":1}}],["valueerror",{"2":{"66":2,"76":1}}],["value2",{"2":{"2":1}}],["value1",{"2":{"2":1}}],["var=value",{"2":{"280":1}}],["var2=value2",{"2":{"280":1}}],["var1=value1>",{"2":{"280":1}}],["var",{"0":{"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"71":1,"72":1,"73":1,"74":1,"75":1,"80":1,"81":1,"100":1,"101":1,"116":1,"117":1,"144":1,"145":1,"159":1,"178":1,"225":1},"2":{"223":2}}],["v",{"2":{"13":2,"123":2,"223":2}}],["v11协议api",{"2":{"295":2}}],["v11",{"2":{"3":1,"282":1}}],["地址取决于配置文件",{"2":{"3":1}}],["地址",{"2":{"3":1}}],["反向websocket",{"2":{"3":1}}],["协议端",{"2":{"6":1}}],["协议",{"2":{"3":1}}],["说明",{"2":{"3":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"66":1,"67":1,"68":1,"69":1,"70":1,"71":1,"72":1,"73":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"81":1,"92":1,"95":1,"96":1,"97":1,"98":1,"100":1,"101":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1,"116":1,"117":1,"123":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"136":1,"137":1,"139":1,"141":1,"144":1,"145":1,"146":1,"153":1,"155":1,"159":1,"162":1,"165":1,"166":1,"170":1,"171":1,"172":1,"178":1,"219":1,"220":1,"222":1,"223":1,"224":1,"225":1,"227":1,"229":1,"230":1,"231":1,"259":1,"261":1,"262":1,"263":1,"264":1,"265":1,"295":1,"297":2,"299":1}}],["与nonebot对接的onebot实现端配置",{"0":{"3":1}}],["示例",{"0":{"3":1,"268":1,"271":1,"281":1}}],["监听目录们",{"2":{"153":1}}],["监听地址",{"2":{"1":1}}],["监视文件变化并自动重载",{"2":{"2":1}}],["开始",{"0":{"285":1},"1":{"286":1,"287":1,"288":1,"289":1,"290":1}}],["开发文档是详细的",{"2":{"276":1}}],["开发过程中可以使用mypy",{"2":{"274":1}}],["开发指南",{"0":{"272":1},"1":{"273":1,"274":1,"275":1,"276":1,"277":1}}],["开发者模式",{"2":{"2":1}}],["开发者选项",{"2":{"2":1}}],["开启后将会启动监视者",{"2":{"2":1}}],["开启后将不会加载任何第三方nonebot插件",{"2":{"2":1}}],["开启会自动重载bot或者资源",{"2":{"2":1}}],["2s戳两次",{"2":{"281":1}}],["22",{"2":{"256":1}}],["27",{"2":{"131":1,"160":1}}],["24",{"2":{"36":1,"233":1}}],["23",{"2":{"36":1,"187":1,"228":1,"232":1}}],["20代替空格",{"2":{"295":1}}],["20和end",{"2":{"281":1}}],["2024",{"2":{"36":2,"131":2,"154":2,"160":2,"163":2,"167":2,"168":2,"173":2,"177":2,"186":2,"187":2,"228":2,"232":2,"233":2,"256":2,"258":2}}],["2020",{"2":{"36":1,"131":1,"154":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"186":1,"187":1,"228":1,"232":1,"233":1,"256":1,"258":1}}],["20216中的20216替换为你的端口号",{"2":{"13":1}}],["20216",{"2":{"1":1,"3":2,"13":2}}],["20",{"2":{"15":1}}],["2019+",{"2":{"15":1}}],["2",{"2":{"2":1,"281":1,"292":1}}],["建议",{"0":{"274":1}}],["建议1gb以上",{"2":{"15":1}}],["建议开启",{"2":{"2":1}}],["建议迁移到liteyuki下",{"2":{"1":1}}],["默认普通图片",{"2":{"295":1}}],["默认开启",{"2":{"293":1}}],["默认插件加载器",{"2":{"259":1}}],["默认执行扁平化选项",{"2":{"127":1,"128":1}}],["默认值",{"2":{"34":1,"35":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"71":1,"72":1,"73":1,"74":1,"75":1,"80":1,"81":1,"100":1,"101":1,"105":1,"116":1,"117":1,"144":1,"145":1,"159":1,"178":1,"225":1}}],["默认false",{"2":{"2":1}}],["默认语言",{"2":{"2":1}}],["默认为本机",{"2":{"1":1}}],["city",{"2":{"301":1,"302":1}}],["css相对路径引用b中的css",{"2":{"292":1}}],["css",{"2":{"291":1,"292":1}}],["cwd",{"2":{"264":1}}],["cfg",{"2":{"155":4}}],["current|bot",{"2":{"303":1}}],["current|group",{"2":{"303":1}}],["current",{"2":{"146":3,"303":2,"304":1}}],["custom",{"2":{"2":4}}],["created",{"0":{"149":1},"2":{"149":1}}],["create",{"2":{"110":1}}],["child",{"2":{"222":2}}],["check",{"0":{"66":1},"2":{"66":8,"67":1}}],["change",{"2":{"297":1,"298":1}}],["changed",{"2":{"287":1}}],["channel时的通道标识",{"2":{"268":1}}],["channel即可",{"2":{"268":1}}],["channel及passive",{"2":{"268":1}}],["channel函数获取通道对象",{"2":{"268":2}}],["channel=none",{"2":{"166":1}}],["channeldeliver",{"0":{"132":1},"1":{"133":1},"2":{"137":1}}],["channels",{"0":{"77":2,"79":1,"84":1},"2":{"77":4,"79":2,"83":1,"84":3}}],["channel",{"0":{"58":1,"65":1,"71":1,"72":1,"73":1,"74":2,"75":2,"76":3,"77":1,"78":2,"79":1,"80":2,"81":2,"82":1,"83":1,"93":1,"108":1,"109":1,"110":1,"133":8,"165":2},"1":{"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"65":1,"66":2,"67":2,"68":2,"69":2,"70":2,"71":1,"72":1,"73":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"81":1,"82":1,"83":1,"84":1,"94":1,"95":1,"96":1,"97":1,"98":1},"2":{"23":2,"66":7,"67":1,"68":1,"71":3,"72":3,"73":3,"74":2,"75":1,"76":19,"77":5,"78":9,"79":7,"80":3,"81":6,"82":11,"83":7,"84":2,"88":2,"103":4,"105":1,"107":1,"108":4,"109":8,"110":3,"111":2,"133":12,"137":12,"165":4,"166":2,"268":12}}],["chan",{"2":{"23":4,"78":5,"79":5,"83":3,"84":3,"103":2,"104":1,"105":6,"106":1,"107":6,"108":1,"111":1,"117":1,"118":5,"119":2,"120":2,"121":4,"137":2}}],["c",{"2":{"36":1,"123":1,"131":1,"154":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"186":1,"187":1,"228":1,"231":1,"232":1,"233":1,"256":1,"258":1,"262":4,"264":2,"304":1}}],["cmd",{"2":{"22":5,"279":2,"280":1}}],["case",{"2":{"231":4}}],["category",{"2":{"223":1,"224":2}}],["cannot",{"2":{"67":1,"68":1,"109":1,"111":1}}],["can",{"2":{"33":1,"70":1}}],["calling",{"0":{"91":2},"2":{"91":4,"92":1}}],["callback",{"0":{"144":1,"153":2},"2":{"70":1,"153":4}}],["callable",{"0":{"70":3,"109":1,"153":1,"171":1,"261":2,"265":2},"2":{"37":1,"38":1,"40":1,"41":1,"45":1,"59":1,"60":1,"62":1,"63":1,"70":10,"109":2,"135":1,"144":1,"145":1,"153":1,"171":1,"178":1,"261":2,"265":4}}],["call",{"0":{"92":1,"261":1},"2":{"19":1,"22":2,"92":1,"146":4,"183":1,"261":7}}],["cache",{"2":{"13":2}}],["cls",{"0":{"113":1},"2":{"113":6,"222":1,"223":11}}],["close",{"0":{"98":1},"2":{"98":1,"262":1}}],["closed",{"2":{"66":1,"67":2,"68":2,"95":1}}],["clone",{"2":{"12":1,"13":1}}],["classdef",{"2":{"222":3}}],["classes=",{"2":{"222":1}}],["classes",{"0":{"216":1},"2":{"222":1,"223":1}}],["classinfo",{"0":{"207":1,"216":1},"1":{"208":1,"209":1,"210":1,"211":1,"212":1},"2":{"222":1}}],["classmethod",{"0":{"192":1},"2":{"112":1,"113":1,"222":1}}],["class",{"0":{"18":1,"43":1,"65":1,"86":1,"90":1,"94":1,"102":1,"112":1,"132":1,"134":1,"147":1,"157":1,"164":1,"169":1,"179":1,"188":1,"192":1,"194":1,"202":1,"207":1,"213":1,"234":1,"240":1,"248":1},"1":{"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"66":1,"67":1,"68":1,"69":1,"70":1,"87":1,"91":1,"92":1,"95":1,"96":1,"97":1,"98":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1,"113":1,"114":1,"115":1,"133":1,"135":1,"136":1,"137":1,"138":1,"139":1,"140":1,"141":1,"148":1,"149":1,"150":1,"151":1,"152":1,"165":1,"166":1,"170":1,"171":1,"172":1,"180":1,"181":1,"182":1,"183":1,"189":1,"190":1,"191":1,"192":1,"193":1,"195":1,"196":1,"197":1,"198":1,"199":1,"200":1,"201":1,"203":1,"204":1,"205":1,"206":1,"208":1,"209":1,"210":1,"211":1,"212":1,"214":1,"215":1,"216":1,"217":1,"218":1,"235":1,"236":1,"237":1,"238":1,"239":1,"241":1,"242":1,"243":1,"244":1,"245":1,"246":1,"247":1,"249":1,"250":1,"251":1,"252":1,"253":1,"254":1},"2":{"222":24,"223":2}}],["cpu",{"2":{"15":1,"293":1}}],["centos",{"2":{"15":1}}],["cd",{"2":{"12":1,"13":1}}],["cqhttp",{"2":{"8":1}}],["color",{"2":{"231":7}}],["color=",{"2":{"162":5}}],["colors=true",{"2":{"20":2,"229":3}}],["code插件liteyuki",{"2":{"283":1}}],["code=ast",{"2":{"222":2}}],["code",{"0":{"199":1},"2":{"153":3,"223":6,"224":2}}],["codemodifiedhandler",{"0":{"147":1},"1":{"148":1,"149":1,"150":1,"151":1,"152":1},"2":{"153":1}}],["coro",{"0":{"262":1,"263":1},"2":{"262":5,"263":2}}],["coroutine",{"0":{"261":1,"262":2,"263":2,"265":1},"2":{"45":1,"60":1,"63":1,"70":2,"109":1,"178":1,"261":1,"262":2,"263":3,"265":2}}],["core",{"0":{"130":1,"131":1},"1":{"132":1,"133":1,"134":1,"135":1,"136":1,"137":1,"138":1,"139":1,"140":1,"141":1}}],["copy",{"2":{"123":1}}],["copyright",{"2":{"36":1,"131":1,"154":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"186":1,"187":1,"228":1,"232":1,"233":1,"256":1,"258":1}}],["content",{"2":{"222":2,"223":17,"224":2}}],["continue",{"2":{"128":1,"222":1,"224":1,"230":3}}],["conn",{"2":{"66":4,"67":1,"68":1,"95":2}}],["configs",{"0":{"128":1},"2":{"128":1,"129":1}}],["config=self",{"2":{"25":1}}],["config",{"0":{"34":1,"35":1,"122":1,"123":2,"129":1,"162":1,"250":1},"1":{"123":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1},"2":{"2":2,"19":2,"25":1,"34":2,"35":6,"123":9,"124":6,"125":6,"126":6,"127":7,"128":4,"129":9,"155":1,"162":3,"259":2,"295":4,"296":1}}],["count",{"0":{"117":1},"2":{"19":1,"22":2}}],["combined",{"2":{"181":2,"182":2}}],["commit",{"2":{"276":2}}],["comm",{"0":{"58":1,"85":1,"88":1,"89":1,"93":1,"99":1},"1":{"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"65":1,"66":1,"67":1,"68":1,"69":1,"70":1,"71":1,"72":1,"73":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"81":1,"82":1,"83":1,"84":1,"86":1,"87":1,"90":1,"91":1,"92":1,"94":1,"95":1,"96":1,"97":1,"98":1,"100":1,"101":1,"102":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1},"2":{"268":2,"271":2}}],["command>",{"2":{"280":2}}],["command",{"0":{"295":1},"1":{"296":1},"2":{"1":2}}],["complete",{"2":{"262":2}}],["completion",{"2":{"2":1}}],["compat",{"0":{"35":2},"2":{"35":8}}],["com",{"2":{"12":1,"13":1,"36":1,"131":1,"154":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"186":1,"187":1,"228":1,"232":1,"233":1,"256":1,"258":1}}],["cn",{"0":{"223":1,"224":1},"2":{"2":1,"223":2,"224":1}}],["duration>",{"2":{"303":1}}],["duration",{"2":{"303":2,"304":1}}],["driver",{"2":{"268":4}}],["dog",{"2":{"286":1,"287":1}}],["does",{"2":{"230":1}}],["dot",{"2":{"222":1}}],["docs",{"0":{"224":1},"2":{"224":3,"275":1,"295":1,"296":1}}],["docstring或liteyuki",{"2":{"276":1}}],["docstring=method",{"2":{"222":1}}],["docstring=module",{"2":{"222":1}}],["docstring=class",{"2":{"222":1}}],["docstring=function",{"2":{"222":1}}],["docstring",{"0":{"198":1,"206":1,"209":1,"218":1},"2":{"222":16,"223":12,"276":1}}],["docker相关内容目录",{"2":{"275":1}}],["docker",{"2":{"13":3,"275":1}}],["d",{"2":{"117":2,"118":4,"119":4,"120":4,"121":2,"264":2,"304":1}}],["data=",{"2":{"166":1}}],["data",{"0":{"67":1,"82":1,"83":1,"84":1,"87":1,"96":1,"108":1,"110":1,"118":1,"119":1,"120":1,"121":1,"165":1,"220":1},"2":{"67":6,"68":2,"69":2,"70":5,"81":2,"82":7,"83":7,"84":4,"87":3,"96":2,"97":1,"108":4,"109":3,"110":3,"111":6,"118":4,"119":3,"120":2,"121":2,"165":5,"220":5,"224":5,"268":7}}],["daemon=true",{"2":{"22":1,"136":1,"263":1}}],["darwin",{"2":{"22":1}}],["disable",{"2":{"295":1,"296":1,"297":2,"298":2}}],["display",{"0":{"231":2},"2":{"229":7,"231":4}}],["diagnose=false",{"2":{"162":1}}],["dir",{"0":{"224":1,"230":1},"2":{"224":5,"230":16,"259":2}}],["dirname",{"2":{"220":2}}],["directory",{"2":{"128":6,"153":2,"230":1}}],["directories=",{"2":{"287":1}}],["directories",{"0":{"128":1,"153":1},"2":{"128":2,"153":3}}],["dirs",{"0":{"128":1},"2":{"1":1,"128":1,"129":1,"221":1,"259":1}}],["dict",{"0":{"77":1,"79":1,"82":1,"83":1,"84":1,"87":1,"92":1,"107":1,"118":1,"119":1,"120":1,"121":1,"123":2,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"133":1,"162":1,"165":2,"166":1,"220":1,"227":1,"247":1},"2":{"19":1,"73":1,"75":1,"77":2,"79":3,"82":1,"83":1,"84":1,"87":1,"92":1,"100":1,"101":1,"103":2,"107":3,"118":1,"119":1,"120":1,"121":1,"123":3,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"133":1,"135":3,"162":1,"165":2,"166":1,"220":1,"224":1,"227":2,"229":6}}],["description=",{"2":{"286":1}}],["description",{"0":{"242":1},"2":{"292":1}}],["details>",{"2":{"223":4}}],["debounce",{"0":{"146":1},"2":{"146":1,"147":1,"148":1}}],["debug",{"2":{"2":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"66":2,"124":1,"125":1,"126":1,"136":1,"161":2,"162":2,"287":1}}],["deepcopy",{"2":{"123":1}}],["del",{"2":{"106":2}}],["deleted",{"0":{"150":1},"2":{"150":1}}],["delete",{"0":{"106":1,"120":1},"2":{"106":2,"119":1,"120":3}}],["delivery",{"2":{"137":1}}],["deliver",{"0":{"74":1,"75":1,"80":1,"81":1,"133":2},"2":{"76":1,"78":1,"79":1,"80":1,"81":2,"82":2,"83":2,"84":1,"133":6,"137":6}}],["delay",{"0":{"22":1},"2":{"22":3}}],["decorator",{"2":{"70":2,"109":2,"146":2,"153":2,"171":2,"222":13}}],["deprecated",{"2":{"35":1}}],["depth=1",{"2":{"12":1,"13":1}}],["deftype",{"0":{"188":1,"200":1},"1":{"189":1,"190":1,"191":1,"192":1,"193":1},"2":{"222":4,"223":1}}],["def",{"2":{"21":1,"45":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"69":1,"70":2,"82":1,"83":1,"84":1,"109":2,"110":1,"111":1,"113":1,"118":1,"119":1,"120":1,"121":1,"146":2,"148":1,"153":2,"171":1,"172":1,"176":1,"181":1,"182":1,"183":1,"184":1,"185":1,"222":4,"223":2,"257":1,"265":1,"268":3,"287":1}}],["defaults",{"2":{"22":1,"23":1,"34":1,"35":1,"70":1}}],["default",{"0":{"34":1,"35":1,"105":1,"129":1,"195":1,"196":1,"197":1,"198":1,"200":1,"201":1,"203":1,"204":1,"208":1,"209":1,"210":1,"211":1,"212":1,"214":1,"215":1,"216":1,"217":1,"218":1,"241":1,"251":1,"252":1,"253":1,"259":1},"2":{"2":1,"34":3,"35":3,"74":1,"75":1,"105":5,"118":3,"129":1,"155":1,"161":1,"259":1}}],["developer",{"2":{"286":1}}],["dev",{"0":{"142":1,"143":1,"154":1},"1":{"144":1,"145":1,"146":1,"147":1,"148":1,"149":1,"150":1,"151":1,"152":1,"153":1,"155":1},"2":{"2":1,"287":1,"290":1}}],["访问令牌",{"2":{"2":1}}],["a包中的index",{"2":{"292":1}}],["am",{"2":{"268":6}}],["amp",{"0":{"182":1}}],["arbitrary",{"0":{"250":1}}],["arg",{"2":{"222":13,"223":16}}],["argv",{"2":{"22":1}}],["args=coro",{"2":{"263":1}}],["args=",{"2":{"22":1,"136":1,"222":2}}],["args",{"0":{"24":1,"45":1,"54":1,"56":1,"92":1,"137":1,"196":1},"2":{"22":2,"24":2,"45":3,"54":2,"56":2,"92":2,"137":3,"146":2,"222":8,"223":8,"265":2,"295":4}}],["abs",{"2":{"224":4}}],["application",{"0":{"235":2},"2":{"231":1}}],["append",{"2":{"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"70":2,"109":2,"171":1,"174":1,"221":1,"222":5}}],["api格式为onebot",{"2":{"295":1}}],["api文档",{"2":{"282":1}}],["api也有差别",{"2":{"282":1}}],["api",{"0":{"282":1},"2":{"224":6,"280":3,"281":2,"295":3}}],["add",{"0":{"137":1,"174":1},"2":{"137":1,"162":1,"174":1,"175":1,"230":1}}],["adapter获取详细信息",{"2":{"3":1}}],["attributes=",{"2":{"222":2}}],["attributes",{"0":{"211":1,"217":1},"2":{"222":2,"223":2}}],["attributeinfo",{"0":{"202":1,"211":1,"217":1},"1":{"203":1,"204":1,"205":1,"206":1},"2":{"222":2}}],["attr",{"0":{"114":1,"115":1,"189":1,"190":1,"191":1,"192":1,"193":1,"195":1,"196":1,"197":1,"198":1,"199":1,"200":1,"201":1,"203":1,"204":1,"205":1,"206":1,"208":1,"209":1,"210":1,"211":1,"212":1,"214":1,"215":1,"216":1,"217":1,"218":1,"235":1,"236":1,"237":1,"238":1,"239":1,"241":1,"242":1,"243":1,"244":1,"245":1,"246":1,"247":1,"250":1,"251":1,"252":1,"253":1,"254":1},"2":{"222":2,"223":14}}],["assign",{"2":{"222":2}}],["ast",{"2":{"222":29}}],["as",{"2":{"106":1,"220":1,"222":1,"229":1,"262":1}}],["asynchronous",{"2":{"265":1}}],["async=isinstance",{"2":{"222":2}}],["asyncfunctiondef",{"2":{"222":3}}],["async",{"0":{"21":1,"38":1,"41":1,"45":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"60":1,"63":1,"69":2,"110":1,"111":1,"172":1,"183":1,"184":1,"185":1,"201":1,"257":1,"265":1},"2":{"39":1,"42":1,"45":3,"61":1,"64":1,"69":1,"70":1,"100":1,"101":1,"109":1,"110":1,"111":1,"176":1,"181":1,"182":1,"184":1,"185":1,"223":4,"257":1,"265":2,"268":2}}],["asyncio",{"2":{"19":2,"20":1,"21":1,"45":1,"69":1,"110":1,"262":5,"268":2}}],["a",{"2":{"67":1,"68":1,"123":1,"224":2,"230":1,"264":1,"286":1}}],["annassign",{"2":{"222":1}}],["annotation",{"2":{"222":6}}],["an",{"2":{"67":1,"76":1}}],["and",{"2":{"67":1,"153":1,"182":2,"222":7,"223":1,"230":3,"287":2}}],["any=none",{"2":{"34":1,"35":1}}],["any",{"0":{"34":2,"35":2,"70":2,"82":1,"83":1,"84":1,"87":1,"92":1,"104":1,"105":2,"107":1,"108":1,"110":1,"118":1,"119":1,"120":1,"121":1,"123":2,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"133":4,"152":1,"165":2,"166":1,"205":1,"247":1,"261":1,"265":1},"2":{"19":1,"34":3,"35":3,"37":1,"38":1,"40":1,"41":1,"59":1,"60":3,"63":2,"70":7,"73":1,"74":1,"75":1,"78":1,"79":1,"82":1,"83":1,"84":1,"87":1,"92":1,"103":3,"104":1,"105":4,"107":3,"108":1,"109":1,"110":1,"118":1,"119":1,"120":1,"121":1,"123":2,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"133":4,"152":1,"165":2,"166":1,"176":1,"222":7,"224":1,"261":1,"265":1}}],["author",{"0":{"245":1},"2":{"36":1,"131":1,"154":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"186":1,"187":1,"228":1,"232":1,"233":1,"256":1,"258":1}}],["auto",{"2":{"1":2,"2":1}}],["after",{"0":{"28":1,"29":1,"32":1,"47":1,"49":1,"51":1,"53":1,"55":1,"57":1},"2":{"28":2,"29":2,"32":2,"44":3,"47":2,"49":2,"51":2,"53":3,"55":3,"57":3,"268":1}}],["awaitable",{"2":{"38":1,"41":1}}],["await",{"2":{"21":1,"45":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"69":1,"70":2,"109":1,"111":2,"172":2,"181":2,"182":2,"183":1,"268":1,"280":1,"281":1,"283":1}}],["active和",{"2":{"268":1}}],["active和chan",{"2":{"137":1}}],["active=channel",{"2":{"137":1}}],["active=chan",{"2":{"137":1}}],["active",{"0":{"71":1,"74":1,"80":1,"133":2},"2":{"23":6,"71":1,"80":1,"103":2,"108":1,"111":1,"133":6,"137":4,"268":11}}],["activate激活",{"2":{"12":1}}],["activate来激活虚拟环境",{"2":{"12":1}}],["accesstoken",{"2":{"3":1}}],["access",{"2":{"2":1}}],["already",{"2":{"66":2,"76":1}}],["alive",{"0":{"21":1,"141":1},"2":{"21":2,"139":1,"141":2}}],["all",{"0":{"107":1,"121":1,"136":1,"138":1,"140":1},"2":{"20":1,"22":1,"26":1,"36":1,"107":2,"120":1,"121":3,"131":1,"136":1,"138":1,"140":1,"154":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"186":1,"187":1,"228":1,"232":1,"233":1,"256":1,"258":1}}],["allowed",{"0":{"250":1}}],["allow",{"2":{"2":1}}],["alconna提供的命令解析功能",{"2":{"10":1}}],["alconna是否自动补全指令",{"2":{"2":1}}],["alconna",{"2":{"2":1}}],["高级nonebot配置",{"2":{"2":1}}],["以上内容仅用于项目的优化",{"2":{"293":1}}],["以避免出现无法预料的问题",{"2":{"291":1}}],["以避免依赖冲突",{"2":{"12":1}}],["以下我们会编写一个简单的插件",{"2":{"287":1}}],["以下为默认值",{"2":{"2":1}}],["以保证litedoc能够正确解析并生成文档",{"2":{"276":1}}],["以前的最外层配置项仍可为nonebot服务",{"2":{"1":1}}],["period\`",{"2":{"304":1}}],["period>",{"2":{"303":1}}],["period",{"2":{"303":2}}],["poke",{"2":{"281":4}}],["port",{"2":{"1":1}}],["publish=publish",{"2":{"137":1}}],["publish",{"0":{"73":1,"108":1,"133":1},"2":{"73":1,"103":2,"108":2,"111":2,"133":3}}],["page为页数",{"2":{"297":2}}],["page",{"2":{"297":2}}],["pacman",{"0":{"297":1},"1":{"298":1}}],["pack",{"2":{"292":2,"297":3}}],["param",{"2":{"294":1}}],["parts",{"2":{"264":2}}],["parent",{"2":{"222":4}}],["parse",{"2":{"222":1}}],["pass",{"2":{"96":1,"97":1,"98":1}}],["passive=channel",{"2":{"137":1}}],["passive=chan",{"2":{"137":1}}],["passive",{"0":{"72":1,"75":1,"81":1,"133":2},"2":{"72":1,"76":1,"78":1,"79":1,"81":2,"82":2,"83":2,"84":1,"103":2,"104":1,"105":1,"106":1,"107":1,"117":1,"118":2,"119":2,"120":2,"121":1,"133":6,"137":5,"268":13}}],["pathlib",{"2":{"229":1}}],["paths=none",{"2":{"224":1}}],["paths",{"0":{"224":1},"2":{"224":4}}],["path=dot",{"2":{"222":1}}],["path",{"0":{"155":2,"214":1,"219":3,"222":1,"225":1,"229":2,"264":3},"2":{"6":3,"13":1,"15":1,"127":1,"128":2,"155":4,"219":8,"220":3,"221":1,"222":6,"224":22,"225":2,"229":16,"230":26,"264":11,"287":5}}],["profile",{"2":{"299":4}}],["property",{"0":{"193":2},"2":{"222":2}}],["processes",{"2":{"23":1,"135":1,"139":2,"141":1}}],["processmanager",{"0":{"134":1},"1":{"135":1,"136":1,"137":1,"138":1,"139":1,"140":1,"141":1},"2":{"19":2}}],["process",{"0":{"23":1,"30":2,"31":3,"40":1,"41":1,"42":1,"45":1,"48":3,"50":3,"54":1,"56":1,"141":1},"2":{"19":1,"20":1,"22":1,"23":4,"26":1,"30":5,"31":6,"33":2,"42":2,"44":4,"45":2,"48":6,"50":6,"54":2,"56":2,"66":4,"70":3,"76":1,"78":1,"79":1,"104":1,"105":1,"106":1,"107":1,"109":3,"111":2,"135":1,"136":2,"138":2,"139":7,"141":2,"268":8,"287":2}}],["private",{"0":{"222":1},"2":{"222":5}}],["priority",{"0":{"170":1,"175":1,"176":1},"2":{"170":4,"174":2,"175":2,"176":2}}],["print",{"2":{"19":1,"172":1,"224":1,"229":1}}],["pwd",{"2":{"13":3}}],["p",{"2":{"13":1,"304":1}}],["platform",{"2":{"22":3}}],["playwright安装失败",{"2":{"6":1}}],["plugintype",{"0":{"231":1,"234":1,"244":2},"1":{"235":1,"236":1,"237":1,"238":1,"239":1},"2":{"231":5,"286":1}}],["pluginmetadata",{"0":{"240":1,"254":1},"1":{"241":1,"242":1,"243":1,"244":1,"245":1,"246":1,"247":1},"2":{"229":4,"286":2}}],["plugin的函数签名",{"2":{"155":1}}],["plugin进行通信",{"2":{"8":1}}],["plugin",{"0":{"154":1,"226":1,"227":1,"228":1,"229":2,"230":2,"231":1,"232":1,"233":1,"248":1,"258":1},"1":{"155":1,"227":1,"229":1,"230":1,"231":1,"234":1,"235":1,"236":1,"237":1,"238":1,"239":1,"240":1,"241":1,"242":1,"243":1,"244":1,"245":1,"246":1,"247":1,"248":1,"249":2,"250":2,"251":2,"252":2,"253":2,"254":2,"259":1},"2":{"1":1,"10":1,"19":2,"154":1,"227":2,"229":14,"230":5,"231":4,"255":1,"259":6,"286":4,"289":1,"290":2,"297":5}}],["plugins下创建一个文件",{"2":{"290":1}}],["plugins中添加你的插件路径",{"2":{"289":1}}],["plugins目录下为插件目录",{"2":{"275":1}}],["plugins和nonebot",{"2":{"275":1}}],["plugins",{"0":{"155":1,"227":1,"230":1,"255":1,"256":1,"258":1,"259":1},"1":{"257":1,"259":1},"2":{"1":1,"19":1,"155":6,"227":2,"229":3,"230":9,"255":1,"259":4,"275":2,"287":1,"290":2}}],["py即可启动插件",{"2":{"290":1}}],["pyo",{"2":{"287":1}}],["pycache",{"2":{"287":1}}],["pyc",{"2":{"287":1}}],["pycharm",{"2":{"36":1,"131":1,"154":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"186":1,"187":1,"228":1,"232":1,"233":1,"256":1,"258":1}}],["py文件",{"2":{"286":1}}],["py文件或一个包含",{"2":{"286":1}}],["py的文件夹即可被识别为插件",{"2":{"286":1}}],["pyfile",{"0":{"225":1},"2":{"224":8,"225":1}}],["pyi",{"2":{"221":1,"222":1}}],["py",{"2":{"12":1,"36":1,"131":1,"154":1,"160":1,"163":1,"167":2,"168":1,"173":1,"177":1,"186":1,"187":1,"221":1,"222":1,"224":1,"228":1,"230":3,"232":1,"233":1,"256":1,"258":2,"271":1,"275":1,"286":1,"287":1,"290":2,"292":1}}],["py来启动bot",{"2":{"6":1}}],["python格式",{"2":{"279":1}}],["pythonfrom",{"2":{"268":1,"271":1,"286":1,"290":1}}],["pythonimport",{"2":{"268":1,"287":1}}],["pythonasync",{"2":{"21":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"69":1,"111":1,"172":1,"183":1}}],["pythondef",{"2":{"19":1,"20":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"44":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"66":1,"67":1,"68":1,"70":1,"76":1,"77":1,"78":1,"79":1,"87":1,"91":1,"92":1,"95":1,"96":1,"97":1,"98":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"123":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"133":1,"135":1,"136":1,"137":1,"138":1,"139":1,"140":1,"141":1,"146":1,"149":1,"150":1,"151":1,"152":1,"153":1,"155":1,"161":1,"162":1,"165":1,"166":1,"170":1,"171":1,"174":1,"175":1,"176":1,"180":1,"181":1,"182":1,"219":1,"220":1,"221":1,"222":1,"223":1,"224":1,"227":1,"229":1,"230":1,"231":1,"249":1,"259":1,"261":1,"262":1,"263":1,"264":1,"265":1}}],["python为你的python可执行文件路径",{"2":{"15":1}}],["python3",{"2":{"12":1}}],["python是你要用来运行bot的可执行文件",{"2":{"6":1}}],["python",{"2":{"6":2,"12":1,"15":1,"45":1,"82":1,"83":1,"84":1,"110":1,"113":1,"118":1,"119":1,"120":1,"121":1,"148":1,"184":1,"185":1,"222":1,"257":1,"276":1}}],["pipe",{"2":{"66":2}}],["pip",{"2":{"6":1,"12":1,"15":1,"229":1}}],["pip和python不对应怎么办",{"2":{"6":1}}],["utils",{"0":{"260":1},"1":{"261":1,"262":1,"263":1,"264":1,"265":1},"2":{"275":1}}],["utf",{"2":{"124":1,"125":1,"126":1,"220":1,"222":1}}],["usage",{"0":{"243":1}}],["user",{"0":{"165":1,"299":1},"2":{"165":3,"166":2,"185":1,"281":3}}],["used",{"2":{"70":1,"255":1}}],["use",{"2":{"1":1,"35":1,"229":1}}],["unload",{"2":{"297":1,"298":1}}],["uninstall",{"2":{"297":1,"298":1}}],["uninstall卸载问题插件",{"2":{"6":1}}],["until",{"2":{"262":2}}],["unclassified",{"0":{"238":2,"244":1}}],["unparse",{"2":{"222":10}}],["unsupported",{"2":{"127":1}}],["update",{"2":{"1":1,"2":1,"127":3,"128":1,"129":1,"295":1,"296":1,"297":1,"298":1}}],["某些控制台字体不可用",{"2":{"1":1}}],["tests",{"2":{"275":1}}],["test",{"0":{"239":2},"2":{"231":1}}],["text",{"2":{"223":3}}],["terminated",{"2":{"139":1}}],["terminate",{"0":{"139":1,"140":1},"2":{"22":1,"26":1,"139":2,"140":2}}],["the",{"2":{"158":1,"229":1,"255":1}}],["this",{"2":{"158":1,"255":1}}],["thread",{"0":{"263":1},"2":{"22":1,"136":1,"263":2}}],["threading",{"0":{"115":1},"2":{"19":1,"22":1,"136":1,"263":1}}],["types",{"0":{"250":1}}],["type=plugintype",{"2":{"286":1}}],["type=attr",{"2":{"222":1}}],["type=ast",{"2":{"222":3}}],["type=def",{"2":{"222":1}}],["type=deftype",{"2":{"222":1}}],["type=self",{"2":{"166":2}}],["typeerror",{"2":{"66":1,"67":1,"76":1}}],["type",{"0":{"66":1,"165":2,"197":1,"200":1,"204":1,"231":1,"244":1},"2":{"66":11,"67":7,"76":1,"165":6,"166":2,"222":11,"223":13,"229":2,"231":4,"276":1}}],["typealias",{"2":{"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"144":1,"145":1,"178":1}}],["target",{"0":{"137":3,"219":1},"2":{"137":5,"219":3,"222":5}}],["target=run",{"2":{"263":1}}],["target=self",{"2":{"136":1}}],["target=os",{"2":{"22":1}}],["targets",{"2":{"135":1,"136":1,"137":1,"138":1,"140":1,"141":1,"222":2}}],["task",{"2":{"110":1,"136":1}}],["tasks",{"2":{"45":2}}],["tuple=",{"2":{"137":1}}],["tuplestr",{"2":{"35":1}}],["tuple",{"0":{"35":1,"82":1,"83":1,"84":1,"92":1,"118":1,"119":1,"120":1,"121":1,"133":2,"137":1,"153":1,"196":1},"2":{"35":1,"73":1,"75":1,"82":1,"83":1,"84":1,"92":1,"103":3,"118":1,"119":1,"120":1,"121":1,"133":2,"135":2,"153":1}}],["title",{"2":{"224":2}}],["time>",{"2":{"280":1}}],["timeout",{"2":{"139":1}}],["time",{"2":{"22":1,"36":1,"131":1,"146":9,"154":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"186":1,"187":1,"228":1,"232":1,"233":1,"256":1,"258":1}}],["tip",{"2":{"12":1,"13":1,"283":1,"292":1,"294":1}}],["t",{"0":{"65":1,"67":1,"68":1,"69":1,"70":2},"1":{"66":1,"67":1,"68":1,"69":1,"70":1},"2":{"13":1,"33":1,"59":1,"60":1,"62":1,"63":1,"67":2,"68":2,"69":2,"70":7}}],["txt",{"2":{"12":1}}],["txt来安装依赖",{"2":{"6":1,"15":1}}],["tree",{"2":{"222":3}}],["traceback",{"2":{"172":1,"229":1}}],["try",{"2":{"20":1,"21":1,"106":1,"172":1,"229":1,"262":1}}],["trss",{"2":{"8":1,"14":1}}],["true时例如docs",{"2":{"224":1}}],["true下启动轻雪",{"2":{"6":1}}],["true",{"0":{"106":1,"153":1,"222":1,"230":1,"250":1},"2":{"1":3,"2":1,"68":1,"111":1,"162":1,"183":1,"184":1,"224":1,"268":2,"274":1}}],["tokyo",{"2":{"301":1}}],["token",{"2":{"2":1}}],["top",{"0":{"224":1},"2":{"224":3}}],["toml",{"0":{"126":1},"2":{"126":4,"127":2,"129":1}}],["toml和config目录下的所有配置文件",{"2":{"0":1}}],["to",{"0":{"220":1,"264":1},"2":{"6":3,"13":1,"15":2,"22":1,"23":1,"34":1,"35":1,"67":1,"70":1,"220":1,"224":1,"229":5,"230":2,"255":1,"264":2}}],["image",{"2":{"295":2,"296":1}}],["implemented",{"2":{"148":1}}],["import",{"2":{"117":1,"229":1,"268":5,"271":1,"286":2,"287":3,"290":1}}],["iter",{"2":{"222":2}}],["items",{"2":{"77":1,"123":2,"220":1,"223":1,"224":1}}],["i",{"2":{"174":2,"268":6}}],["ignored",{"0":{"224":1},"2":{"224":7}}],["ignore",{"0":{"106":1,"222":1,"230":1},"2":{"106":3,"222":5,"224":1,"230":5}}],["id仅超级用户可用",{"2":{"295":1}}],["id=user",{"2":{"281":2}}],["id=1234567",{"2":{"295":2}}],["id=123456",{"2":{"281":1}}],["id=self",{"2":{"166":3}}],["id",{"0":{"165":3},"2":{"70":5,"165":9,"166":3,"185":1,"222":6,"281":2,"295":2,"297":1,"303":4}}],["ids",{"2":{"66":2,"70":2}}],["if",{"2":{"22":2,"23":1,"33":2,"35":2,"45":1,"66":5,"67":3,"68":1,"70":6,"76":3,"78":1,"79":1,"104":1,"105":1,"106":3,"107":1,"109":5,"111":2,"113":2,"123":1,"124":1,"125":1,"126":1,"127":2,"128":3,"137":1,"139":2,"141":1,"146":1,"153":1,"161":1,"162":5,"165":1,"166":1,"172":1,"174":1,"183":1,"220":1,"221":1,"222":20,"223":10,"224":4,"229":2,"230":9,"261":2,"262":1,"264":1}}],["isclass",{"2":{"261":1}}],["iscoroutinefunction",{"2":{"261":2}}],["isroutine",{"2":{"261":1}}],["isfile",{"2":{"230":1,"287":1}}],["isdir",{"2":{"230":2}}],["isinstance",{"2":{"76":1,"123":1,"222":13,"229":1,"268":1}}],["is",{"0":{"141":1,"185":1,"201":1,"261":1},"2":{"19":1,"20":2,"21":3,"23":1,"33":2,"45":1,"66":6,"67":1,"70":5,"76":1,"78":1,"79":1,"103":2,"104":1,"105":1,"106":1,"107":1,"109":3,"111":1,"113":2,"124":1,"125":1,"126":1,"137":1,"139":1,"141":2,"153":1,"158":1,"165":1,"183":1,"185":1,"222":2,"223":2,"224":1,"229":1,"230":2,"255":1,"261":1,"262":1}}],["icu",{"2":{"12":1}}],["icon=f",{"2":{"162":5}}],["icon",{"2":{"1":1,"162":7,"223":1,"224":2}}],["index",{"2":{"223":1,"224":1,"292":1}}],["inherit=",{"2":{"222":1}}],["inherit",{"0":{"212":1},"2":{"223":5}}],["inspect",{"2":{"261":4,"265":1}}],["insert",{"2":{"174":1}}],["instead",{"2":{"35":1}}],["instance",{"0":{"113":1,"114":1},"2":{"19":2,"33":4,"67":1,"76":1,"113":5,"116":1}}],["install安装浏览器",{"2":{"6":1}}],["install",{"2":{"6":1,"12":1,"15":1,"294":1,"297":1,"298":1}}],["inner",{"2":{"66":2}}],["in",{"0":{"129":1,"263":1},"2":{"23":1,"33":1,"35":3,"45":1,"66":5,"69":1,"70":1,"76":1,"77":1,"106":1,"109":3,"110":1,"111":1,"123":2,"127":1,"128":2,"129":1,"136":1,"138":1,"139":1,"140":1,"141":1,"153":1,"155":1,"172":1,"174":1,"176":2,"185":1,"220":1,"221":2,"222":13,"223":9,"224":5,"230":2,"255":2,"259":2,"262":2,"263":1,"287":1}}],["int=0",{"2":{"22":1,"175":1,"176":1}}],["int",{"0":{"22":1,"170":1,"175":1,"176":1},"2":{"22":1,"44":1,"66":2,"170":1}}],["initialized",{"2":{"33":1,"66":2}}],["initializing",{"2":{"19":1}}],["init",{"0":{"19":1,"24":1,"25":1,"44":1,"66":1,"87":1,"91":1,"95":1,"103":1,"133":1,"135":1,"162":1,"165":1,"170":1,"180":1},"2":{"19":2,"24":2,"25":2,"44":1,"66":1,"87":1,"91":1,"95":1,"103":1,"133":1,"135":1,"162":1,"165":1,"167":1,"170":1,"180":1,"222":1,"224":2,"230":2,"258":1,"264":1,"286":3}}],["info",{"0":{"222":1,"223":1},"2":{"1":1,"19":1,"20":2,"21":2,"22":1,"162":3,"222":12,"223":5,"224":5,"268":2}}],["日志等级",{"2":{"1":1}}],["lyf结尾",{"2":{"279":1}}],["lyfunction语法",{"2":{"295":1}}],["lyfunction",{"2":{"279":1}}],["lt",{"2":{"276":2,"294":1,"295":7,"297":10,"299":2}}],["locks",{"2":{"106":1}}],["lock",{"0":{"115":2},"2":{"104":3,"105":3,"106":3,"113":1}}],["loaded",{"0":{"227":1},"2":{"227":1}}],["loader",{"0":{"258":1,"259":1},"1":{"259":1},"2":{"19":1,"259":1}}],["loading",{"2":{"124":1,"125":1,"126":1}}],["load",{"0":{"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"228":1,"229":1,"230":1},"1":{"229":1,"230":1,"231":1},"2":{"19":1,"124":3,"125":3,"126":3,"127":4,"128":2,"129":3,"155":2,"228":1,"229":3,"230":2,"259":2,"297":1,"298":1}}],["loop",{"0":{"111":1},"2":{"19":4,"66":1,"69":3,"103":2,"111":2,"262":10}}],["log0000",{"2":{"268":1}}],["logger",{"0":{"25":1},"2":{"19":1,"20":2,"21":2,"22":1,"24":1,"25":1,"35":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"66":2,"124":1,"125":1,"126":1,"127":2,"128":1,"136":1,"139":2,"141":1,"162":7,"229":3,"230":3,"262":1,"268":3,"287":2}}],["logo",{"2":{"19":1}}],["log",{"0":{"160":1,"162":1},"1":{"161":1,"162":1},"2":{"1":2,"25":1,"160":1,"162":3,"268":1}}],["liteecho",{"0":{"256":1,"257":1},"1":{"257":1},"2":{"256":2,"257":2,"295":1}}],["liteyuki框架是包含在liteyukibot应用中的",{"2":{"275":1}}],["liteyukiexception",{"0":{"157":1}}],["liteyuki轻雪机器人管理脚本",{"2":{"14":1}}],["liteyukibot代替$",{"2":{"13":1}}],["liteyukibot",{"0":{"18":1,"33":1},"1":{"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1},"2":{"12":3,"13":5,"22":1,"33":2,"155":1,"275":1}}],["liteyukistudio",{"2":{"12":2,"13":1,"36":1,"131":1,"154":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"186":1,"187":1,"228":1,"232":1,"233":1,"256":1,"258":1}}],["liteyuki",{"0":{"17":1,"36":1,"58":1,"85":1,"88":1,"89":1,"93":1,"99":1,"122":1,"130":1,"131":1,"142":1,"143":1,"154":1,"156":1,"158":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"186":1,"187":1,"226":1,"228":1,"232":1,"233":1,"255":1,"256":1,"258":1,"260":1,"297":1},"1":{"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"65":1,"66":1,"67":1,"68":1,"69":1,"70":1,"71":1,"72":1,"73":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"81":1,"82":1,"83":1,"84":1,"86":1,"87":1,"90":1,"91":1,"92":1,"94":1,"95":1,"96":1,"97":1,"98":1,"100":1,"101":1,"102":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"123":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"132":1,"133":1,"134":1,"135":1,"136":1,"137":1,"138":1,"139":1,"140":1,"141":1,"144":1,"145":1,"146":1,"147":1,"148":1,"149":1,"150":1,"151":1,"152":1,"153":1,"155":1,"157":1,"159":1,"161":1,"162":1,"164":1,"165":1,"166":1,"169":1,"170":1,"171":1,"172":1,"174":1,"175":1,"176":1,"178":1,"179":1,"180":1,"181":1,"182":1,"183":1,"184":1,"185":1,"188":1,"189":1,"190":1,"191":1,"192":1,"193":1,"194":1,"195":1,"196":1,"197":1,"198":1,"199":1,"200":1,"201":1,"202":1,"203":1,"204":1,"205":1,"206":1,"207":1,"208":1,"209":1,"210":1,"211":1,"212":1,"213":1,"214":1,"215":1,"216":1,"217":1,"218":1,"219":1,"220":1,"221":1,"222":1,"223":1,"224":1,"225":1,"227":1,"229":1,"230":1,"231":1,"234":1,"235":1,"236":1,"237":1,"238":1,"239":1,"240":1,"241":1,"242":1,"243":1,"244":1,"245":1,"246":1,"247":1,"248":1,"249":1,"250":1,"251":1,"252":1,"253":1,"254":1,"257":1,"259":1,"261":1,"262":1,"263":1,"264":1,"265":1,"298":1},"2":{"1":2,"2":1,"12":1,"19":2,"21":2,"33":1,"155":2,"158":1,"229":5,"259":3,"268":12,"271":2,"275":3,"278":1,"286":1,"287":4,"290":1,"291":1,"295":4,"296":3}}],["listdir",{"2":{"128":1,"230":2}}],["list",{"0":{"165":1,"176":1,"196":1,"210":1,"211":1,"212":1,"215":1,"216":1,"217":1,"221":1},"2":{"44":6,"66":2,"100":1,"101":1,"165":1,"170":1,"174":3,"176":1,"221":4,"222":4,"224":3,"295":1,"297":2,"298":1}}],["life",{"2":{"44":1}}],["lifespan=self",{"2":{"19":1}}],["lifespan",{"0":{"27":2,"28":1,"29":1,"30":1,"31":2,"32":1,"36":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"45":2,"46":2,"47":2,"48":2,"49":2,"50":2,"51":2,"135":2},"1":{"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":2,"45":2,"46":2,"47":2,"48":2,"49":2,"50":2,"51":2,"52":2,"53":2,"54":2,"55":2,"56":2,"57":2},"2":{"19":3,"27":5,"28":4,"29":4,"30":4,"31":5,"32":4,"36":1,"39":2,"42":2,"44":6,"45":4,"46":4,"47":4,"48":4,"49":4,"50":4,"51":4,"135":4}}],["linux系统要支持python3",{"2":{"15":1}}],["linux",{"2":{"14":1,"22":1}}],["linux下使用source",{"2":{"12":1}}],["llonebot",{"2":{"8":1}}],["laptop",{"2":{"224":2}}],["lang",{"0":{"223":1,"224":1},"2":{"223":3,"224":2}}],["language",{"2":{"2":1}}],["last",{"2":{"146":4}}],["lambda",{"2":{"117":1,"118":2,"119":2,"120":2,"121":1}}],["lagrange",{"2":{"8":1}}],["level=0",{"2":{"162":1}}],["level",{"0":{"161":1},"2":{"1":1,"161":2,"162":6}}],["写在外层的配置项将会被覆盖",{"2":{"1":1}}],["switch",{"2":{"295":2,"296":1}}],["simple",{"2":{"286":1}}],["signature",{"2":{"265":2}}],["src目录下为应用程序部分",{"2":{"275":1}}],["src",{"2":{"259":1,"275":1,"287":5}}],["sparkles",{"2":{"276":2}}],["specified",{"2":{"229":1}}],["split",{"2":{"229":4}}],["schedule",{"2":{"153":1}}],["scripts部署",{"0":{"14":1}}],["scripts",{"2":{"12":1}}],["source",{"0":{"199":1},"2":{"222":2,"223":6}}],["sockschannel",{"0":{"94":1},"1":{"95":1,"96":1,"97":1,"98":1}}],["socks",{"0":{"93":1},"1":{"94":1,"95":1,"96":1,"97":1,"98":1}}],["software",{"2":{"36":1,"131":1,"154":1,"160":1,"163":1,"167":1,"168":1,"173":1,"177":1,"186":1,"187":1,"228":1,"232":1,"233":1,"256":1,"258":1}}],["shinjuku",{"2":{"301":1}}],["shellstatistic",{"2":{"303":1}}],["shellbind",{"2":{"301":1}}],["shellweather",{"2":{"301":1}}],["shellmain",{"2":{"292":1}}],["shellvar",{"2":{"280":1}}],["shellcmd",{"2":{"279":1}}],["shell",{"2":{"279":1,"281":1}}],["shutil",{"2":{"224":1}}],["shutdown",{"0":{"29":1,"30":1,"48":1,"49":1,"54":1,"55":1},"2":{"29":2,"30":2,"44":2,"48":2,"49":2,"54":3,"55":3}}],["show",{"2":{"162":6}}],["should",{"2":{"66":1}}],["shared",{"0":{"116":1},"2":{"103":3,"117":1,"118":3,"119":3,"120":3,"121":2,"137":1,"271":3}}],["sync",{"0":{"37":1,"40":1,"59":1,"62":1},"2":{"39":1,"42":1,"61":1,"64":1,"265":1}}],["system",{"0":{"153":1},"2":{"22":4,"153":1,"287":2}}],["sys",{"2":{"22":3,"162":1}}],["snowykami",{"2":{"36":2,"131":2,"154":2,"160":2,"163":2,"167":2,"168":2,"173":2,"177":2,"186":2,"187":2,"228":2,"232":2,"233":2,"256":2,"258":2}}],["succeeded",{"2":{"229":1}}],["success",{"2":{"139":1,"162":2,"229":2}}],["summary>",{"2":{"223":3}}],["summary>源代码",{"2":{"223":1}}],["su",{"0":{"185":1},"2":{"185":1,"256":1,"257":1}}],["supported",{"2":{"128":1}}],["superusers",{"2":{"1":1,"185":1}}],["subscribe",{"2":{"109":1}}],["subscriber",{"0":{"100":1,"101":1,"109":1,"110":1},"2":{"109":7,"110":2,"111":1}}],["sub",{"0":{"101":1},"2":{"33":1,"66":2,"70":1,"103":1,"109":4,"111":1}}],["sleep",{"2":{"21":1,"22":1,"268":1,"280":1,"281":1}}],["style",{"2":{"276":1,"292":2}}],["stem",{"2":{"264":2}}],["stdout",{"2":{"162":1}}],["store",{"2":{"103":1,"104":1,"105":1,"106":2,"107":1,"255":1}}],["storage",{"0":{"99":1},"1":{"100":1,"101":1,"102":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1},"2":{"88":2,"271":2}}],["stopped",{"2":{"20":1}}],["stopping",{"2":{"20":1}}],["stop",{"0":{"26":1},"2":{"19":1,"20":1,"21":2,"26":2}}],["stat",{"2":{"304":1}}],["statistic",{"2":{"304":1}}],["statistics",{"0":{"303":1},"1":{"304":1}}],["static",{"0":{"191":1},"2":{"222":1}}],["staticmethod",{"0":{"191":1},"2":{"44":1,"45":1,"109":1,"110":1,"222":1}}],["status",{"2":{"295":1,"296":1}}],["startup",{"2":{"268":2}}],["startswith",{"2":{"222":3,"256":1,"257":1}}],["starting",{"2":{"136":1}}],["start或superusers",{"2":{"6":1}}],["start保证alconna解析正常",{"2":{"1":1}}],["start",{"0":{"27":1,"28":1,"46":1,"47":1,"52":1,"53":1,"111":1,"136":1},"2":{"1":1,"20":1,"22":2,"27":2,"28":2,"44":2,"46":2,"47":2,"52":3,"53":3,"111":2,"136":2,"263":1,"268":1}}],["strip",{"2":{"257":2}}],["str=",{"2":{"223":1,"224":1}}],["structure",{"2":{"67":1}}],["str",{"0":{"23":1,"34":1,"35":2,"66":1,"76":1,"77":1,"78":1,"79":1,"82":2,"83":2,"84":2,"87":2,"95":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"118":2,"119":2,"120":2,"121":2,"123":2,"124":2,"125":2,"126":2,"127":2,"128":2,"129":1,"133":2,"137":1,"139":1,"141":1,"153":1,"155":1,"161":2,"165":9,"166":2,"176":1,"195":1,"196":2,"197":1,"198":1,"199":1,"203":1,"204":1,"206":1,"208":1,"209":1,"212":1,"214":1,"218":1,"219":3,"220":2,"221":1,"222":1,"223":2,"224":3,"227":1,"229":1,"230":1,"231":2,"241":1,"242":1,"243":1,"245":1,"246":1,"247":1,"251":1,"253":1,"264":1},"2":{"19":1,"23":2,"34":2,"35":3,"40":1,"41":1,"66":2,"73":2,"75":2,"76":2,"77":2,"78":2,"79":3,"82":2,"83":2,"84":2,"87":2,"95":1,"100":1,"101":1,"103":5,"104":1,"105":1,"106":1,"107":3,"108":1,"109":1,"110":1,"118":2,"119":2,"120":2,"121":2,"123":2,"124":2,"125":2,"126":2,"127":2,"128":2,"129":1,"133":2,"135":2,"137":1,"139":1,"141":1,"153":1,"155":1,"161":2,"165":9,"166":2,"176":1,"185":1,"219":3,"220":2,"221":1,"222":1,"223":1,"224":4,"227":2,"229":1,"230":1,"231":3,"264":2,"268":1}}],["search",{"2":{"297":1,"298":1}}],["service",{"0":{"236":2},"2":{"231":1,"286":1}}],["server",{"2":{"15":1}}],["sep",{"2":{"222":3}}],["session",{"0":{"165":2,"186":1},"2":{"165":6,"166":5,"186":1}}],["sequence",{"0":{"45":1},"2":{"45":2}}],["send",{"0":{"67":1,"96":1},"2":{"23":2,"66":2,"67":4,"76":1,"78":1,"79":1,"83":1,"84":1,"95":1,"96":1,"104":1,"105":1,"106":1,"107":1,"108":1,"111":1,"118":1,"121":1,"166":1,"268":3,"295":1}}],["set",{"0":{"76":1,"77":1,"82":1,"104":1,"119":1,"230":1},"2":{"19":1,"21":1,"26":1,"66":1,"76":2,"77":2,"81":1,"82":3,"104":2,"118":1,"119":3,"230":2,"262":1,"271":1,"295":2,"296":1,"299":2}}],["self",{"0":{"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"44":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"66":1,"67":1,"68":1,"69":1,"70":1,"87":1,"91":1,"92":1,"95":1,"96":1,"97":1,"98":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"111":1,"133":1,"135":1,"136":1,"137":1,"138":1,"139":1,"140":1,"141":1,"148":1,"149":1,"150":1,"151":1,"152":1,"165":1,"166":1,"170":1,"171":1,"172":1,"180":1,"181":1,"182":1,"183":1,"249":1},"2":{"19":11,"20":4,"21":3,"22":4,"23":2,"24":2,"25":1,"26":3,"27":2,"28":2,"29":2,"30":2,"31":2,"32":2,"44":8,"46":2,"47":2,"48":2,"49":2,"50":2,"51":2,"52":3,"53":3,"54":3,"55":3,"56":3,"57":3,"66":14,"67":6,"68":3,"69":2,"70":3,"87":3,"91":2,"92":2,"95":5,"96":1,"97":1,"98":1,"103":7,"104":3,"105":3,"106":4,"107":3,"108":2,"109":1,"111":4,"133":6,"135":4,"136":2,"137":2,"138":2,"139":3,"140":3,"141":3,"148":1,"149":2,"150":2,"151":2,"152":2,"165":10,"166":3,"170":5,"171":2,"172":3,"180":2,"181":2,"182":2,"183":3,"222":1,"223":1,"249":2}}],["safe",{"2":{"2":1,"124":1}}],["num为每页显示数量",{"2":{"297":2}}],["num",{"2":{"297":2}}],["npm",{"2":{"297":7,"298":1}}],["nliteyuki",{"2":{"279":1}}],["n\`\`\`",{"2":{"223":2}}],["n\`\`\`python",{"2":{"223":2}}],["n",{"2":{"223":52,"224":2}}],["name>",{"2":{"280":2}}],["name=module",{"2":{"229":3}}],["name=target",{"2":{"222":2}}],["name=class",{"2":{"222":1}}],["name=node",{"2":{"222":2}}],["name=f",{"2":{"137":2}}],["name=",{"2":{"71":1,"72":1,"73":1,"80":1,"81":1,"103":3,"286":1}}],["name",{"0":{"23":1,"66":1,"76":1,"78":1,"87":1,"95":1,"137":1,"139":1,"141":1,"195":1,"203":1,"208":1,"225":1,"231":2,"241":1,"251":1,"253":1,"264":1},"2":{"23":6,"66":11,"76":7,"77":2,"78":5,"82":3,"83":3,"87":3,"95":4,"136":3,"137":5,"138":1,"139":6,"140":2,"141":5,"222":11,"223":7,"224":2,"229":20,"230":9,"231":6,"249":1,"264":1,"268":2,"295":4,"297":8}}],["new",{"2":{"19":1,"123":3,"262":1}}],["nodes",{"2":{"222":2}}],["node",{"2":{"222":42}}],["node等进程",{"2":{"15":1}}],["normal",{"0":{"222":1},"2":{"222":1,"224":1}}],["normal>",{"2":{"162":1}}],["nonlocal",{"2":{"146":1}}],["nonedog",{"2":{"286":1}}],["none",{"0":{"19":1,"23":1,"34":1,"35":1,"44":1,"45":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"66":1,"70":1,"91":1,"104":1,"105":1,"106":1,"108":1,"114":1,"137":1,"153":1,"165":2,"172":1,"205":1,"223":1,"224":1,"254":1},"2":{"19":1,"23":2,"33":1,"34":1,"35":1,"44":1,"45":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"66":3,"67":1,"69":1,"70":2,"91":1,"95":2,"104":1,"106":1,"108":1,"113":2,"124":1,"125":1,"126":1,"137":1,"144":1,"146":1,"153":1,"165":1,"172":1,"178":2,"183":1,"222":3,"224":1,"229":4,"230":1,"261":1}}],["nonebot插件目录",{"2":{"275":1}}],["nonebot2提供的框架支持",{"2":{"10":1}}],["nonebot",{"2":{"2":1,"10":1,"260":1,"268":3,"275":1,"286":1,"287":4,"290":1}}],["nonebot机器人的配置",{"2":{"1":1}}],["no",{"0":{"127":1,"128":1,"129":1,"195":1,"196":1,"197":1,"198":1,"200":1,"201":1,"203":1,"204":1,"208":1,"209":1,"210":1,"211":1,"212":1,"214":1,"215":1,"216":1,"217":1,"218":1,"225":1,"241":1,"251":1,"252":1,"253":1},"2":{"74":1,"75":1,"127":3,"128":3,"129":3,"222":3,"223":1,"224":2}}],["nohup",{"2":{"22":2,"280":1,"281":1}}],["notimplementederror",{"2":{"148":1}}],["not",{"2":{"21":1,"23":1,"33":1,"66":1,"67":2,"70":4,"76":1,"106":1,"109":3,"111":1,"124":1,"125":1,"126":1,"127":3,"128":3,"139":2,"141":2,"153":2,"172":1,"220":1,"222":8,"229":1,"230":8,"287":2}}],["ntqq的onebot插件",{"2":{"8":1}}],["nickname",{"2":{"1":1}}],["若不存在则返回空",{"2":{"295":1}}],["若不存在则创建于config",{"2":{"295":1}}],["若存在则返回",{"2":{"295":1}}],["若存在则覆盖",{"2":{"295":1}}],["若存在则会覆盖",{"2":{"295":1}}],["若要戳20s后停止",{"2":{"281":1}}],["若要接收外部请求请填写0",{"2":{"1":1}}],["若函数中启动了其他task",{"2":{"280":1}}],["若有面向普通用户部分",{"2":{"276":1}}],["若有子进程订阅则推送给子进程",{"2":{"111":1}}],["若有困难请联系对应开发者而不是liteyuki的开发者",{"2":{"9":1}}],["若为空",{"2":{"66":1}}],["若你不希望提供这些信息",{"2":{"293":1}}],["若你不能访问github",{"2":{"12":1}}],["若你修改了端口号请将20216",{"2":{"13":1}}],["若没有metadata",{"2":{"292":1}}],["若没有",{"2":{"1":1}}],["14s",{"2":{"303":2}}],["1h",{"2":{"303":2}}],["1d",{"2":{"303":2}}],["1145141919810",{"2":{"295":1}}],["11",{"2":{"258":1}}],["19",{"2":{"163":1,"167":1,"168":1,"173":1,"177":1,"186":1,"187":1}}],["1919810",{"2":{"1":1}}],["10",{"2":{"159":1,"295":1}}],["10+",{"2":{"12":1,"15":1}}],["18",{"2":{"154":1}}],["12",{"2":{"131":1,"160":1}}],["127",{"2":{"1":1,"3":1}}],["1",{"2":{"1":1,"2":1,"3":2,"21":1,"22":2,"23":2,"70":1,"82":2,"83":2,"84":1,"111":2,"118":3,"119":2,"120":1,"121":1,"123":1,"147":1,"148":1,"223":6,"224":1,"229":4,"264":2,"286":1,"292":2}}],["03",{"2":{"268":2}}],["0000",{"2":{"268":3}}],["00",{"2":{"268":18}}],["02",{"2":{"233":1,"258":1}}],["04",{"2":{"154":1}}],["04+",{"2":{"15":1}}],["0",{"0":{"22":1,"175":1,"176":1},"2":{"1":5,"3":4,"19":1,"21":1,"22":2,"44":1,"81":1,"82":2,"83":2,"84":1,"111":1,"117":2,"118":2,"119":2,"120":2,"121":1,"170":1,"222":1,"223":7,"281":1,"286":2,"292":2}}],["请注意",{"2":{"291":1}}],["请确保您所编写的html代码能被bot解析",{"2":{"291":1}}],["请确保用户文档是通俗易懂的",{"2":{"276":1}}],["请确保文档内的链接是正确的",{"2":{"276":1}}],["请确保文档是完善的",{"2":{"276":1}}],["请确保注释风格为google",{"2":{"276":1}}],["请确保代码的类型提示是正确的",{"2":{"276":1}}],["请确保代码是可运行的",{"2":{"276":1}}],["请确保你了解markdown语法和基本前端知识",{"2":{"273":1}}],["请遵循以下规范",{"2":{"276":1}}],["请阅读插件主页的说明",{"2":{"298":1}}],["请阅读插件开发文档和api",{"2":{"273":1}}],["请阅读以下内容",{"2":{"273":1}}],["请不要将需要动态加载的内容写入配置文件",{"2":{"122":1}}],["请联系插件作者或在安全模式safe",{"2":{"6":1}}],["请先查阅插件文档",{"2":{"6":1}}],["请正确安装git",{"2":{"6":1}}],["请检查配置文件的command",{"2":{"6":1}}],["请使用path",{"2":{"15":1}}],["请使用",{"2":{"6":1}}],["请在此填写相同的值",{"2":{"3":1}}],["请开启alconna",{"2":{"1":1}}],["请尽快迁移",{"2":{"1":1}}],["空命令头",{"2":{"1":1}}],["指令前缀",{"2":{"1":1}}],["轻雪天气liteyuki",{"0":{"301":1},"1":{"302":1}}],["轻雪文档",{"2":{"296":1}}],["轻雪命令liteyuki",{"0":{"295":1},"1":{"296":1}}],["轻雪会收集以下内容",{"2":{"293":1}}],["轻雪会自动合并这些配置文件",{"2":{"0":1}}],["轻雪原版资源包请查看liteyukibot",{"2":{"291":1}}],["轻雪主进程不涉及聊天部分",{"2":{"287":1}}],["轻雪函数",{"0":{"278":1},"1":{"279":1,"280":1,"281":1,"282":1,"283":1},"2":{"278":1}}],["轻雪框架提供了一个内存共享通信的接口",{"2":{"270":1}}],["轻雪提供了一个通道channel用于跨进程通信",{"2":{"267":1}}],["轻雪运行在主进程",{"2":{"267":1}}],["轻雪抽象消息事件",{"2":{"165":1}}],["轻雪生命周期管理",{"2":{"44":1}}],["轻雪实例",{"2":{"33":1}}],["轻雪的更新功能依赖git",{"2":{"15":1}}],["轻雪使用git进行版本管理",{"2":{"12":1}}],["轻雪不局限于onebot适配器",{"2":{"4":1}}],["轻雪调试",{"2":{"2":1}}],["轻雪插件是轻雪内置的一部分功能",{"2":{"284":1}}],["轻雪插件目录",{"2":{"275":1}}],["轻雪插件目录列表",{"2":{"1":1}}],["轻雪插件列表",{"2":{"1":1}}],["轻雪支持yaml",{"2":{"0":1}}],["y",{"2":{"231":1}}],["your",{"2":{"229":2}}],["yellow>",{"2":{"162":1}}],["y>",{"2":{"20":2}}],["y>liteyuki",{"2":{"20":2}}],["yunzai",{"2":{"8":1}}],["yamlweather",{"2":{"301":1}}],["yamlname",{"2":{"292":1}}],["yamlnonebot",{"2":{"1":1}}],["yaml",{"0":{"124":1},"2":{"0":1,"2":1,"124":4,"127":2,"129":1}}],["yml格式的所有合法内容",{"2":{"295":1}}],["yml文件",{"2":{"292":1}}],["yml中填写一些信息",{"2":{"292":1}}],["yml中设置dev",{"2":{"274":1}}],["yml",{"2":{"0":1,"127":1,"129":1,"292":2,"295":1}}],["yml和config目录",{"2":{"0":1}}],["你在a包中定义了一个index",{"2":{"292":1}}],["你自己制作的资源包也应该遵循这个规则",{"2":{"292":1}}],["你也可以自己制作资源包",{"2":{"291":1}}],["你的插件代码",{"2":{"286":1}}],["你的贡献将会使轻雪变得更好",{"2":{"277":1}}],["你应该使用其他储存方式",{"2":{"122":1}}],["你将无法使用更新功能",{"2":{"15":1}}],["你需要使用onebot标准的实现端来连接到轻雪并将消息上报给轻雪",{"2":{"6":1}}],["你有这个问题说明你不是很了解这个项目",{"2":{"6":1}}],["你可以选择开启auto",{"2":{"293":1}}],["你可以自由使用",{"2":{"293":1}}],["你可以自定义一些信息",{"2":{"292":1}}],["你可以在多个线程中读写共享内存",{"2":{"270":1}}],["你可以通过storage模块实现内存共享通信",{"2":{"270":1}}],["你可以通过channel发送消息给其他进程",{"2":{"267":1}}],["你可以使用python",{"2":{"12":1}}],["你可以使用nonebot2支持的任何适配器或使用轻雪讯息传递插件",{"2":{"4":1}}],["你可在此自定义生成的markdown格式",{"2":{"223":1}}],["你可在config目录下创建多个配置文件",{"2":{"0":1}}],["你可修改配置项后重启轻雪",{"2":{"0":1}}],["你只需要修改superusers及nickname字段即可",{"2":{"0":1}}],["绝大多数情况下",{"2":{"0":1}}],["取决于你个人的喜好",{"2":{"0":1}}],["配置项",{"2":{"301":1}}],["配置项目",{"2":{"123":1}}],["配置了命令别名的命令可以使用别名代替原命令",{"2":{"294":1}}],["配置文件尽量扁平化",{"2":{"122":1}}],["配置值",{"2":{"34":1,"35":1}}],["配置键",{"2":{"34":1,"35":1}}],["配置",{"0":{"0":1},"1":{"1":1,"2":1,"3":1,"4":1},"2":{"19":2,"296":1}}]],"serializationVersion":2}`;export{e as default}; diff --git a/assets/chunks/ContributorBar.BzBe6oi1.js b/assets/chunks/ContributorBar.DSe5HslA.js similarity index 88% rename from assets/chunks/ContributorBar.BzBe6oi1.js rename to assets/chunks/ContributorBar.DSe5HslA.js index 096031fe..fc307a83 100644 --- a/assets/chunks/ContributorBar.BzBe6oi1.js +++ b/assets/chunks/ContributorBar.DSe5HslA.js @@ -1 +1 @@ -import{g as c}from"./theme.pz_Nliu9.js";import{d as e,o as a,c as n,j as t,t as i,k as p,_ as u}from"./framework.C4_mTacX.js";const _="https://github.com/",o="LiteyukiStudio/LiteyukiBot",b=`${_}${o}`,m={class:"contributor-bar"},l=e({__name:"ContributorBar",setup(h){const r=`https://contrib.rocks/image?repo=${o}`,s=`${b}/graphs/contributors`;return(d,f)=>(a(),n("div",m,[t("h2",null,i(p(c)("thx_contributors")),1),t("a",{href:s},[t("div",{class:"contributor-list"},[t("img",{src:r,alt:"Contributors"})])])]))}}),k=u(l,[["__scopeId","data-v-bc374713"]]);export{k as C}; +import{g as c}from"./theme.CVtOlEkl.js";import{d as e,o as a,c as n,j as t,t as i,k as p,_ as u}from"./framework.C4_mTacX.js";const _="https://github.com/",o="LiteyukiStudio/LiteyukiBot",b=`${_}${o}`,m={class:"contributor-bar"},l=e({__name:"ContributorBar",setup(h){const r=`https://contrib.rocks/image?repo=${o}`,s=`${b}/graphs/contributors`;return(d,f)=>(a(),n("div",m,[t("h2",null,i(p(c)("thx_contributors")),1),t("a",{href:s},[t("div",{class:"contributor-list"},[t("img",{src:r,alt:"Contributors"})])])]))}}),k=u(l,[["__scopeId","data-v-bc374713"]]);export{k as C}; diff --git a/assets/chunks/VPLocalSearchBox.C7qBXiSn.js b/assets/chunks/VPLocalSearchBox.C-L9VQon.js similarity index 99% rename from assets/chunks/VPLocalSearchBox.C7qBXiSn.js rename to assets/chunks/VPLocalSearchBox.C-L9VQon.js index bc0d6ade..7c3f15f2 100644 --- a/assets/chunks/VPLocalSearchBox.C7qBXiSn.js +++ b/assets/chunks/VPLocalSearchBox.C-L9VQon.js @@ -1,4 +1,4 @@ -var Ot=Object.defineProperty;var Rt=(a,e,t)=>e in a?Ot(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var Ce=(a,e,t)=>Rt(a,typeof e!="symbol"?e+"":e,t);import{X as et,s as ne,h as ve,ao as tt,ap as Ct,aq as Mt,v as je,ar as At,d as Lt,G as ye,as as st,at as Dt,au as zt,x as Pt,av as Vt,y as Me,R as de,Q as we,aw as jt,ax as $t,Y as Bt,U as Wt,a1 as Kt,o as Q,b as Jt,j as x,a2 as Ut,k as D,a6 as qt,a7 as Gt,a8 as Qt,c as Z,n as nt,e as _e,E as it,F as rt,a as he,t as fe,ay as Ht,p as Yt,l as Zt,az as at,aA as Xt,ad as es,aj as ts,aB as ss,_ as ns}from"./framework.C4_mTacX.js";import{u as is,c as rs}from"./theme.pz_Nliu9.js";const as={en:()=>et(()=>import("./@localSearchIndexen.CT3W_mh6.js"),[]),root:()=>et(()=>import("./@localSearchIndexroot.Bun9D1Sr.js"),[])};/*! +var Ot=Object.defineProperty;var Rt=(a,e,t)=>e in a?Ot(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var Ce=(a,e,t)=>Rt(a,typeof e!="symbol"?e+"":e,t);import{X as et,s as ne,h as ve,ao as tt,ap as Ct,aq as Mt,v as je,ar as At,d as Lt,G as ye,as as st,at as Dt,au as zt,x as Pt,av as Vt,y as Me,R as de,Q as we,aw as jt,ax as $t,Y as Bt,U as Wt,a1 as Kt,o as Q,b as Jt,j as x,a2 as Ut,k as D,a6 as qt,a7 as Gt,a8 as Qt,c as Z,n as nt,e as _e,E as it,F as rt,a as he,t as fe,ay as Ht,p as Yt,l as Zt,az as at,aA as Xt,ad as es,aj as ts,aB as ss,_ as ns}from"./framework.C4_mTacX.js";import{u as is,c as rs}from"./theme.CVtOlEkl.js";const as={en:()=>et(()=>import("./@localSearchIndexen.DRcj1hkO.js"),[]),root:()=>et(()=>import("./@localSearchIndexroot.J2Co3lhu.js"),[])};/*! * tabbable 6.2.0 * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE */var gt=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Ie=gt.join(","),bt=typeof Element>"u",re=bt?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ne=!bt&&Element.prototype.getRootNode?function(a){var e;return a==null||(e=a.getRootNode)===null||e===void 0?void 0:e.call(a)}:function(a){return a==null?void 0:a.ownerDocument},ke=function a(e,t){var s;t===void 0&&(t=!0);var n=e==null||(s=e.getAttribute)===null||s===void 0?void 0:s.call(e,"inert"),r=n===""||n==="true",i=r||t&&e&&a(e.parentNode);return i},os=function(e){var t,s=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return s===""||s==="true"},yt=function(e,t,s){if(ke(e))return[];var n=Array.prototype.slice.apply(e.querySelectorAll(Ie));return t&&re.call(e,Ie)&&n.unshift(e),n=n.filter(s),n},wt=function a(e,t,s){for(var n=[],r=Array.from(e);r.length;){var i=r.shift();if(!ke(i,!1))if(i.tagName==="SLOT"){var o=i.assignedElements(),c=o.length?o:i.children,l=a(c,!0,s);s.flatten?n.push.apply(n,l):n.push({scopeParent:i,candidates:l})}else{var h=re.call(i,Ie);h&&s.filter(i)&&(t||!e.includes(i))&&n.push(i);var v=i.shadowRoot||typeof s.getShadowRoot=="function"&&s.getShadowRoot(i),f=!ke(v,!1)&&(!s.shadowRootFilter||s.shadowRootFilter(i));if(v&&f){var b=a(v===!0?i.children:v.children,!0,s);s.flatten?n.push.apply(n,b):n.push({scopeParent:i,candidates:b})}else r.unshift.apply(r,i.children)}}return n},_t=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},ie=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||os(e))&&!_t(e)?0:e.tabIndex},cs=function(e,t){var s=ie(e);return s<0&&t&&!_t(e)?0:s},ls=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},xt=function(e){return e.tagName==="INPUT"},us=function(e){return xt(e)&&e.type==="hidden"},ds=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(s){return s.tagName==="SUMMARY"});return t},hs=function(e,t){for(var s=0;ssummary:first-of-type"),i=r?e.parentElement:e;if(re.call(i,"details:not([open]) *"))return!0;if(!s||s==="full"||s==="legacy-full"){if(typeof n=="function"){for(var o=e;e;){var c=e.parentElement,l=Ne(e);if(c&&!c.shadowRoot&&n(c)===!0)return ot(e);e.assignedSlot?e=e.assignedSlot:!c&&l!==e.ownerDocument?e=l.host:e=c}e=o}if(ms(e))return!e.getClientRects().length;if(s!=="legacy-full")return!0}else if(s==="non-zero-area")return ot(e);return!1},bs=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var s=0;s=0)},ws=function a(e){var t=[],s=[];return e.forEach(function(n,r){var i=!!n.scopeParent,o=i?n.scopeParent:n,c=cs(o,i),l=i?a(n.candidates):o;c===0?i?t.push.apply(t,l):t.push(o):s.push({documentOrder:r,tabIndex:c,item:n,isScope:i,content:l})}),s.sort(ls).reduce(function(n,r){return r.isScope?n.push.apply(n,r.content):n.push(r.content),n},[]).concat(t)},_s=function(e,t){t=t||{};var s;return t.getShadowRoot?s=wt([e],t.includeContainer,{filter:$e.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:ys}):s=yt(e,t.includeContainer,$e.bind(null,t)),ws(s)},xs=function(e,t){t=t||{};var s;return t.getShadowRoot?s=wt([e],t.includeContainer,{filter:Fe.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):s=yt(e,t.includeContainer,Fe.bind(null,t)),s},ae=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return re.call(e,Ie)===!1?!1:$e(t,e)},Ss=gt.concat("iframe").join(","),Ae=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return re.call(e,Ss)===!1?!1:Fe(t,e)};/*! diff --git a/assets/chunks/theme.pz_Nliu9.js b/assets/chunks/theme.CVtOlEkl.js similarity index 99% rename from assets/chunks/theme.pz_Nliu9.js rename to assets/chunks/theme.CVtOlEkl.js index 6aa45d61..4c93a895 100644 --- a/assets/chunks/theme.pz_Nliu9.js +++ b/assets/chunks/theme.CVtOlEkl.js @@ -1,5 +1,5 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/chunks/VPLocalSearchBox.C7qBXiSn.js","assets/chunks/framework.C4_mTacX.js"])))=>i.map(i=>d[i]); -import{u as Ne,d as m,o as r,c as f,r as p,n as F,a as W,t as C,b as $,w as v,e as b,T as Ae,_ as S,i as It,f as Ct,g as Me,h as T,j as u,k as c,p as x,l as j,m as oe,q as we,s as I,v as J,x as _e,y as te,z as le,A as Ee,B as Nt,C as At,D as se,F as D,E as U,G as Xe,H as me,I as w,J as K,K as Qe,L as ge,M as ee,N as ce,O as Mt,P as be,Q as Le,R as Et,S as Ze,U as ye,V as Bt,W as Ot,X as Ht,Y as et,Z as tt,$ as Dt,a0 as Ft,a1 as xt,a2 as jt,a3 as Rt,a4 as Ut,a5 as zt,a6 as nt,a7 as ot,a8 as Ve}from"./framework.C4_mTacX.js";const Gt={en:{stats:"Stats",online:"Online",offline:"Offline",total:"Total",fetching:"Fetching",stars:"Stars",forks:"Forks",issues:"Issues",prs:"Pull Requests",visitors:"Visitor",size:"Size",plugins:"Plugins",resources:"Resources",pluginStore:"Plugin Store",pluginStoreDesc:"Content from the LightSnow Plugin Store, LightSnow supports NoneBot through the lpnonebot plugin, and references some NoneBot plugins",liteyukiOnly:"Liteyuki Only",search:"Search",resourceStore:"Resources Store",thx_contributors:"Thanks the following contributors!"},zh:{stats:"统计信息",online:"在线",offline:"离线",total:"实例",fetching:"获取中",stars:"星标",forks:"分叉",issues:"工单",prs:"拉取请求",visitors:"访客",size:"大小",plugins:"插件",resources:"主题资源",store:"商店",pluginStore:"插件商店",pluginStoreDesc:"内容来自轻雪插件商店,轻雪通过lpnonebot插件对NoneBot实现支持,引用了部分NoneBot插件",liteyukiOnly:"仅轻雪",search:"搜索",resourceStore:"资源商店",thx_contributors:"感谢以下贡献者!"}};let ve={};function st(t,e){return t=Be(t),Gt[t][e]}function Be(t){return t.includes("-")?t.split("-")[0]:t}function Kt(){const t=Be(Ne().site.value.lang);for(let e in ve)ve[e].value=st(t,e)}function Z(t){const e=Be(Ne().site.value.lang);return ve[t]=st(e,t),ve[t]}const qt=m({__name:"VPBadge",props:{text:{},type:{default:"tip"}},setup(t){return(e,n)=>(r(),f("span",{class:F(["VPBadge",e.type])},[p(e.$slots,"default",{},()=>[W(C(e.text),1)])],2))}}),Wt={key:0,class:"VPBackdrop"},Jt=m({__name:"VPBackdrop",props:{show:{type:Boolean}},setup(t){return(e,n)=>(r(),$(Ae,{name:"fade"},{default:v(()=>[e.show?(r(),f("div",Wt)):b("",!0)]),_:1}))}}),Yt=S(Jt,[["__scopeId","data-v-8ef4ce84"]]),O=Ne;function Xt(t,e){let n,s=!1;return()=>{n&&clearTimeout(n),s?n=setTimeout(t,e):(t(),(s=!0)&&setTimeout(()=>s=!1,e))}}function Te(t){return/^\//.test(t)?t:`/${t}`}function Oe(t){const{pathname:e,search:n,hash:s,protocol:o}=new URL(t,"http://a.com");if(It(t)||t.startsWith("#")||!o.startsWith("http")||!Ct(e))return t;const{site:a}=O(),i=e.endsWith("/")||e.endsWith(".html")?t:t.replace(/(?:(^\.+)\/)?.*$/,`$1${e.replace(/(\.md)?$/,a.value.cleanUrls?"":".html")}${n}${s}`);return Me(i)}function ue({correspondingLink:t=!1}={}){const{site:e,localeIndex:n,page:s,theme:o,hash:a}=O(),i=T(()=>{var d,h;return{label:(d=e.value.locales[n.value])==null?void 0:d.label,link:((h=e.value.locales[n.value])==null?void 0:h.link)||(n.value==="root"?"/":`/${n.value}/`)}});return{localeLinks:T(()=>Object.entries(e.value.locales).flatMap(([d,h])=>i.value.label===h.label?[]:{text:h.label,link:Qt(h.link||(d==="root"?"/":`/${d}/`),o.value.i18nRouting!==!1&&t,s.value.relativePath.slice(i.value.link.length-1),!e.value.cleanUrls)+a.value})),currentLang:i}}function Qt(t,e,n,s){return e?t.replace(/\/$/,"")+Te(n.replace(/(^|\/)index\.md$/,"$1").replace(/\.md$/,s?".html":"")):t}const Zt=t=>(x("data-v-61e78ba6"),t=t(),j(),t),en={class:"NotFound"},tn={class:"code"},nn={class:"title"},on=Zt(()=>u("div",{class:"divider"},null,-1)),sn={class:"quote"},an={class:"action"},rn=["href","aria-label"],ln=m({__name:"NotFound",setup(t){const{theme:e}=O(),{currentLang:n}=ue();return(s,o)=>{var a,i,l,d,h;return r(),f("div",en,[u("p",tn,C(((a=c(e).notFound)==null?void 0:a.code)??"404"),1),u("h1",nn,C(((i=c(e).notFound)==null?void 0:i.title)??"PAGE NOT FOUND"),1),on,u("blockquote",sn,C(((l=c(e).notFound)==null?void 0:l.quote)??"But if you don't change your direction, and if you keep looking, you may end up where you are heading."),1),u("div",an,[u("a",{class:"link",href:c(Me)(c(n).link),"aria-label":((d=c(e).notFound)==null?void 0:d.linkLabel)??"go to home"},C(((h=c(e).notFound)==null?void 0:h.linkText)??"Take me home"),9,rn)])])}}}),cn=S(ln,[["__scopeId","data-v-61e78ba6"]]);function at(t,e){if(Array.isArray(t))return pe(t);if(t==null)return[];e=Te(e);const n=Object.keys(t).sort((o,a)=>a.split("/").length-o.split("/").length).find(o=>e.startsWith(Te(o))),s=n?t[n]:[];return Array.isArray(s)?pe(s):pe(s.items,s.base)}function un(t){const e=[];let n=0;for(const s in t){const o=t[s];if(o.items){n=e.push(o);continue}e[n]||e.push({items:[]}),e[n].items.push(o)}return e}function dn(t){const e=[];function n(s){for(const o of s)o.text&&o.link&&e.push({text:o.text,link:o.link,docFooterText:o.docFooterText}),o.items&&n(o.items)}return n(t),e}function Ie(t,e){return Array.isArray(e)?e.some(n=>Ie(t,n)):oe(t,e.link)?!0:e.items?Ie(t,e.items):!1}function pe(t,e){return[...t].map(n=>{const s={...n},o=s.base||e;return o&&s.link&&(s.link=o+s.link),s.items&&(s.items=pe(s.items,o)),s})}function Y(){const{frontmatter:t,page:e,theme:n}=O(),s=we("(min-width: 960px)"),o=I(!1),a=T(()=>{const M=n.value.sidebar,k=e.value.relativePath;return M?at(M,k):[]}),i=I(a.value);J(a,(M,k)=>{JSON.stringify(M)!==JSON.stringify(k)&&(i.value=a.value)});const l=T(()=>t.value.sidebar!==!1&&i.value.length>0&&t.value.layout!=="home"),d=T(()=>h?t.value.aside==null?n.value.aside==="left":t.value.aside==="left":!1),h=T(()=>t.value.layout==="home"?!1:t.value.aside!=null?!!t.value.aside:n.value.aside!==!1),g=T(()=>l.value&&s.value),_=T(()=>l.value?un(i.value):[]);function y(){o.value=!0}function N(){o.value=!1}function V(){o.value?N():y()}return{isOpen:o,sidebar:i,sidebarGroups:_,hasSidebar:l,hasAside:h,leftAside:d,isSidebarEnabled:g,open:y,close:N,toggle:V}}function fn(t,e){let n;_e(()=>{n=t.value?document.activeElement:void 0}),te(()=>{window.addEventListener("keyup",s)}),le(()=>{window.removeEventListener("keyup",s)});function s(o){o.key==="Escape"&&t.value&&(e(),n==null||n.focus())}}function pn(t){const{page:e,hash:n}=O(),s=I(!1),o=T(()=>t.value.collapsed!=null),a=T(()=>!!t.value.link),i=I(!1),l=()=>{i.value=oe(e.value.relativePath,t.value.link)};J([e,t,n],l),te(l);const d=T(()=>i.value?!0:t.value.items?Ie(e.value.relativePath,t.value.items):!1),h=T(()=>!!(t.value.items&&t.value.items.length));_e(()=>{s.value=!!(o.value&&t.value.collapsed)}),Ee(()=>{(i.value||d.value)&&(s.value=!1)});function g(){o.value&&(s.value=!s.value)}return{collapsed:s,collapsible:o,isLink:a,isActiveLink:i,hasActiveLink:d,hasChildren:h,toggle:g}}function vn(){const{hasSidebar:t}=Y(),e=we("(min-width: 960px)"),n=we("(min-width: 1280px)");return{isAsideEnabled:T(()=>!n.value&&!e.value?!1:t.value?n.value:e.value)}}const Ce=[];function rt(t){return typeof t.outline=="object"&&!Array.isArray(t.outline)&&t.outline.label||t.outlineTitle||"On this page"}function He(t){const e=[...document.querySelectorAll(".VPDoc :where(h1,h2,h3,h4,h5,h6)")].filter(n=>n.id&&n.hasChildNodes()).map(n=>{const s=Number(n.tagName[1]);return{element:n,title:hn(n),link:"#"+n.id,level:s}});return _n(e,t)}function hn(t){let e="";for(const n of t.childNodes)if(n.nodeType===1){if(n.classList.contains("VPBadge")||n.classList.contains("header-anchor")||n.classList.contains("ignore-header"))continue;e+=n.textContent}else n.nodeType===3&&(e+=n.textContent);return e.trim()}function _n(t,e){if(e===!1)return[];const n=(typeof e=="object"&&!Array.isArray(e)?e.level:e)||2,[s,o]=typeof n=="number"?[n,n]:n==="deep"?[2,6]:n;t=t.filter(i=>i.level>=s&&i.level<=o),Ce.length=0;for(const{element:i,link:l}of t)Ce.push({element:i,link:l});const a=[];e:for(let i=0;i=0;d--){const h=t[d];if(h.level{requestAnimationFrame(a),window.addEventListener("scroll",s)}),Nt(()=>{i(location.hash)}),le(()=>{window.removeEventListener("scroll",s)});function a(){if(!n.value)return;const l=window.scrollY,d=window.innerHeight,h=document.body.offsetHeight,g=Math.abs(l+d-h)<1,_=Ce.map(({element:N,link:V})=>({link:V,top:gn(N)})).filter(({top:N})=>!Number.isNaN(N)).sort((N,V)=>N.top-V.top);if(!_.length){i(null);return}if(l<1){i(null);return}if(g){i(_[_.length-1].link);return}let y=null;for(const{link:N,top:V}of _){if(V>l+At()+4)break;y=N}i(y)}function i(l){o&&o.classList.remove("active"),l==null?o=null:o=t.value.querySelector(`a[href="${decodeURIComponent(l)}"]`);const d=o;d?(d.classList.add("active"),e.value.style.top=d.offsetTop+39+"px",e.value.style.opacity="1"):(e.value.style.top="33px",e.value.style.opacity="0")}}function gn(t){let e=0;for(;t!==document.body;){if(t===null)return NaN;e+=t.offsetTop,t=t.offsetParent}return e}const bn=["href","title"],yn=m({__name:"VPDocOutlineItem",props:{headers:{},root:{type:Boolean}},setup(t){function e({target:n}){const s=n.href.split("#")[1],o=document.getElementById(decodeURIComponent(s));o==null||o.focus({preventScroll:!0})}return(n,s)=>{const o=se("VPDocOutlineItem",!0);return r(),f("ul",{class:F(["VPDocOutlineItem",n.root?"root":"nested"])},[(r(!0),f(D,null,U(n.headers,({children:a,link:i,title:l})=>(r(),f("li",null,[u("a",{class:"outline-link",href:i,onClick:e,title:l},C(l),9,bn),a!=null&&a.length?(r(),$(o,{key:0,headers:a},null,8,["headers"])):b("",!0)]))),256))],2)}}}),it=S(yn,[["__scopeId","data-v-75d41a09"]]),kn={class:"content"},$n={"aria-level":"2",class:"outline-title",id:"doc-outline-aria-label",role:"heading"},Sn=m({__name:"VPDocAsideOutline",setup(t){const{frontmatter:e,theme:n}=O(),s=Xe([]);me(()=>{s.value=He(e.value.outline??n.value.outline)});const o=I(),a=I();return mn(o,a),(i,l)=>(r(),f("nav",{"aria-labelledby":"doc-outline-aria-label",class:F(["VPDocAsideOutline",{"has-outline":s.value.length>0}]),ref_key:"container",ref:o},[u("div",kn,[u("div",{class:"outline-marker",ref_key:"marker",ref:a},null,512),u("div",$n,C(c(rt)(c(n))),1),w(it,{headers:s.value,root:!0},null,8,["headers"])])],2))}}),Pn=S(Sn,[["__scopeId","data-v-1a7b7e3f"]]),wn={class:"VPDocAsideCarbonAds"},Ln=m({__name:"VPDocAsideCarbonAds",props:{carbonAds:{}},setup(t){const e=()=>null;return(n,s)=>(r(),f("div",wn,[w(c(e),{"carbon-ads":n.carbonAds},null,8,["carbon-ads"])]))}}),Vn=t=>(x("data-v-ba54ca11"),t=t(),j(),t),Tn={class:"VPDocAside"},In=Vn(()=>u("div",{class:"spacer"},null,-1)),Cn=m({__name:"VPDocAside",setup(t){const{theme:e}=O();return(n,s)=>(r(),f("div",Tn,[p(n.$slots,"aside-top",{},void 0,!0),p(n.$slots,"aside-outline-before",{},void 0,!0),w(Pn),p(n.$slots,"aside-outline-after",{},void 0,!0),In,p(n.$slots,"aside-ads-before",{},void 0,!0),c(e).carbonAds?(r(),$(Ln,{key:0,"carbon-ads":c(e).carbonAds},null,8,["carbon-ads"])):b("",!0),p(n.$slots,"aside-ads-after",{},void 0,!0),p(n.$slots,"aside-bottom",{},void 0,!0)]))}}),Nn=S(Cn,[["__scopeId","data-v-ba54ca11"]]);function An(){const{theme:t,page:e}=O();return T(()=>{const{text:n="Edit this page",pattern:s=""}=t.value.editLink||{};let o;return typeof s=="function"?o=s(e.value):o=s.replace(/:path/g,e.value.filePath),{url:o,text:n}})}function Mn(){const{page:t,theme:e,frontmatter:n}=O();return T(()=>{var h,g,_,y,N,V,M,k;const s=at(e.value.sidebar,t.value.relativePath),o=dn(s),a=En(o,R=>R.link.replace(/[?#].*$/,"")),i=a.findIndex(R=>oe(t.value.relativePath,R.link)),l=((h=e.value.docFooter)==null?void 0:h.prev)===!1&&!n.value.prev||n.value.prev===!1,d=((g=e.value.docFooter)==null?void 0:g.next)===!1&&!n.value.next||n.value.next===!1;return{prev:l?void 0:{text:(typeof n.value.prev=="string"?n.value.prev:typeof n.value.prev=="object"?n.value.prev.text:void 0)??((_=a[i-1])==null?void 0:_.docFooterText)??((y=a[i-1])==null?void 0:y.text),link:(typeof n.value.prev=="object"?n.value.prev.link:void 0)??((N=a[i-1])==null?void 0:N.link)},next:d?void 0:{text:(typeof n.value.next=="string"?n.value.next:typeof n.value.next=="object"?n.value.next.text:void 0)??((V=a[i+1])==null?void 0:V.docFooterText)??((M=a[i+1])==null?void 0:M.text),link:(typeof n.value.next=="object"?n.value.next.link:void 0)??((k=a[i+1])==null?void 0:k.link)}}})}function En(t,e){const n=new Set;return t.filter(s=>{const o=e(s);return n.has(o)?!1:n.add(o)})}const q=m({__name:"VPLink",props:{tag:{},href:{},noIcon:{type:Boolean},target:{},rel:{}},setup(t){const e=t,n=T(()=>e.tag??(e.href?"a":"span")),s=T(()=>e.href&&Qe.test(e.href)||e.target==="_blank");return(o,a)=>(r(),$(K(n.value),{class:F(["VPLink",{link:o.href,"vp-external-link-icon":s.value,"no-icon":o.noIcon}]),href:o.href?c(Oe)(o.href):void 0,target:o.target??(s.value?"_blank":void 0),rel:o.rel??(s.value?"noreferrer":void 0)},{default:v(()=>[p(o.$slots,"default")]),_:3},8,["class","href","target","rel"]))}}),Bn={class:"VPLastUpdated"},On=["datetime"],Hn=m({__name:"VPDocFooterLastUpdated",setup(t){const{theme:e,page:n,lang:s}=O(),o=T(()=>new Date(n.value.lastUpdated)),a=T(()=>o.value.toISOString()),i=I("");return te(()=>{_e(()=>{var l,d,h;i.value=new Intl.DateTimeFormat((d=(l=e.value.lastUpdated)==null?void 0:l.formatOptions)!=null&&d.forceLocale?s.value:void 0,((h=e.value.lastUpdated)==null?void 0:h.formatOptions)??{dateStyle:"short",timeStyle:"short"}).format(o.value)})}),(l,d)=>{var h;return r(),f("p",Bn,[W(C(((h=c(e).lastUpdated)==null?void 0:h.text)||c(e).lastUpdatedText||"Last updated")+": ",1),u("time",{datetime:a.value},C(i.value),9,On)])}}}),Dn=S(Hn,[["__scopeId","data-v-e2247888"]]),lt=t=>(x("data-v-bb44dcf3"),t=t(),j(),t),Fn={key:0,class:"VPDocFooter"},xn={key:0,class:"edit-info"},jn={key:0,class:"edit-link"},Rn=lt(()=>u("span",{class:"vpi-square-pen edit-link-icon"},null,-1)),Un={key:1,class:"last-updated"},zn={key:1,class:"prev-next","aria-labelledby":"doc-footer-aria-label"},Gn=lt(()=>u("span",{class:"visually-hidden",id:"doc-footer-aria-label"},"Pager",-1)),Kn={class:"pager"},qn=["innerHTML"],Wn=["innerHTML"],Jn={class:"pager"},Yn=["innerHTML"],Xn=["innerHTML"],Qn=m({__name:"VPDocFooter",setup(t){const{theme:e,page:n,frontmatter:s}=O(),o=An(),a=Mn(),i=T(()=>e.value.editLink&&s.value.editLink!==!1),l=T(()=>n.value.lastUpdated),d=T(()=>i.value||l.value||a.value.prev||a.value.next);return(h,g)=>{var _,y,N,V;return d.value?(r(),f("footer",Fn,[p(h.$slots,"doc-footer-before",{},void 0,!0),i.value||l.value?(r(),f("div",xn,[i.value?(r(),f("div",jn,[w(q,{class:"edit-link-button",href:c(o).url,"no-icon":!0},{default:v(()=>[Rn,W(" "+C(c(o).text),1)]),_:1},8,["href"])])):b("",!0),l.value?(r(),f("div",Un,[w(Dn)])):b("",!0)])):b("",!0),(_=c(a).prev)!=null&&_.link||(y=c(a).next)!=null&&y.link?(r(),f("nav",zn,[Gn,u("div",Kn,[(N=c(a).prev)!=null&&N.link?(r(),$(q,{key:0,class:"pager-link prev",href:c(a).prev.link},{default:v(()=>{var M;return[u("span",{class:"desc",innerHTML:((M=c(e).docFooter)==null?void 0:M.prev)||"Previous page"},null,8,qn),u("span",{class:"title",innerHTML:c(a).prev.text},null,8,Wn)]}),_:1},8,["href"])):b("",!0)]),u("div",Jn,[(V=c(a).next)!=null&&V.link?(r(),$(q,{key:0,class:"pager-link next",href:c(a).next.link},{default:v(()=>{var M;return[u("span",{class:"desc",innerHTML:((M=c(e).docFooter)==null?void 0:M.next)||"Next page"},null,8,Yn),u("span",{class:"title",innerHTML:c(a).next.text},null,8,Xn)]}),_:1},8,["href"])):b("",!0)])])):b("",!0)])):b("",!0)}}}),Zn=S(Qn,[["__scopeId","data-v-bb44dcf3"]]),eo=t=>(x("data-v-1b1e6eb6"),t=t(),j(),t),to={class:"container"},no=eo(()=>u("div",{class:"aside-curtain"},null,-1)),oo={class:"aside-container"},so={class:"aside-content"},ao={class:"content"},ro={class:"content-container"},io={class:"main"},lo=m({__name:"VPDoc",setup(t){const{theme:e}=O(),n=ge(),{hasSidebar:s,hasAside:o,leftAside:a}=Y(),i=T(()=>n.path.replace(/[./]+/g,"_").replace(/_html$/,""));return(l,d)=>{const h=se("Content");return r(),f("div",{class:F(["VPDoc",{"has-sidebar":c(s),"has-aside":c(o)}])},[p(l.$slots,"doc-top",{},void 0,!0),u("div",to,[c(o)?(r(),f("div",{key:0,class:F(["aside",{"left-aside":c(a)}])},[no,u("div",oo,[u("div",so,[w(Nn,null,{"aside-top":v(()=>[p(l.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":v(()=>[p(l.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":v(()=>[p(l.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":v(()=>[p(l.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":v(()=>[p(l.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":v(()=>[p(l.$slots,"aside-ads-after",{},void 0,!0)]),_:3})])])],2)):b("",!0),u("div",ao,[u("div",ro,[p(l.$slots,"doc-before",{},void 0,!0),u("main",io,[w(h,{class:F(["vp-doc",[i.value,c(e).externalLinkIcon&&"external-link-icon-enabled"]])},null,8,["class"])]),w(Zn,null,{"doc-footer-before":v(()=>[p(l.$slots,"doc-footer-before",{},void 0,!0)]),_:3}),p(l.$slots,"doc-after",{},void 0,!0)])])]),p(l.$slots,"doc-bottom",{},void 0,!0)],2)}}}),co=S(lo,[["__scopeId","data-v-1b1e6eb6"]]),uo=m({__name:"VPButton",props:{tag:{},size:{default:"medium"},theme:{default:"brand"},text:{},href:{},target:{},rel:{}},setup(t){const e=t,n=T(()=>e.href&&Qe.test(e.href)),s=T(()=>e.tag||e.href?"a":"button");return(o,a)=>(r(),$(K(s.value),{class:F(["VPButton",[o.size,o.theme]]),href:o.href?c(Oe)(o.href):void 0,target:e.target??(n.value?"_blank":void 0),rel:e.rel??(n.value?"noreferrer":void 0)},{default:v(()=>[W(C(o.text),1)]),_:1},8,["class","href","target","rel"]))}}),fo=S(uo,[["__scopeId","data-v-0197a461"]]),po=["src","alt"],vo=m({inheritAttrs:!1,__name:"VPImage",props:{image:{},alt:{}},setup(t){return(e,n)=>{const s=se("VPImage",!0);return e.image?(r(),f(D,{key:0},[typeof e.image=="string"||"src"in e.image?(r(),f("img",ee({key:0,class:"VPImage"},typeof e.image=="string"?e.$attrs:{...e.image,...e.$attrs},{src:c(Me)(typeof e.image=="string"?e.image:e.image.src),alt:e.alt??(typeof e.image=="string"?"":e.image.alt||"")}),null,16,po)):(r(),f(D,{key:1},[w(s,ee({class:"dark",image:e.image.dark,alt:e.image.alt},e.$attrs),null,16,["image","alt"]),w(s,ee({class:"light",image:e.image.light,alt:e.image.alt},e.$attrs),null,16,["image","alt"])],64))],64)):b("",!0)}}}),he=S(vo,[["__scopeId","data-v-8fba738a"]]),ho=t=>(x("data-v-5c988386"),t=t(),j(),t),_o={class:"container"},mo={class:"main"},go={key:0,class:"name"},bo=["innerHTML"],yo=["innerHTML"],ko=["innerHTML"],$o={key:0,class:"actions"},So={key:0,class:"image"},Po={class:"image-container"},wo=ho(()=>u("div",{class:"image-bg"},null,-1)),Lo=m({__name:"VPHero",props:{name:{},text:{},tagline:{},image:{},actions:{}},setup(t){const e=ce("hero-image-slot-exists");return(n,s)=>(r(),f("div",{class:F(["VPHero",{"has-image":n.image||c(e)}])},[u("div",_o,[u("div",mo,[p(n.$slots,"home-hero-info-before",{},void 0,!0),p(n.$slots,"home-hero-info",{},()=>[n.name?(r(),f("h1",go,[u("span",{innerHTML:n.name,class:"clip"},null,8,bo)])):b("",!0),n.text?(r(),f("p",{key:1,innerHTML:n.text,class:"text"},null,8,yo)):b("",!0),n.tagline?(r(),f("p",{key:2,innerHTML:n.tagline,class:"tagline"},null,8,ko)):b("",!0)],!0),p(n.$slots,"home-hero-info-after",{},void 0,!0),n.actions?(r(),f("div",$o,[(r(!0),f(D,null,U(n.actions,o=>(r(),f("div",{key:o.link,class:"action"},[w(fo,{tag:"a",size:"medium",theme:o.theme,text:o.text,href:o.link,target:o.target,rel:o.rel},null,8,["theme","text","href","target","rel"])]))),128))])):b("",!0),p(n.$slots,"home-hero-actions-after",{},void 0,!0)]),n.image||c(e)?(r(),f("div",So,[u("div",Po,[wo,p(n.$slots,"home-hero-image",{},()=>[n.image?(r(),$(he,{key:0,class:"image-src",image:n.image},null,8,["image"])):b("",!0)],!0)])])):b("",!0)])],2))}}),Vo=S(Lo,[["__scopeId","data-v-5c988386"]]),To=m({__name:"VPHomeHero",setup(t){const{frontmatter:e}=O();return(n,s)=>c(e).hero?(r(),$(Vo,{key:0,class:"VPHomeHero",name:c(e).hero.name,text:c(e).hero.text,tagline:c(e).hero.tagline,image:c(e).hero.image,actions:c(e).hero.actions},{"home-hero-info-before":v(()=>[p(n.$slots,"home-hero-info-before")]),"home-hero-info":v(()=>[p(n.$slots,"home-hero-info")]),"home-hero-info-after":v(()=>[p(n.$slots,"home-hero-info-after")]),"home-hero-actions-after":v(()=>[p(n.$slots,"home-hero-actions-after")]),"home-hero-image":v(()=>[p(n.$slots,"home-hero-image")]),_:3},8,["name","text","tagline","image","actions"])):b("",!0)}}),Io=t=>(x("data-v-c7369462"),t=t(),j(),t),Co={class:"box"},No={key:0,class:"icon"},Ao=["innerHTML"],Mo=["innerHTML"],Eo=["innerHTML"],Bo={key:4,class:"link-text"},Oo={class:"link-text-value"},Ho=Io(()=>u("span",{class:"vpi-arrow-right link-text-icon"},null,-1)),Do=m({__name:"VPFeature",props:{icon:{},title:{},details:{},link:{},linkText:{},rel:{},target:{}},setup(t){return(e,n)=>(r(),$(q,{class:"VPFeature",href:e.link,rel:e.rel,target:e.target,"no-icon":!0,tag:e.link?"a":"div"},{default:v(()=>[u("article",Co,[typeof e.icon=="object"&&e.icon.wrap?(r(),f("div",No,[w(he,{image:e.icon,alt:e.icon.alt,height:e.icon.height||48,width:e.icon.width||48},null,8,["image","alt","height","width"])])):typeof e.icon=="object"?(r(),$(he,{key:1,image:e.icon,alt:e.icon.alt,height:e.icon.height||48,width:e.icon.width||48},null,8,["image","alt","height","width"])):e.icon?(r(),f("div",{key:2,class:"icon",innerHTML:e.icon},null,8,Ao)):b("",!0),u("h2",{class:"title",innerHTML:e.title},null,8,Mo),e.details?(r(),f("p",{key:3,class:"details",innerHTML:e.details},null,8,Eo)):b("",!0),e.linkText?(r(),f("div",Bo,[u("p",Oo,[W(C(e.linkText)+" ",1),Ho])])):b("",!0)])]),_:1},8,["href","rel","target","tag"]))}}),Fo=S(Do,[["__scopeId","data-v-c7369462"]]),xo={key:0,class:"VPFeatures"},jo={class:"container"},Ro={class:"items"},Uo=m({__name:"VPFeatures",props:{features:{}},setup(t){const e=t,n=T(()=>{const s=e.features.length;if(s){if(s===2)return"grid-2";if(s===3)return"grid-3";if(s%3===0)return"grid-6";if(s>3)return"grid-4"}else return});return(s,o)=>s.features?(r(),f("div",xo,[u("div",jo,[u("div",Ro,[(r(!0),f(D,null,U(s.features,a=>(r(),f("div",{key:a.title,class:F(["item",[n.value]])},[w(Fo,{icon:a.icon,title:a.title,details:a.details,link:a.link,"link-text":a.linkText,rel:a.rel,target:a.target},null,8,["icon","title","details","link","link-text","rel","target"])],2))),128))])])])):b("",!0)}}),zo=S(Uo,[["__scopeId","data-v-677f1773"]]),Go=m({__name:"VPHomeFeatures",setup(t){const{frontmatter:e}=O();return(n,s)=>c(e).features?(r(),$(zo,{key:0,class:"VPHomeFeatures",features:c(e).features},null,8,["features"])):b("",!0)}}),Ko=m({__name:"VPHomeContent",setup(t){const{width:e}=Mt({initialWidth:0,includeScrollbar:!1});return(n,s)=>(r(),f("div",{class:"vp-doc container",style:be(c(e)?{"--vp-offset":`calc(50% - ${c(e)/2}px)`}:{})},[p(n.$slots,"default",{},void 0,!0)],4))}}),qo=S(Ko,[["__scopeId","data-v-af23e745"]]),Wo={class:"VPHome"},Jo=m({__name:"VPHome",setup(t){const{frontmatter:e}=O();return(n,s)=>{const o=se("Content");return r(),f("div",Wo,[p(n.$slots,"home-hero-before",{},void 0,!0),w(To,null,{"home-hero-info-before":v(()=>[p(n.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":v(()=>[p(n.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":v(()=>[p(n.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":v(()=>[p(n.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":v(()=>[p(n.$slots,"home-hero-image",{},void 0,!0)]),_:3}),p(n.$slots,"home-hero-after",{},void 0,!0),p(n.$slots,"home-features-before",{},void 0,!0),w(Go),p(n.$slots,"home-features-after",{},void 0,!0),c(e).markdownStyles!==!1?(r(),$(qo,{key:0},{default:v(()=>[w(o)]),_:1})):(r(),$(o,{key:1}))])}}}),Yo=S(Jo,[["__scopeId","data-v-1e2364af"]]),Xo={},Qo={class:"VPPage"};function Zo(t,e){const n=se("Content");return r(),f("div",Qo,[p(t.$slots,"page-top"),w(n),p(t.$slots,"page-bottom")])}const es=S(Xo,[["render",Zo]]),ts=m({__name:"VPContent",setup(t){const{page:e,frontmatter:n}=O(),{hasSidebar:s}=Y();return(o,a)=>(r(),f("div",{class:F(["VPContent",{"has-sidebar":c(s),"is-home":c(n).layout==="home"}]),id:"VPContent"},[c(e).isNotFound?p(o.$slots,"not-found",{key:0},()=>[w(cn)],!0):c(n).layout==="page"?(r(),$(es,{key:1},{"page-top":v(()=>[p(o.$slots,"page-top",{},void 0,!0)]),"page-bottom":v(()=>[p(o.$slots,"page-bottom",{},void 0,!0)]),_:3})):c(n).layout==="home"?(r(),$(Yo,{key:2},{"home-hero-before":v(()=>[p(o.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info-before":v(()=>[p(o.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":v(()=>[p(o.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":v(()=>[p(o.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":v(()=>[p(o.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":v(()=>[p(o.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":v(()=>[p(o.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":v(()=>[p(o.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":v(()=>[p(o.$slots,"home-features-after",{},void 0,!0)]),_:3})):c(n).layout&&c(n).layout!=="doc"?(r(),$(K(c(n).layout),{key:3})):(r(),$(co,{key:4},{"doc-top":v(()=>[p(o.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":v(()=>[p(o.$slots,"doc-bottom",{},void 0,!0)]),"doc-footer-before":v(()=>[p(o.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":v(()=>[p(o.$slots,"doc-before",{},void 0,!0)]),"doc-after":v(()=>[p(o.$slots,"doc-after",{},void 0,!0)]),"aside-top":v(()=>[p(o.$slots,"aside-top",{},void 0,!0)]),"aside-outline-before":v(()=>[p(o.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":v(()=>[p(o.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":v(()=>[p(o.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":v(()=>[p(o.$slots,"aside-ads-after",{},void 0,!0)]),"aside-bottom":v(()=>[p(o.$slots,"aside-bottom",{},void 0,!0)]),_:3}))],2))}}),ns=S(ts,[["__scopeId","data-v-b02ee7d2"]]),os={class:"container"},ss=["innerHTML"],as=["innerHTML"],rs=m({__name:"VPFooter",setup(t){const{theme:e,frontmatter:n}=O(),{hasSidebar:s}=Y();return(o,a)=>c(e).footer&&c(n).footer!==!1?(r(),f("footer",{key:0,class:F(["VPFooter",{"has-sidebar":c(s)}])},[u("div",os,[c(e).footer.message?(r(),f("p",{key:0,class:"message",innerHTML:c(e).footer.message},null,8,ss)):b("",!0),c(e).footer.copyright?(r(),f("p",{key:1,class:"copyright",innerHTML:c(e).footer.copyright},null,8,as)):b("",!0)])],2)):b("",!0)}}),is=S(rs,[["__scopeId","data-v-d5f9ff66"]]);function ls(){const{theme:t,frontmatter:e}=O(),n=Xe([]),s=T(()=>n.value.length>0);return me(()=>{n.value=He(e.value.outline??t.value.outline)}),{headers:n,hasLocalNav:s}}const cs=t=>(x("data-v-f5705a94"),t=t(),j(),t),us={class:"menu-text"},ds=cs(()=>u("span",{class:"vpi-chevron-right icon"},null,-1)),fs={class:"header"},ps={class:"outline"},vs=m({__name:"VPLocalNavOutlineDropdown",props:{headers:{},navHeight:{}},setup(t){const e=t,{theme:n}=O(),s=I(!1),o=I(0),a=I(),i=I();function l(_){var y;(y=a.value)!=null&&y.contains(_.target)||(s.value=!1)}J(s,_=>{if(_){document.addEventListener("click",l);return}document.removeEventListener("click",l)}),Le("Escape",()=>{s.value=!1}),me(()=>{s.value=!1});function d(){s.value=!s.value,o.value=window.innerHeight+Math.min(window.scrollY-e.navHeight,0)}function h(_){_.target.classList.contains("outline-link")&&(i.value&&(i.value.style.transition="none"),Et(()=>{s.value=!1}))}function g(){s.value=!1,window.scrollTo({top:0,left:0,behavior:"smooth"})}return(_,y)=>(r(),f("div",{class:"VPLocalNavOutlineDropdown",style:be({"--vp-vh":o.value+"px"}),ref_key:"main",ref:a},[_.headers.length>0?(r(),f("button",{key:0,onClick:d,class:F({open:s.value})},[u("span",us,C(c(rt)(c(n))),1),ds],2)):(r(),f("button",{key:1,onClick:g},C(c(n).returnToTopLabel||"Return to top"),1)),w(Ae,{name:"flyout"},{default:v(()=>[s.value?(r(),f("div",{key:0,ref_key:"items",ref:i,class:"items",onClick:h},[u("div",fs,[u("a",{class:"top-link",href:"#",onClick:g},C(c(n).returnToTopLabel||"Return to top"),1)]),u("div",ps,[w(it,{headers:_.headers},null,8,["headers"])])],512)):b("",!0)]),_:1})],4))}}),hs=S(vs,[["__scopeId","data-v-f5705a94"]]),_s=t=>(x("data-v-022e6087"),t=t(),j(),t),ms={class:"container"},gs=["aria-expanded"],bs=_s(()=>u("span",{class:"vpi-align-left menu-icon"},null,-1)),ys={class:"menu-text"},ks=m({__name:"VPLocalNav",props:{open:{type:Boolean}},emits:["open-menu"],setup(t){const{theme:e,frontmatter:n}=O(),{hasSidebar:s}=Y(),{headers:o}=ls(),{y:a}=Ze(),i=I(0);te(()=>{i.value=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--vp-nav-height"))}),me(()=>{o.value=He(n.value.outline??e.value.outline)});const l=T(()=>o.value.length===0),d=T(()=>l.value&&!s.value),h=T(()=>({VPLocalNav:!0,"has-sidebar":s.value,empty:l.value,fixed:d.value}));return(g,_)=>c(n).layout!=="home"&&(!d.value||c(a)>=i.value)?(r(),f("div",{key:0,class:F(h.value)},[u("div",ms,[c(s)?(r(),f("button",{key:0,class:"menu","aria-expanded":g.open,"aria-controls":"VPSidebarNav",onClick:_[0]||(_[0]=y=>g.$emit("open-menu"))},[bs,u("span",ys,C(c(e).sidebarMenuLabel||"Menu"),1)],8,gs)):b("",!0),w(hs,{headers:c(o),navHeight:i.value},null,8,["headers","navHeight"])])],2)):b("",!0)}}),$s=S(ks,[["__scopeId","data-v-022e6087"]]);function Ss(){const t=I(!1);function e(){t.value=!0,window.addEventListener("resize",o)}function n(){t.value=!1,window.removeEventListener("resize",o)}function s(){t.value?n():e()}function o(){window.outerWidth>=768&&n()}const a=ge();return J(()=>a.path,n),{isScreenOpen:t,openScreen:e,closeScreen:n,toggleScreen:s}}const Ps={},ws={class:"VPSwitch",type:"button",role:"switch"},Ls={class:"check"},Vs={key:0,class:"icon"};function Ts(t,e){return r(),f("button",ws,[u("span",Ls,[t.$slots.default?(r(),f("span",Vs,[p(t.$slots,"default",{},void 0,!0)])):b("",!0)])])}const Is=S(Ps,[["render",Ts],["__scopeId","data-v-8727337c"]]),ct=t=>(x("data-v-10656515"),t=t(),j(),t),Cs=ct(()=>u("span",{class:"vpi-sun sun"},null,-1)),Ns=ct(()=>u("span",{class:"vpi-moon moon"},null,-1)),As=m({__name:"VPSwitchAppearance",setup(t){const{isDark:e,theme:n}=O(),s=ce("toggle-appearance",()=>{e.value=!e.value}),o=I("");return Ee(()=>{o.value=e.value?n.value.lightModeSwitchTitle||"Switch to light theme":n.value.darkModeSwitchTitle||"Switch to dark theme"}),(a,i)=>(r(),$(Is,{title:o.value,class:"VPSwitchAppearance","aria-checked":c(e),onClick:c(s)},{default:v(()=>[Cs,Ns]),_:1},8,["title","aria-checked","onClick"]))}}),De=S(As,[["__scopeId","data-v-10656515"]]),Ms={key:0,class:"VPNavBarAppearance"},Es=m({__name:"VPNavBarAppearance",setup(t){const{site:e}=O();return(n,s)=>c(e).appearance&&c(e).appearance!=="force-dark"&&c(e).appearance!=="force-auto"?(r(),f("div",Ms,[w(De)])):b("",!0)}}),Bs=S(Es,[["__scopeId","data-v-0e100a46"]]),Fe=I();let ut=!1,Pe=0;function Os(t){const e=I(!1);if(ye){!ut&&Hs(),Pe++;const n=J(Fe,s=>{var o,a,i;s===t.el.value||(o=t.el.value)!=null&&o.contains(s)?(e.value=!0,(a=t.onFocus)==null||a.call(t)):(e.value=!1,(i=t.onBlur)==null||i.call(t))});le(()=>{n(),Pe--,Pe||Ds()})}return Bt(e)}function Hs(){document.addEventListener("focusin",dt),ut=!0,Fe.value=document.activeElement}function Ds(){document.removeEventListener("focusin",dt)}function dt(){Fe.value=document.activeElement}const Fs={class:"VPMenuLink"},xs=m({__name:"VPMenuLink",props:{item:{}},setup(t){const{page:e}=O();return(n,s)=>(r(),f("div",Fs,[w(q,{class:F({active:c(oe)(c(e).relativePath,n.item.activeMatch||n.item.link,!!n.item.activeMatch)}),href:n.item.link,target:n.item.target,rel:n.item.rel},{default:v(()=>[W(C(n.item.text),1)]),_:1},8,["class","href","target","rel"])]))}}),ke=S(xs,[["__scopeId","data-v-90280799"]]),js={class:"VPMenuGroup"},Rs={key:0,class:"title"},Us=m({__name:"VPMenuGroup",props:{text:{},items:{}},setup(t){return(e,n)=>(r(),f("div",js,[e.text?(r(),f("p",Rs,C(e.text),1)):b("",!0),(r(!0),f(D,null,U(e.items,s=>(r(),f(D,null,["link"in s?(r(),$(ke,{key:0,item:s},null,8,["item"])):b("",!0)],64))),256))]))}}),zs=S(Us,[["__scopeId","data-v-521dafbf"]]),Gs={class:"VPMenu"},Ks={key:0,class:"items"},qs=m({__name:"VPMenu",props:{items:{}},setup(t){return(e,n)=>(r(),f("div",Gs,[e.items?(r(),f("div",Ks,[(r(!0),f(D,null,U(e.items,s=>(r(),f(D,{key:JSON.stringify(s)},["link"in s?(r(),$(ke,{key:0,item:s},null,8,["item"])):"component"in s?(r(),$(K(s.component),ee({key:1,ref_for:!0},s.props),null,16)):(r(),$(zs,{key:2,text:s.text,items:s.items},null,8,["text","items"]))],64))),128))])):b("",!0),p(e.$slots,"default",{},void 0,!0)]))}}),Ws=S(qs,[["__scopeId","data-v-4397d6aa"]]),Js=t=>(x("data-v-4e740509"),t=t(),j(),t),Ys=["aria-expanded","aria-label"],Xs={key:0,class:"text"},Qs=["innerHTML"],Zs=Js(()=>u("span",{class:"vpi-chevron-down text-icon"},null,-1)),ea={key:1,class:"vpi-more-horizontal icon"},ta={class:"menu"},na=m({__name:"VPFlyout",props:{icon:{},button:{},label:{},items:{}},setup(t){const e=I(!1),n=I();Os({el:n,onBlur:s});function s(){e.value=!1}return(o,a)=>(r(),f("div",{class:"VPFlyout",ref_key:"el",ref:n,onMouseenter:a[1]||(a[1]=i=>e.value=!0),onMouseleave:a[2]||(a[2]=i=>e.value=!1)},[u("button",{type:"button",class:"button","aria-haspopup":"true","aria-expanded":e.value,"aria-label":o.label,onClick:a[0]||(a[0]=i=>e.value=!e.value)},[o.button||o.icon?(r(),f("span",Xs,[o.icon?(r(),f("span",{key:0,class:F([o.icon,"option-icon"])},null,2)):b("",!0),o.button?(r(),f("span",{key:1,innerHTML:o.button},null,8,Qs)):b("",!0),Zs])):(r(),f("span",ea))],8,Ys),u("div",ta,[w(Ws,{items:o.items},{default:v(()=>[p(o.$slots,"default",{},void 0,!0)]),_:3},8,["items"])])],544))}}),xe=S(na,[["__scopeId","data-v-4e740509"]]),oa=["href","aria-label","innerHTML"],sa=m({__name:"VPSocialLink",props:{icon:{},link:{},ariaLabel:{}},setup(t){const e=t,n=T(()=>typeof e.icon=="object"?e.icon.svg:``);return(s,o)=>(r(),f("a",{class:"VPSocialLink no-icon",href:s.link,"aria-label":s.ariaLabel??(typeof s.icon=="string"?s.icon:""),target:"_blank",rel:"noopener",innerHTML:n.value},null,8,oa))}}),aa=S(sa,[["__scopeId","data-v-9abc2d2a"]]),ra={class:"VPSocialLinks"},ia=m({__name:"VPSocialLinks",props:{links:{}},setup(t){return(e,n)=>(r(),f("div",ra,[(r(!0),f(D,null,U(e.links,({link:s,icon:o,ariaLabel:a})=>(r(),$(aa,{key:s,icon:o,link:s,ariaLabel:a},null,8,["icon","link","ariaLabel"]))),128))]))}}),je=S(ia,[["__scopeId","data-v-b1e9369e"]]),la={key:0,class:"group translations"},ca={class:"trans-title"},ua={key:1,class:"group"},da={class:"item appearance"},fa={class:"label"},pa={class:"appearance-action"},va={key:2,class:"group"},ha={class:"item social-links"},_a=m({__name:"VPNavBarExtra",setup(t){const{site:e,theme:n}=O(),{localeLinks:s,currentLang:o}=ue({correspondingLink:!0}),a=T(()=>s.value.length&&o.value.label||e.value.appearance||n.value.socialLinks);return(i,l)=>a.value?(r(),$(xe,{key:0,class:"VPNavBarExtra",label:"extra navigation"},{default:v(()=>[c(s).length&&c(o).label?(r(),f("div",la,[u("p",ca,C(c(o).label),1),(r(!0),f(D,null,U(c(s),d=>(r(),$(ke,{key:d.link,item:d},null,8,["item"]))),128))])):b("",!0),c(e).appearance&&c(e).appearance!=="force-dark"&&c(e).appearance!=="force-auto"?(r(),f("div",ua,[u("div",da,[u("p",fa,C(c(n).darkModeSwitchLabel||"Appearance"),1),u("div",pa,[w(De)])])])):b("",!0),c(n).socialLinks?(r(),f("div",va,[u("div",ha,[w(je,{class:"social-links-list",links:c(n).socialLinks},null,8,["links"])])])):b("",!0)]),_:1})):b("",!0)}}),ma=S(_a,[["__scopeId","data-v-02848efe"]]),ga=t=>(x("data-v-2849f847"),t=t(),j(),t),ba=["aria-expanded"],ya=ga(()=>u("span",{class:"container"},[u("span",{class:"top"}),u("span",{class:"middle"}),u("span",{class:"bottom"})],-1)),ka=[ya],$a=m({__name:"VPNavBarHamburger",props:{active:{type:Boolean}},emits:["click"],setup(t){return(e,n)=>(r(),f("button",{type:"button",class:F(["VPNavBarHamburger",{active:e.active}]),"aria-label":"mobile navigation","aria-expanded":e.active,"aria-controls":"VPNavScreen",onClick:n[0]||(n[0]=s=>e.$emit("click"))},ka,10,ba))}}),Sa=S($a,[["__scopeId","data-v-2849f847"]]),Pa=["innerHTML"],wa=m({__name:"VPNavBarMenuLink",props:{item:{}},setup(t){const{page:e}=O();return(n,s)=>(r(),$(q,{class:F({VPNavBarMenuLink:!0,active:c(oe)(c(e).relativePath,n.item.activeMatch||n.item.link,!!n.item.activeMatch)}),href:n.item.link,noIcon:n.item.noIcon,target:n.item.target,rel:n.item.rel,tabindex:"0"},{default:v(()=>[u("span",{innerHTML:n.item.text},null,8,Pa)]),_:1},8,["class","href","noIcon","target","rel"]))}}),La=S(wa,[["__scopeId","data-v-c1f5da45"]]),Va=m({__name:"VPNavBarMenuGroup",props:{item:{}},setup(t){const e=t,{page:n}=O(),s=a=>"component"in a?!1:"link"in a?oe(n.value.relativePath,a.link,!!e.item.activeMatch):a.items.some(s),o=T(()=>s(e.item));return(a,i)=>(r(),$(xe,{class:F({VPNavBarMenuGroup:!0,active:c(oe)(c(n).relativePath,a.item.activeMatch,!!a.item.activeMatch)||o.value}),button:a.item.text,items:a.item.items},null,8,["class","button","items"]))}}),Ta=t=>(x("data-v-a0b069c0"),t=t(),j(),t),Ia={key:0,"aria-labelledby":"main-nav-aria-label",class:"VPNavBarMenu"},Ca=Ta(()=>u("span",{id:"main-nav-aria-label",class:"visually-hidden"}," Main Navigation ",-1)),Na=m({__name:"VPNavBarMenu",setup(t){const{theme:e}=O();return(n,s)=>c(e).nav?(r(),f("nav",Ia,[Ca,(r(!0),f(D,null,U(c(e).nav,o=>(r(),f(D,{key:JSON.stringify(o)},["link"in o?(r(),$(La,{key:0,item:o},null,8,["item"])):"component"in o?(r(),$(K(o.component),ee({key:1,ref_for:!0},o.props),null,16)):(r(),$(Va,{key:2,item:o},null,8,["item"]))],64))),128))])):b("",!0)}}),Aa=S(Na,[["__scopeId","data-v-a0b069c0"]]);function Ma(t){const{localeIndex:e,theme:n}=O();function s(o){var V,M,k;const a=o.split("."),i=(V=n.value.search)==null?void 0:V.options,l=i&&typeof i=="object",d=l&&((k=(M=i.locales)==null?void 0:M[e.value])==null?void 0:k.translations)||null,h=l&&i.translations||null;let g=d,_=h,y=t;const N=a.pop();for(const R of a){let z=null;const X=y==null?void 0:y[R];X&&(z=y=X);const ne=_==null?void 0:_[R];ne&&(z=_=ne);const Q=g==null?void 0:g[R];Q&&(z=g=Q),X||(y=z),ne||(_=z),Q||(g=z)}return(g==null?void 0:g[N])??(_==null?void 0:_[N])??(y==null?void 0:y[N])??""}return s}const Ea=["aria-label"],Ba={class:"DocSearch-Button-Container"},Oa=u("span",{class:"vp-icon DocSearch-Search-Icon"},null,-1),Ha={class:"DocSearch-Button-Placeholder"},Da=u("span",{class:"DocSearch-Button-Keys"},[u("kbd",{class:"DocSearch-Button-Key"}),u("kbd",{class:"DocSearch-Button-Key"},"K")],-1),Ge=m({__name:"VPNavBarSearchButton",setup(t){const n=Ma({button:{buttonText:"Search",buttonAriaLabel:"Search"}});return(s,o)=>(r(),f("button",{type:"button",class:"DocSearch DocSearch-Button","aria-label":c(n)("button.buttonAriaLabel")},[u("span",Ba,[Oa,u("span",Ha,C(c(n)("button.buttonText")),1)]),Da],8,Ea))}}),Fa={class:"VPNavBarSearch"},xa={id:"local-search"},ja={key:1,id:"docsearch"},Ra=m({__name:"VPNavBarSearch",setup(t){const e=Ot(()=>Ht(()=>import("./VPLocalSearchBox.C7qBXiSn.js"),__vite__mapDeps([0,1]))),n=()=>null,{theme:s}=O(),o=I(!1),a=I(!1);te(()=>{});function i(){o.value||(o.value=!0,setTimeout(l,16))}function l(){const _=new Event("keydown");_.key="k",_.metaKey=!0,window.dispatchEvent(_),setTimeout(()=>{document.querySelector(".DocSearch-Modal")||l()},16)}function d(_){const y=_.target,N=y.tagName;return y.isContentEditable||N==="INPUT"||N==="SELECT"||N==="TEXTAREA"}const h=I(!1);Le("k",_=>{(_.ctrlKey||_.metaKey)&&(_.preventDefault(),h.value=!0)}),Le("/",_=>{d(_)||(_.preventDefault(),h.value=!0)});const g="local";return(_,y)=>{var N;return r(),f("div",Fa,[c(g)==="local"?(r(),f(D,{key:0},[h.value?(r(),$(c(e),{key:0,onClose:y[0]||(y[0]=V=>h.value=!1)})):b("",!0),u("div",xa,[w(Ge,{onClick:y[1]||(y[1]=V=>h.value=!0)})])],64)):c(g)==="algolia"?(r(),f(D,{key:1},[o.value?(r(),$(c(n),{key:0,algolia:((N=c(s).search)==null?void 0:N.options)??c(s).algolia,onVnodeBeforeMount:y[2]||(y[2]=V=>a.value=!0)},null,8,["algolia"])):b("",!0),a.value?b("",!0):(r(),f("div",ja,[w(Ge,{onClick:i})]))],64)):b("",!0)])}}}),Ua=m({__name:"VPNavBarSocialLinks",setup(t){const{theme:e}=O();return(n,s)=>c(e).socialLinks?(r(),$(je,{key:0,class:"VPNavBarSocialLinks",links:c(e).socialLinks},null,8,["links"])):b("",!0)}}),za=S(Ua,[["__scopeId","data-v-ca530fac"]]),Ga=["href","rel","target"],Ka={key:1},qa={key:2},Wa=m({__name:"VPNavBarTitle",setup(t){const{site:e,theme:n}=O(),{hasSidebar:s}=Y(),{currentLang:o}=ue(),a=T(()=>{var d;return typeof n.value.logoLink=="string"?n.value.logoLink:(d=n.value.logoLink)==null?void 0:d.link}),i=T(()=>{var d;return typeof n.value.logoLink=="string"||(d=n.value.logoLink)==null?void 0:d.rel}),l=T(()=>{var d;return typeof n.value.logoLink=="string"||(d=n.value.logoLink)==null?void 0:d.target});return(d,h)=>(r(),f("div",{class:F(["VPNavBarTitle",{"has-sidebar":c(s)}])},[u("a",{class:"title",href:a.value??c(Oe)(c(o).link),rel:i.value,target:l.value},[p(d.$slots,"nav-bar-title-before",{},void 0,!0),c(n).logo?(r(),$(he,{key:0,class:"logo",image:c(n).logo},null,8,["image"])):b("",!0),c(n).siteTitle?(r(),f("span",Ka,C(c(n).siteTitle),1)):c(n).siteTitle===void 0?(r(),f("span",qa,C(c(e).title),1)):b("",!0),p(d.$slots,"nav-bar-title-after",{},void 0,!0)],8,Ga)],2))}}),Ja=S(Wa,[["__scopeId","data-v-01425599"]]),Ya={class:"items"},Xa={class:"title"},Qa=m({__name:"VPNavBarTranslations",setup(t){const{theme:e}=O(),{localeLinks:n,currentLang:s}=ue({correspondingLink:!0});return(o,a)=>c(n).length&&c(s).label?(r(),$(xe,{key:0,class:"VPNavBarTranslations",icon:"vpi-languages",label:c(e).langMenuLabel||"Change language"},{default:v(()=>[u("div",Ya,[u("p",Xa,C(c(s).label),1),(r(!0),f(D,null,U(c(n),i=>(r(),$(ke,{key:i.link,item:i},null,8,["item"]))),128))])]),_:1},8,["label"])):b("",!0)}}),Za=S(Qa,[["__scopeId","data-v-a0e85ae2"]]),er=t=>(x("data-v-03df6358"),t=t(),j(),t),tr={class:"wrapper"},nr={class:"container"},or={class:"title"},sr={class:"content"},ar={class:"content-body"},rr=er(()=>u("div",{class:"divider"},[u("div",{class:"divider-line"})],-1)),ir=m({__name:"VPNavBar",props:{isScreenOpen:{type:Boolean}},emits:["toggle-screen"],setup(t){const e=t,{y:n}=Ze(),{hasSidebar:s}=Y(),{frontmatter:o}=O(),a=I({});return Ee(()=>{a.value={"has-sidebar":s.value,home:o.value.layout==="home",top:n.value===0,"screen-open":e.isScreenOpen}}),(i,l)=>(r(),f("div",{class:F(["VPNavBar",a.value])},[u("div",tr,[u("div",nr,[u("div",or,[w(Ja,null,{"nav-bar-title-before":v(()=>[p(i.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":v(()=>[p(i.$slots,"nav-bar-title-after",{},void 0,!0)]),_:3})]),u("div",sr,[u("div",ar,[p(i.$slots,"nav-bar-content-before",{},void 0,!0),w(Ra,{class:"search"}),w(Aa,{class:"menu"}),w(Za,{class:"translations"}),w(Bs,{class:"appearance"}),w(za,{class:"social-links"}),w(ma,{class:"extra"}),p(i.$slots,"nav-bar-content-after",{},void 0,!0),w(Sa,{class:"hamburger",active:i.isScreenOpen,onClick:l[0]||(l[0]=d=>i.$emit("toggle-screen"))},null,8,["active"])])])])]),rr],2))}}),lr=S(ir,[["__scopeId","data-v-03df6358"]]),cr={key:0,class:"VPNavScreenAppearance"},ur={class:"text"},dr=m({__name:"VPNavScreenAppearance",setup(t){const{site:e,theme:n}=O();return(s,o)=>c(e).appearance&&c(e).appearance!=="force-dark"&&c(e).appearance!=="force-auto"?(r(),f("div",cr,[u("p",ur,C(c(n).darkModeSwitchLabel||"Appearance"),1),w(De)])):b("",!0)}}),fr=S(dr,[["__scopeId","data-v-bd6a2777"]]),pr=m({__name:"VPNavScreenMenuLink",props:{item:{}},setup(t){const e=ce("close-screen");return(n,s)=>(r(),$(q,{class:"VPNavScreenMenuLink",href:n.item.link,target:n.item.target,rel:n.item.rel,onClick:c(e),innerHTML:n.item.text},null,8,["href","target","rel","onClick","innerHTML"]))}}),vr=S(pr,[["__scopeId","data-v-b37d669d"]]),hr=m({__name:"VPNavScreenMenuGroupLink",props:{item:{}},setup(t){const e=ce("close-screen");return(n,s)=>(r(),$(q,{class:"VPNavScreenMenuGroupLink",href:n.item.link,target:n.item.target,rel:n.item.rel,onClick:c(e)},{default:v(()=>[W(C(n.item.text),1)]),_:1},8,["href","target","rel","onClick"]))}}),ft=S(hr,[["__scopeId","data-v-fa8446d3"]]),_r={class:"VPNavScreenMenuGroupSection"},mr={key:0,class:"title"},gr=m({__name:"VPNavScreenMenuGroupSection",props:{text:{},items:{}},setup(t){return(e,n)=>(r(),f("div",_r,[e.text?(r(),f("p",mr,C(e.text),1)):b("",!0),(r(!0),f(D,null,U(e.items,s=>(r(),$(ft,{key:s.text,item:s},null,8,["item"]))),128))]))}}),br=S(gr,[["__scopeId","data-v-19fc8329"]]),yr=t=>(x("data-v-b87097e2"),t=t(),j(),t),kr=["aria-controls","aria-expanded"],$r=["innerHTML"],Sr=yr(()=>u("span",{class:"vpi-plus button-icon"},null,-1)),Pr=["id"],wr={key:0,class:"item"},Lr={key:1,class:"item"},Vr={key:2,class:"group"},Tr=m({__name:"VPNavScreenMenuGroup",props:{text:{},items:{}},setup(t){const e=t,n=I(!1),s=T(()=>`NavScreenGroup-${e.text.replace(" ","-").toLowerCase()}`);function o(){n.value=!n.value}return(a,i)=>(r(),f("div",{class:F(["VPNavScreenMenuGroup",{open:n.value}])},[u("button",{class:"button","aria-controls":s.value,"aria-expanded":n.value,onClick:o},[u("span",{class:"button-text",innerHTML:a.text},null,8,$r),Sr],8,kr),u("div",{id:s.value,class:"items"},[(r(!0),f(D,null,U(a.items,l=>(r(),f(D,{key:JSON.stringify(l)},["link"in l?(r(),f("div",wr,[w(ft,{item:l},null,8,["item"])])):"component"in l?(r(),f("div",Lr,[(r(),$(K(l.component),ee({ref_for:!0},l.props,{"screen-menu":""}),null,16))])):(r(),f("div",Vr,[w(br,{text:l.text,items:l.items},null,8,["text","items"])]))],64))),128))],8,Pr)],2))}}),Ir=S(Tr,[["__scopeId","data-v-b87097e2"]]),Cr={key:0,class:"VPNavScreenMenu"},Nr=m({__name:"VPNavScreenMenu",setup(t){const{theme:e}=O();return(n,s)=>c(e).nav?(r(),f("nav",Cr,[(r(!0),f(D,null,U(c(e).nav,o=>(r(),f(D,{key:JSON.stringify(o)},["link"in o?(r(),$(vr,{key:0,item:o},null,8,["item"])):"component"in o?(r(),$(K(o.component),ee({key:1,ref_for:!0},o.props,{"screen-menu":""}),null,16)):(r(),$(Ir,{key:2,text:o.text||"",items:o.items},null,8,["text","items"]))],64))),128))])):b("",!0)}}),Ar=m({__name:"VPNavScreenSocialLinks",setup(t){const{theme:e}=O();return(n,s)=>c(e).socialLinks?(r(),$(je,{key:0,class:"VPNavScreenSocialLinks",links:c(e).socialLinks},null,8,["links"])):b("",!0)}}),pt=t=>(x("data-v-55a701b1"),t=t(),j(),t),Mr=pt(()=>u("span",{class:"vpi-languages icon lang"},null,-1)),Er=pt(()=>u("span",{class:"vpi-chevron-down icon chevron"},null,-1)),Br={class:"list"},Or=m({__name:"VPNavScreenTranslations",setup(t){const{localeLinks:e,currentLang:n}=ue({correspondingLink:!0}),s=I(!1);function o(){s.value=!s.value}return(a,i)=>c(e).length&&c(n).label?(r(),f("div",{key:0,class:F(["VPNavScreenTranslations",{open:s.value}])},[u("button",{class:"title",onClick:o},[Mr,W(" "+C(c(n).label)+" ",1),Er]),u("ul",Br,[(r(!0),f(D,null,U(c(e),l=>(r(),f("li",{key:l.link,class:"item"},[w(q,{class:"link",href:l.link},{default:v(()=>[W(C(l.text),1)]),_:2},1032,["href"])]))),128))])],2)):b("",!0)}}),Hr=S(Or,[["__scopeId","data-v-55a701b1"]]),Dr={class:"container"},Fr=m({__name:"VPNavScreen",props:{open:{type:Boolean}},setup(t){const e=I(null),n=et(ye?document.body:null);return(s,o)=>(r(),$(Ae,{name:"fade",onEnter:o[0]||(o[0]=a=>n.value=!0),onAfterLeave:o[1]||(o[1]=a=>n.value=!1)},{default:v(()=>[s.open?(r(),f("div",{key:0,class:"VPNavScreen",ref_key:"screen",ref:e,id:"VPNavScreen"},[u("div",Dr,[p(s.$slots,"nav-screen-content-before",{},void 0,!0),w(Nr,{class:"menu"}),w(Hr,{class:"translations"}),w(fr,{class:"appearance"}),w(Ar,{class:"social-links"}),p(s.$slots,"nav-screen-content-after",{},void 0,!0)])],512)):b("",!0)]),_:3}))}}),xr=S(Fr,[["__scopeId","data-v-39377809"]]),jr={key:0,class:"VPNav"},Rr=m({__name:"VPNav",setup(t){const{isScreenOpen:e,closeScreen:n,toggleScreen:s}=Ss(),{frontmatter:o}=O(),a=T(()=>o.value.navbar!==!1);return tt("close-screen",n),_e(()=>{ye&&document.documentElement.classList.toggle("hide-nav",!a.value)}),(i,l)=>a.value?(r(),f("header",jr,[w(lr,{"is-screen-open":c(e),onToggleScreen:c(s)},{"nav-bar-title-before":v(()=>[p(i.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":v(()=>[p(i.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":v(()=>[p(i.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":v(()=>[p(i.$slots,"nav-bar-content-after",{},void 0,!0)]),_:3},8,["is-screen-open","onToggleScreen"]),w(xr,{open:c(e)},{"nav-screen-content-before":v(()=>[p(i.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":v(()=>[p(i.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3},8,["open"])])):b("",!0)}}),Ur=S(Rr,[["__scopeId","data-v-10d5e81f"]]),vt=t=>(x("data-v-c4699b33"),t=t(),j(),t),zr=["role","tabindex"],Gr=vt(()=>u("div",{class:"indicator"},null,-1)),Kr=vt(()=>u("span",{class:"vpi-chevron-right caret-icon"},null,-1)),qr=[Kr],Wr={key:1,class:"items"},Jr=m({__name:"VPSidebarItem",props:{item:{},depth:{}},setup(t){const e=t,{collapsed:n,collapsible:s,isLink:o,isActiveLink:a,hasActiveLink:i,hasChildren:l,toggle:d}=pn(T(()=>e.item)),h=T(()=>l.value?"section":"div"),g=T(()=>o.value?"a":"div"),_=T(()=>l.value?e.depth+2===7?"p":`h${e.depth+2}`:"p"),y=T(()=>o.value?void 0:"button"),N=T(()=>[[`level-${e.depth}`],{collapsible:s.value},{collapsed:n.value},{"is-link":o.value},{"is-active":a.value},{"has-active":i.value}]);function V(k){"key"in k&&k.key!=="Enter"||!e.item.link&&d()}function M(){e.item.link&&d()}return(k,R)=>{const z=se("VPSidebarItem",!0);return r(),$(K(h.value),{class:F(["VPSidebarItem",N.value])},{default:v(()=>[k.item.text?(r(),f("div",ee({key:0,class:"item",role:y.value},Dt(k.item.items?{click:V,keydown:V}:{},!0),{tabindex:k.item.items&&0}),[Gr,k.item.link?(r(),$(q,{key:0,tag:g.value,class:"link",href:k.item.link,rel:k.item.rel,target:k.item.target},{default:v(()=>[(r(),$(K(_.value),{class:"text",innerHTML:k.item.text},null,8,["innerHTML"]))]),_:1},8,["tag","href","rel","target"])):(r(),$(K(_.value),{key:1,class:"text",innerHTML:k.item.text},null,8,["innerHTML"])),k.item.collapsed!=null&&k.item.items&&k.item.items.length?(r(),f("div",{key:2,class:"caret",role:"button","aria-label":"toggle section",onClick:M,onKeydown:Ft(M,["enter"]),tabindex:"0"},qr,32)):b("",!0)],16,zr)):b("",!0),k.item.items&&k.item.items.length?(r(),f("div",Wr,[k.depth<5?(r(!0),f(D,{key:0},U(k.item.items,X=>(r(),$(z,{key:X.text,item:X,depth:k.depth+1},null,8,["item","depth"]))),128)):b("",!0)])):b("",!0)]),_:1},8,["class"])}}}),Yr=S(Jr,[["__scopeId","data-v-c4699b33"]]),Xr=m({__name:"VPSidebarGroup",props:{items:{}},setup(t){const e=I(!0);let n=null;return te(()=>{n=setTimeout(()=>{n=null,e.value=!1},300)}),xt(()=>{n!=null&&(clearTimeout(n),n=null)}),(s,o)=>(r(!0),f(D,null,U(s.items,a=>(r(),f("div",{key:a.text,class:F(["group",{"no-transition":e.value}])},[w(Yr,{item:a,depth:0},null,8,["item"])],2))),128))}}),Qr=S(Xr,[["__scopeId","data-v-c3141239"]]),ht=t=>(x("data-v-52f4c170"),t=t(),j(),t),Zr=ht(()=>u("div",{class:"curtain"},null,-1)),ei={class:"nav",id:"VPSidebarNav","aria-labelledby":"sidebar-aria-label",tabindex:"-1"},ti=ht(()=>u("span",{class:"visually-hidden",id:"sidebar-aria-label"}," Sidebar Navigation ",-1)),ni=m({__name:"VPSidebar",props:{open:{type:Boolean}},setup(t){const{sidebarGroups:e,hasSidebar:n}=Y(),s=t,o=I(null),a=et(ye?document.body:null);J([s,o],()=>{var l;s.open?(a.value=!0,(l=o.value)==null||l.focus()):a.value=!1},{immediate:!0,flush:"post"});const i=I(0);return J(e,()=>{i.value+=1},{deep:!0}),(l,d)=>c(n)?(r(),f("aside",{key:0,class:F(["VPSidebar",{open:l.open}]),ref_key:"navEl",ref:o,onClick:d[0]||(d[0]=jt(()=>{},["stop"]))},[Zr,u("nav",ei,[ti,p(l.$slots,"sidebar-nav-before",{},void 0,!0),(r(),$(Qr,{items:c(e),key:i.value},null,8,["items"])),p(l.$slots,"sidebar-nav-after",{},void 0,!0)])],2)):b("",!0)}}),oi=S(ni,[["__scopeId","data-v-52f4c170"]]),si=m({__name:"VPSkipLink",setup(t){const e=ge(),n=I();J(()=>e.path,()=>n.value.focus());function s({target:o}){const a=document.getElementById(decodeURIComponent(o.hash).slice(1));if(a){const i=()=>{a.removeAttribute("tabindex"),a.removeEventListener("blur",i)};a.setAttribute("tabindex","-1"),a.addEventListener("blur",i),a.focus(),window.scrollTo(0,0)}}return(o,a)=>(r(),f(D,null,[u("span",{ref_key:"backToTop",ref:n,tabindex:"-1"},null,512),u("a",{href:"#VPContent",class:"VPSkipLink visually-hidden",onClick:s}," Skip to content ")],64))}}),ai=S(si,[["__scopeId","data-v-4a10e730"]]),ri=m({__name:"Layout",setup(t){const{isOpen:e,open:n,close:s}=Y(),o=ge();J(()=>o.path,s),fn(e,s);const{frontmatter:a}=O(),i=Rt(),l=T(()=>!!i["home-hero-image"]);return tt("hero-image-slot-exists",l),(d,h)=>{const g=se("Content");return c(a).layout!==!1?(r(),f("div",{key:0,class:F(["Layout",c(a).pageClass])},[p(d.$slots,"layout-top",{},void 0,!0),w(ai),w(Yt,{class:"backdrop",show:c(e),onClick:c(s)},null,8,["show","onClick"]),w(Ur,null,{"nav-bar-title-before":v(()=>[p(d.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":v(()=>[p(d.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":v(()=>[p(d.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":v(()=>[p(d.$slots,"nav-bar-content-after",{},void 0,!0)]),"nav-screen-content-before":v(()=>[p(d.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":v(()=>[p(d.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3}),w($s,{open:c(e),onOpenMenu:c(n)},null,8,["open","onOpenMenu"]),w(oi,{open:c(e)},{"sidebar-nav-before":v(()=>[p(d.$slots,"sidebar-nav-before",{},void 0,!0)]),"sidebar-nav-after":v(()=>[p(d.$slots,"sidebar-nav-after",{},void 0,!0)]),_:3},8,["open"]),w(ns,null,{"page-top":v(()=>[p(d.$slots,"page-top",{},void 0,!0)]),"page-bottom":v(()=>[p(d.$slots,"page-bottom",{},void 0,!0)]),"not-found":v(()=>[p(d.$slots,"not-found",{},void 0,!0)]),"home-hero-before":v(()=>[p(d.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info-before":v(()=>[p(d.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":v(()=>[p(d.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":v(()=>[p(d.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":v(()=>[p(d.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":v(()=>[p(d.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":v(()=>[p(d.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":v(()=>[p(d.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":v(()=>[p(d.$slots,"home-features-after",{},void 0,!0)]),"doc-footer-before":v(()=>[p(d.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":v(()=>[p(d.$slots,"doc-before",{},void 0,!0)]),"doc-after":v(()=>[p(d.$slots,"doc-after",{},void 0,!0)]),"doc-top":v(()=>[p(d.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":v(()=>[p(d.$slots,"doc-bottom",{},void 0,!0)]),"aside-top":v(()=>[p(d.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":v(()=>[p(d.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":v(()=>[p(d.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":v(()=>[p(d.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":v(()=>[p(d.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":v(()=>[p(d.$slots,"aside-ads-after",{},void 0,!0)]),_:3}),w(is),p(d.$slots,"layout-bottom",{},void 0,!0)],2)):(r(),$(g,{key:1}))}}}),ii=S(ri,[["__scopeId","data-v-4be82239"]]),_t={Layout:ii,enhanceApp:({app:t})=>{t.component("Badge",qt)}},Re="LiteyukiStudio",Ue="LiteyukiBot",li="https://api.github.com",ci="https://git.liteyuki.icu/api/v1",ui="https://api.liteyuki.icu/online",di="https://api.liteyuki.icu/count",fi="https://api.liteyuki.icu/visit",pi="https://api.liteyuki.icu/visit_count",ie=`https://github.com/${Re}/${Ue}`,Ke="https://starmap.liteyuki.icu";async function vi(){try{const t=`${ci}/repos/${Re}/${Ue}`;console.log(t);const n=await(await fetch(t)).json();return{stars:n.stars_count,forks:n.forks_count,watchers:n.watchers_count,issues:0,prs:0,size:n.size}}catch{return{stars:-1,forks:-1,watchers:-1,issues:-1,prs:-1,size:-1}}}async function hi(){try{const e=await(await fetch(`${li}/repos/${Re}/${Ue}`)).json();return{stars:e.stargazers_count,forks:e.forks_count,watchers:e.watchers_count,issues:e.open_issues_count,prs:e.open_issues_count,size:e.size}}catch{return{stars:-1,forks:-1,watchers:-1,issues:-1,prs:-1,size:-1}}}async function _i(){const t=await hi(),e=await vi();return{stars:t.stars+e.stars,forks:t.forks+e.forks,watchers:t.watchers+e.watchers,issues:t.issues+e.issues,prs:t.prs+e.prs,size:t.size+e.size}}const ae={getTotal:async()=>{try{return(await(await fetch(di)).json()).register}catch{return-1}},getOnline:async()=>{try{return(await(await fetch(ui)).json()).online}catch{return-1}},getGithubStats:_i,getPluginNum:async()=>{try{return(await(await fetch("/plugins.json")).json()).length}catch{return-1}},getResourceNum:async()=>{try{return(await(await fetch("/resources.json")).json()).length}catch{return-1}},getVisitCount:async()=>{try{return(await(await fetch(pi)).json()).count}catch{return-1}}};function mi(){const t="deviceId";let e=localStorage.getItem(t);return e||(e=bi(),localStorage.setItem(t,e)),e}async function gi(){const t=mi();try{await fetch(fi,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({device_id:t}).toString()})}catch(e){console.error("Failed to upload visit record:",e)}}function bi(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=Math.random()*16|0,n=t==="x"?e:e&3|8;return n.toString(16)})}/*! +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/chunks/VPLocalSearchBox.C-L9VQon.js","assets/chunks/framework.C4_mTacX.js"])))=>i.map(i=>d[i]); +import{u as Ne,d as m,o as r,c as f,r as p,n as F,a as W,t as C,b as $,w as v,e as b,T as Ae,_ as S,i as It,f as Ct,g as Me,h as T,j as u,k as c,p as x,l as j,m as oe,q as we,s as I,v as J,x as _e,y as te,z as le,A as Ee,B as Nt,C as At,D as se,F as D,E as U,G as Xe,H as me,I as w,J as K,K as Qe,L as ge,M as ee,N as ce,O as Mt,P as be,Q as Le,R as Et,S as Ze,U as ye,V as Bt,W as Ot,X as Ht,Y as et,Z as tt,$ as Dt,a0 as Ft,a1 as xt,a2 as jt,a3 as Rt,a4 as Ut,a5 as zt,a6 as nt,a7 as ot,a8 as Ve}from"./framework.C4_mTacX.js";const Gt={en:{stats:"Stats",online:"Online",offline:"Offline",total:"Total",fetching:"Fetching",stars:"Stars",forks:"Forks",issues:"Issues",prs:"Pull Requests",visitors:"Visitor",size:"Size",plugins:"Plugins",resources:"Resources",pluginStore:"Plugin Store",pluginStoreDesc:"Content from the LightSnow Plugin Store, LightSnow supports NoneBot through the lpnonebot plugin, and references some NoneBot plugins",liteyukiOnly:"Liteyuki Only",search:"Search",resourceStore:"Resources Store",thx_contributors:"Thanks the following contributors!"},zh:{stats:"统计信息",online:"在线",offline:"离线",total:"实例",fetching:"获取中",stars:"星标",forks:"分叉",issues:"工单",prs:"拉取请求",visitors:"访客",size:"大小",plugins:"插件",resources:"主题资源",store:"商店",pluginStore:"插件商店",pluginStoreDesc:"内容来自轻雪插件商店,轻雪通过lpnonebot插件对NoneBot实现支持,引用了部分NoneBot插件",liteyukiOnly:"仅轻雪",search:"搜索",resourceStore:"资源商店",thx_contributors:"感谢以下贡献者!"}};let ve={};function st(t,e){return t=Be(t),Gt[t][e]}function Be(t){return t.includes("-")?t.split("-")[0]:t}function Kt(){const t=Be(Ne().site.value.lang);for(let e in ve)ve[e].value=st(t,e)}function Z(t){const e=Be(Ne().site.value.lang);return ve[t]=st(e,t),ve[t]}const qt=m({__name:"VPBadge",props:{text:{},type:{default:"tip"}},setup(t){return(e,n)=>(r(),f("span",{class:F(["VPBadge",e.type])},[p(e.$slots,"default",{},()=>[W(C(e.text),1)])],2))}}),Wt={key:0,class:"VPBackdrop"},Jt=m({__name:"VPBackdrop",props:{show:{type:Boolean}},setup(t){return(e,n)=>(r(),$(Ae,{name:"fade"},{default:v(()=>[e.show?(r(),f("div",Wt)):b("",!0)]),_:1}))}}),Yt=S(Jt,[["__scopeId","data-v-8ef4ce84"]]),O=Ne;function Xt(t,e){let n,s=!1;return()=>{n&&clearTimeout(n),s?n=setTimeout(t,e):(t(),(s=!0)&&setTimeout(()=>s=!1,e))}}function Te(t){return/^\//.test(t)?t:`/${t}`}function Oe(t){const{pathname:e,search:n,hash:s,protocol:o}=new URL(t,"http://a.com");if(It(t)||t.startsWith("#")||!o.startsWith("http")||!Ct(e))return t;const{site:a}=O(),i=e.endsWith("/")||e.endsWith(".html")?t:t.replace(/(?:(^\.+)\/)?.*$/,`$1${e.replace(/(\.md)?$/,a.value.cleanUrls?"":".html")}${n}${s}`);return Me(i)}function ue({correspondingLink:t=!1}={}){const{site:e,localeIndex:n,page:s,theme:o,hash:a}=O(),i=T(()=>{var d,h;return{label:(d=e.value.locales[n.value])==null?void 0:d.label,link:((h=e.value.locales[n.value])==null?void 0:h.link)||(n.value==="root"?"/":`/${n.value}/`)}});return{localeLinks:T(()=>Object.entries(e.value.locales).flatMap(([d,h])=>i.value.label===h.label?[]:{text:h.label,link:Qt(h.link||(d==="root"?"/":`/${d}/`),o.value.i18nRouting!==!1&&t,s.value.relativePath.slice(i.value.link.length-1),!e.value.cleanUrls)+a.value})),currentLang:i}}function Qt(t,e,n,s){return e?t.replace(/\/$/,"")+Te(n.replace(/(^|\/)index\.md$/,"$1").replace(/\.md$/,s?".html":"")):t}const Zt=t=>(x("data-v-61e78ba6"),t=t(),j(),t),en={class:"NotFound"},tn={class:"code"},nn={class:"title"},on=Zt(()=>u("div",{class:"divider"},null,-1)),sn={class:"quote"},an={class:"action"},rn=["href","aria-label"],ln=m({__name:"NotFound",setup(t){const{theme:e}=O(),{currentLang:n}=ue();return(s,o)=>{var a,i,l,d,h;return r(),f("div",en,[u("p",tn,C(((a=c(e).notFound)==null?void 0:a.code)??"404"),1),u("h1",nn,C(((i=c(e).notFound)==null?void 0:i.title)??"PAGE NOT FOUND"),1),on,u("blockquote",sn,C(((l=c(e).notFound)==null?void 0:l.quote)??"But if you don't change your direction, and if you keep looking, you may end up where you are heading."),1),u("div",an,[u("a",{class:"link",href:c(Me)(c(n).link),"aria-label":((d=c(e).notFound)==null?void 0:d.linkLabel)??"go to home"},C(((h=c(e).notFound)==null?void 0:h.linkText)??"Take me home"),9,rn)])])}}}),cn=S(ln,[["__scopeId","data-v-61e78ba6"]]);function at(t,e){if(Array.isArray(t))return pe(t);if(t==null)return[];e=Te(e);const n=Object.keys(t).sort((o,a)=>a.split("/").length-o.split("/").length).find(o=>e.startsWith(Te(o))),s=n?t[n]:[];return Array.isArray(s)?pe(s):pe(s.items,s.base)}function un(t){const e=[];let n=0;for(const s in t){const o=t[s];if(o.items){n=e.push(o);continue}e[n]||e.push({items:[]}),e[n].items.push(o)}return e}function dn(t){const e=[];function n(s){for(const o of s)o.text&&o.link&&e.push({text:o.text,link:o.link,docFooterText:o.docFooterText}),o.items&&n(o.items)}return n(t),e}function Ie(t,e){return Array.isArray(e)?e.some(n=>Ie(t,n)):oe(t,e.link)?!0:e.items?Ie(t,e.items):!1}function pe(t,e){return[...t].map(n=>{const s={...n},o=s.base||e;return o&&s.link&&(s.link=o+s.link),s.items&&(s.items=pe(s.items,o)),s})}function Y(){const{frontmatter:t,page:e,theme:n}=O(),s=we("(min-width: 960px)"),o=I(!1),a=T(()=>{const M=n.value.sidebar,k=e.value.relativePath;return M?at(M,k):[]}),i=I(a.value);J(a,(M,k)=>{JSON.stringify(M)!==JSON.stringify(k)&&(i.value=a.value)});const l=T(()=>t.value.sidebar!==!1&&i.value.length>0&&t.value.layout!=="home"),d=T(()=>h?t.value.aside==null?n.value.aside==="left":t.value.aside==="left":!1),h=T(()=>t.value.layout==="home"?!1:t.value.aside!=null?!!t.value.aside:n.value.aside!==!1),g=T(()=>l.value&&s.value),_=T(()=>l.value?un(i.value):[]);function y(){o.value=!0}function N(){o.value=!1}function V(){o.value?N():y()}return{isOpen:o,sidebar:i,sidebarGroups:_,hasSidebar:l,hasAside:h,leftAside:d,isSidebarEnabled:g,open:y,close:N,toggle:V}}function fn(t,e){let n;_e(()=>{n=t.value?document.activeElement:void 0}),te(()=>{window.addEventListener("keyup",s)}),le(()=>{window.removeEventListener("keyup",s)});function s(o){o.key==="Escape"&&t.value&&(e(),n==null||n.focus())}}function pn(t){const{page:e,hash:n}=O(),s=I(!1),o=T(()=>t.value.collapsed!=null),a=T(()=>!!t.value.link),i=I(!1),l=()=>{i.value=oe(e.value.relativePath,t.value.link)};J([e,t,n],l),te(l);const d=T(()=>i.value?!0:t.value.items?Ie(e.value.relativePath,t.value.items):!1),h=T(()=>!!(t.value.items&&t.value.items.length));_e(()=>{s.value=!!(o.value&&t.value.collapsed)}),Ee(()=>{(i.value||d.value)&&(s.value=!1)});function g(){o.value&&(s.value=!s.value)}return{collapsed:s,collapsible:o,isLink:a,isActiveLink:i,hasActiveLink:d,hasChildren:h,toggle:g}}function vn(){const{hasSidebar:t}=Y(),e=we("(min-width: 960px)"),n=we("(min-width: 1280px)");return{isAsideEnabled:T(()=>!n.value&&!e.value?!1:t.value?n.value:e.value)}}const Ce=[];function rt(t){return typeof t.outline=="object"&&!Array.isArray(t.outline)&&t.outline.label||t.outlineTitle||"On this page"}function He(t){const e=[...document.querySelectorAll(".VPDoc :where(h1,h2,h3,h4,h5,h6)")].filter(n=>n.id&&n.hasChildNodes()).map(n=>{const s=Number(n.tagName[1]);return{element:n,title:hn(n),link:"#"+n.id,level:s}});return _n(e,t)}function hn(t){let e="";for(const n of t.childNodes)if(n.nodeType===1){if(n.classList.contains("VPBadge")||n.classList.contains("header-anchor")||n.classList.contains("ignore-header"))continue;e+=n.textContent}else n.nodeType===3&&(e+=n.textContent);return e.trim()}function _n(t,e){if(e===!1)return[];const n=(typeof e=="object"&&!Array.isArray(e)?e.level:e)||2,[s,o]=typeof n=="number"?[n,n]:n==="deep"?[2,6]:n;t=t.filter(i=>i.level>=s&&i.level<=o),Ce.length=0;for(const{element:i,link:l}of t)Ce.push({element:i,link:l});const a=[];e:for(let i=0;i=0;d--){const h=t[d];if(h.level{requestAnimationFrame(a),window.addEventListener("scroll",s)}),Nt(()=>{i(location.hash)}),le(()=>{window.removeEventListener("scroll",s)});function a(){if(!n.value)return;const l=window.scrollY,d=window.innerHeight,h=document.body.offsetHeight,g=Math.abs(l+d-h)<1,_=Ce.map(({element:N,link:V})=>({link:V,top:gn(N)})).filter(({top:N})=>!Number.isNaN(N)).sort((N,V)=>N.top-V.top);if(!_.length){i(null);return}if(l<1){i(null);return}if(g){i(_[_.length-1].link);return}let y=null;for(const{link:N,top:V}of _){if(V>l+At()+4)break;y=N}i(y)}function i(l){o&&o.classList.remove("active"),l==null?o=null:o=t.value.querySelector(`a[href="${decodeURIComponent(l)}"]`);const d=o;d?(d.classList.add("active"),e.value.style.top=d.offsetTop+39+"px",e.value.style.opacity="1"):(e.value.style.top="33px",e.value.style.opacity="0")}}function gn(t){let e=0;for(;t!==document.body;){if(t===null)return NaN;e+=t.offsetTop,t=t.offsetParent}return e}const bn=["href","title"],yn=m({__name:"VPDocOutlineItem",props:{headers:{},root:{type:Boolean}},setup(t){function e({target:n}){const s=n.href.split("#")[1],o=document.getElementById(decodeURIComponent(s));o==null||o.focus({preventScroll:!0})}return(n,s)=>{const o=se("VPDocOutlineItem",!0);return r(),f("ul",{class:F(["VPDocOutlineItem",n.root?"root":"nested"])},[(r(!0),f(D,null,U(n.headers,({children:a,link:i,title:l})=>(r(),f("li",null,[u("a",{class:"outline-link",href:i,onClick:e,title:l},C(l),9,bn),a!=null&&a.length?(r(),$(o,{key:0,headers:a},null,8,["headers"])):b("",!0)]))),256))],2)}}}),it=S(yn,[["__scopeId","data-v-75d41a09"]]),kn={class:"content"},$n={"aria-level":"2",class:"outline-title",id:"doc-outline-aria-label",role:"heading"},Sn=m({__name:"VPDocAsideOutline",setup(t){const{frontmatter:e,theme:n}=O(),s=Xe([]);me(()=>{s.value=He(e.value.outline??n.value.outline)});const o=I(),a=I();return mn(o,a),(i,l)=>(r(),f("nav",{"aria-labelledby":"doc-outline-aria-label",class:F(["VPDocAsideOutline",{"has-outline":s.value.length>0}]),ref_key:"container",ref:o},[u("div",kn,[u("div",{class:"outline-marker",ref_key:"marker",ref:a},null,512),u("div",$n,C(c(rt)(c(n))),1),w(it,{headers:s.value,root:!0},null,8,["headers"])])],2))}}),Pn=S(Sn,[["__scopeId","data-v-1a7b7e3f"]]),wn={class:"VPDocAsideCarbonAds"},Ln=m({__name:"VPDocAsideCarbonAds",props:{carbonAds:{}},setup(t){const e=()=>null;return(n,s)=>(r(),f("div",wn,[w(c(e),{"carbon-ads":n.carbonAds},null,8,["carbon-ads"])]))}}),Vn=t=>(x("data-v-ba54ca11"),t=t(),j(),t),Tn={class:"VPDocAside"},In=Vn(()=>u("div",{class:"spacer"},null,-1)),Cn=m({__name:"VPDocAside",setup(t){const{theme:e}=O();return(n,s)=>(r(),f("div",Tn,[p(n.$slots,"aside-top",{},void 0,!0),p(n.$slots,"aside-outline-before",{},void 0,!0),w(Pn),p(n.$slots,"aside-outline-after",{},void 0,!0),In,p(n.$slots,"aside-ads-before",{},void 0,!0),c(e).carbonAds?(r(),$(Ln,{key:0,"carbon-ads":c(e).carbonAds},null,8,["carbon-ads"])):b("",!0),p(n.$slots,"aside-ads-after",{},void 0,!0),p(n.$slots,"aside-bottom",{},void 0,!0)]))}}),Nn=S(Cn,[["__scopeId","data-v-ba54ca11"]]);function An(){const{theme:t,page:e}=O();return T(()=>{const{text:n="Edit this page",pattern:s=""}=t.value.editLink||{};let o;return typeof s=="function"?o=s(e.value):o=s.replace(/:path/g,e.value.filePath),{url:o,text:n}})}function Mn(){const{page:t,theme:e,frontmatter:n}=O();return T(()=>{var h,g,_,y,N,V,M,k;const s=at(e.value.sidebar,t.value.relativePath),o=dn(s),a=En(o,R=>R.link.replace(/[?#].*$/,"")),i=a.findIndex(R=>oe(t.value.relativePath,R.link)),l=((h=e.value.docFooter)==null?void 0:h.prev)===!1&&!n.value.prev||n.value.prev===!1,d=((g=e.value.docFooter)==null?void 0:g.next)===!1&&!n.value.next||n.value.next===!1;return{prev:l?void 0:{text:(typeof n.value.prev=="string"?n.value.prev:typeof n.value.prev=="object"?n.value.prev.text:void 0)??((_=a[i-1])==null?void 0:_.docFooterText)??((y=a[i-1])==null?void 0:y.text),link:(typeof n.value.prev=="object"?n.value.prev.link:void 0)??((N=a[i-1])==null?void 0:N.link)},next:d?void 0:{text:(typeof n.value.next=="string"?n.value.next:typeof n.value.next=="object"?n.value.next.text:void 0)??((V=a[i+1])==null?void 0:V.docFooterText)??((M=a[i+1])==null?void 0:M.text),link:(typeof n.value.next=="object"?n.value.next.link:void 0)??((k=a[i+1])==null?void 0:k.link)}}})}function En(t,e){const n=new Set;return t.filter(s=>{const o=e(s);return n.has(o)?!1:n.add(o)})}const q=m({__name:"VPLink",props:{tag:{},href:{},noIcon:{type:Boolean},target:{},rel:{}},setup(t){const e=t,n=T(()=>e.tag??(e.href?"a":"span")),s=T(()=>e.href&&Qe.test(e.href)||e.target==="_blank");return(o,a)=>(r(),$(K(n.value),{class:F(["VPLink",{link:o.href,"vp-external-link-icon":s.value,"no-icon":o.noIcon}]),href:o.href?c(Oe)(o.href):void 0,target:o.target??(s.value?"_blank":void 0),rel:o.rel??(s.value?"noreferrer":void 0)},{default:v(()=>[p(o.$slots,"default")]),_:3},8,["class","href","target","rel"]))}}),Bn={class:"VPLastUpdated"},On=["datetime"],Hn=m({__name:"VPDocFooterLastUpdated",setup(t){const{theme:e,page:n,lang:s}=O(),o=T(()=>new Date(n.value.lastUpdated)),a=T(()=>o.value.toISOString()),i=I("");return te(()=>{_e(()=>{var l,d,h;i.value=new Intl.DateTimeFormat((d=(l=e.value.lastUpdated)==null?void 0:l.formatOptions)!=null&&d.forceLocale?s.value:void 0,((h=e.value.lastUpdated)==null?void 0:h.formatOptions)??{dateStyle:"short",timeStyle:"short"}).format(o.value)})}),(l,d)=>{var h;return r(),f("p",Bn,[W(C(((h=c(e).lastUpdated)==null?void 0:h.text)||c(e).lastUpdatedText||"Last updated")+": ",1),u("time",{datetime:a.value},C(i.value),9,On)])}}}),Dn=S(Hn,[["__scopeId","data-v-e2247888"]]),lt=t=>(x("data-v-bb44dcf3"),t=t(),j(),t),Fn={key:0,class:"VPDocFooter"},xn={key:0,class:"edit-info"},jn={key:0,class:"edit-link"},Rn=lt(()=>u("span",{class:"vpi-square-pen edit-link-icon"},null,-1)),Un={key:1,class:"last-updated"},zn={key:1,class:"prev-next","aria-labelledby":"doc-footer-aria-label"},Gn=lt(()=>u("span",{class:"visually-hidden",id:"doc-footer-aria-label"},"Pager",-1)),Kn={class:"pager"},qn=["innerHTML"],Wn=["innerHTML"],Jn={class:"pager"},Yn=["innerHTML"],Xn=["innerHTML"],Qn=m({__name:"VPDocFooter",setup(t){const{theme:e,page:n,frontmatter:s}=O(),o=An(),a=Mn(),i=T(()=>e.value.editLink&&s.value.editLink!==!1),l=T(()=>n.value.lastUpdated),d=T(()=>i.value||l.value||a.value.prev||a.value.next);return(h,g)=>{var _,y,N,V;return d.value?(r(),f("footer",Fn,[p(h.$slots,"doc-footer-before",{},void 0,!0),i.value||l.value?(r(),f("div",xn,[i.value?(r(),f("div",jn,[w(q,{class:"edit-link-button",href:c(o).url,"no-icon":!0},{default:v(()=>[Rn,W(" "+C(c(o).text),1)]),_:1},8,["href"])])):b("",!0),l.value?(r(),f("div",Un,[w(Dn)])):b("",!0)])):b("",!0),(_=c(a).prev)!=null&&_.link||(y=c(a).next)!=null&&y.link?(r(),f("nav",zn,[Gn,u("div",Kn,[(N=c(a).prev)!=null&&N.link?(r(),$(q,{key:0,class:"pager-link prev",href:c(a).prev.link},{default:v(()=>{var M;return[u("span",{class:"desc",innerHTML:((M=c(e).docFooter)==null?void 0:M.prev)||"Previous page"},null,8,qn),u("span",{class:"title",innerHTML:c(a).prev.text},null,8,Wn)]}),_:1},8,["href"])):b("",!0)]),u("div",Jn,[(V=c(a).next)!=null&&V.link?(r(),$(q,{key:0,class:"pager-link next",href:c(a).next.link},{default:v(()=>{var M;return[u("span",{class:"desc",innerHTML:((M=c(e).docFooter)==null?void 0:M.next)||"Next page"},null,8,Yn),u("span",{class:"title",innerHTML:c(a).next.text},null,8,Xn)]}),_:1},8,["href"])):b("",!0)])])):b("",!0)])):b("",!0)}}}),Zn=S(Qn,[["__scopeId","data-v-bb44dcf3"]]),eo=t=>(x("data-v-1b1e6eb6"),t=t(),j(),t),to={class:"container"},no=eo(()=>u("div",{class:"aside-curtain"},null,-1)),oo={class:"aside-container"},so={class:"aside-content"},ao={class:"content"},ro={class:"content-container"},io={class:"main"},lo=m({__name:"VPDoc",setup(t){const{theme:e}=O(),n=ge(),{hasSidebar:s,hasAside:o,leftAside:a}=Y(),i=T(()=>n.path.replace(/[./]+/g,"_").replace(/_html$/,""));return(l,d)=>{const h=se("Content");return r(),f("div",{class:F(["VPDoc",{"has-sidebar":c(s),"has-aside":c(o)}])},[p(l.$slots,"doc-top",{},void 0,!0),u("div",to,[c(o)?(r(),f("div",{key:0,class:F(["aside",{"left-aside":c(a)}])},[no,u("div",oo,[u("div",so,[w(Nn,null,{"aside-top":v(()=>[p(l.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":v(()=>[p(l.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":v(()=>[p(l.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":v(()=>[p(l.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":v(()=>[p(l.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":v(()=>[p(l.$slots,"aside-ads-after",{},void 0,!0)]),_:3})])])],2)):b("",!0),u("div",ao,[u("div",ro,[p(l.$slots,"doc-before",{},void 0,!0),u("main",io,[w(h,{class:F(["vp-doc",[i.value,c(e).externalLinkIcon&&"external-link-icon-enabled"]])},null,8,["class"])]),w(Zn,null,{"doc-footer-before":v(()=>[p(l.$slots,"doc-footer-before",{},void 0,!0)]),_:3}),p(l.$slots,"doc-after",{},void 0,!0)])])]),p(l.$slots,"doc-bottom",{},void 0,!0)],2)}}}),co=S(lo,[["__scopeId","data-v-1b1e6eb6"]]),uo=m({__name:"VPButton",props:{tag:{},size:{default:"medium"},theme:{default:"brand"},text:{},href:{},target:{},rel:{}},setup(t){const e=t,n=T(()=>e.href&&Qe.test(e.href)),s=T(()=>e.tag||e.href?"a":"button");return(o,a)=>(r(),$(K(s.value),{class:F(["VPButton",[o.size,o.theme]]),href:o.href?c(Oe)(o.href):void 0,target:e.target??(n.value?"_blank":void 0),rel:e.rel??(n.value?"noreferrer":void 0)},{default:v(()=>[W(C(o.text),1)]),_:1},8,["class","href","target","rel"]))}}),fo=S(uo,[["__scopeId","data-v-0197a461"]]),po=["src","alt"],vo=m({inheritAttrs:!1,__name:"VPImage",props:{image:{},alt:{}},setup(t){return(e,n)=>{const s=se("VPImage",!0);return e.image?(r(),f(D,{key:0},[typeof e.image=="string"||"src"in e.image?(r(),f("img",ee({key:0,class:"VPImage"},typeof e.image=="string"?e.$attrs:{...e.image,...e.$attrs},{src:c(Me)(typeof e.image=="string"?e.image:e.image.src),alt:e.alt??(typeof e.image=="string"?"":e.image.alt||"")}),null,16,po)):(r(),f(D,{key:1},[w(s,ee({class:"dark",image:e.image.dark,alt:e.image.alt},e.$attrs),null,16,["image","alt"]),w(s,ee({class:"light",image:e.image.light,alt:e.image.alt},e.$attrs),null,16,["image","alt"])],64))],64)):b("",!0)}}}),he=S(vo,[["__scopeId","data-v-8fba738a"]]),ho=t=>(x("data-v-5c988386"),t=t(),j(),t),_o={class:"container"},mo={class:"main"},go={key:0,class:"name"},bo=["innerHTML"],yo=["innerHTML"],ko=["innerHTML"],$o={key:0,class:"actions"},So={key:0,class:"image"},Po={class:"image-container"},wo=ho(()=>u("div",{class:"image-bg"},null,-1)),Lo=m({__name:"VPHero",props:{name:{},text:{},tagline:{},image:{},actions:{}},setup(t){const e=ce("hero-image-slot-exists");return(n,s)=>(r(),f("div",{class:F(["VPHero",{"has-image":n.image||c(e)}])},[u("div",_o,[u("div",mo,[p(n.$slots,"home-hero-info-before",{},void 0,!0),p(n.$slots,"home-hero-info",{},()=>[n.name?(r(),f("h1",go,[u("span",{innerHTML:n.name,class:"clip"},null,8,bo)])):b("",!0),n.text?(r(),f("p",{key:1,innerHTML:n.text,class:"text"},null,8,yo)):b("",!0),n.tagline?(r(),f("p",{key:2,innerHTML:n.tagline,class:"tagline"},null,8,ko)):b("",!0)],!0),p(n.$slots,"home-hero-info-after",{},void 0,!0),n.actions?(r(),f("div",$o,[(r(!0),f(D,null,U(n.actions,o=>(r(),f("div",{key:o.link,class:"action"},[w(fo,{tag:"a",size:"medium",theme:o.theme,text:o.text,href:o.link,target:o.target,rel:o.rel},null,8,["theme","text","href","target","rel"])]))),128))])):b("",!0),p(n.$slots,"home-hero-actions-after",{},void 0,!0)]),n.image||c(e)?(r(),f("div",So,[u("div",Po,[wo,p(n.$slots,"home-hero-image",{},()=>[n.image?(r(),$(he,{key:0,class:"image-src",image:n.image},null,8,["image"])):b("",!0)],!0)])])):b("",!0)])],2))}}),Vo=S(Lo,[["__scopeId","data-v-5c988386"]]),To=m({__name:"VPHomeHero",setup(t){const{frontmatter:e}=O();return(n,s)=>c(e).hero?(r(),$(Vo,{key:0,class:"VPHomeHero",name:c(e).hero.name,text:c(e).hero.text,tagline:c(e).hero.tagline,image:c(e).hero.image,actions:c(e).hero.actions},{"home-hero-info-before":v(()=>[p(n.$slots,"home-hero-info-before")]),"home-hero-info":v(()=>[p(n.$slots,"home-hero-info")]),"home-hero-info-after":v(()=>[p(n.$slots,"home-hero-info-after")]),"home-hero-actions-after":v(()=>[p(n.$slots,"home-hero-actions-after")]),"home-hero-image":v(()=>[p(n.$slots,"home-hero-image")]),_:3},8,["name","text","tagline","image","actions"])):b("",!0)}}),Io=t=>(x("data-v-c7369462"),t=t(),j(),t),Co={class:"box"},No={key:0,class:"icon"},Ao=["innerHTML"],Mo=["innerHTML"],Eo=["innerHTML"],Bo={key:4,class:"link-text"},Oo={class:"link-text-value"},Ho=Io(()=>u("span",{class:"vpi-arrow-right link-text-icon"},null,-1)),Do=m({__name:"VPFeature",props:{icon:{},title:{},details:{},link:{},linkText:{},rel:{},target:{}},setup(t){return(e,n)=>(r(),$(q,{class:"VPFeature",href:e.link,rel:e.rel,target:e.target,"no-icon":!0,tag:e.link?"a":"div"},{default:v(()=>[u("article",Co,[typeof e.icon=="object"&&e.icon.wrap?(r(),f("div",No,[w(he,{image:e.icon,alt:e.icon.alt,height:e.icon.height||48,width:e.icon.width||48},null,8,["image","alt","height","width"])])):typeof e.icon=="object"?(r(),$(he,{key:1,image:e.icon,alt:e.icon.alt,height:e.icon.height||48,width:e.icon.width||48},null,8,["image","alt","height","width"])):e.icon?(r(),f("div",{key:2,class:"icon",innerHTML:e.icon},null,8,Ao)):b("",!0),u("h2",{class:"title",innerHTML:e.title},null,8,Mo),e.details?(r(),f("p",{key:3,class:"details",innerHTML:e.details},null,8,Eo)):b("",!0),e.linkText?(r(),f("div",Bo,[u("p",Oo,[W(C(e.linkText)+" ",1),Ho])])):b("",!0)])]),_:1},8,["href","rel","target","tag"]))}}),Fo=S(Do,[["__scopeId","data-v-c7369462"]]),xo={key:0,class:"VPFeatures"},jo={class:"container"},Ro={class:"items"},Uo=m({__name:"VPFeatures",props:{features:{}},setup(t){const e=t,n=T(()=>{const s=e.features.length;if(s){if(s===2)return"grid-2";if(s===3)return"grid-3";if(s%3===0)return"grid-6";if(s>3)return"grid-4"}else return});return(s,o)=>s.features?(r(),f("div",xo,[u("div",jo,[u("div",Ro,[(r(!0),f(D,null,U(s.features,a=>(r(),f("div",{key:a.title,class:F(["item",[n.value]])},[w(Fo,{icon:a.icon,title:a.title,details:a.details,link:a.link,"link-text":a.linkText,rel:a.rel,target:a.target},null,8,["icon","title","details","link","link-text","rel","target"])],2))),128))])])])):b("",!0)}}),zo=S(Uo,[["__scopeId","data-v-677f1773"]]),Go=m({__name:"VPHomeFeatures",setup(t){const{frontmatter:e}=O();return(n,s)=>c(e).features?(r(),$(zo,{key:0,class:"VPHomeFeatures",features:c(e).features},null,8,["features"])):b("",!0)}}),Ko=m({__name:"VPHomeContent",setup(t){const{width:e}=Mt({initialWidth:0,includeScrollbar:!1});return(n,s)=>(r(),f("div",{class:"vp-doc container",style:be(c(e)?{"--vp-offset":`calc(50% - ${c(e)/2}px)`}:{})},[p(n.$slots,"default",{},void 0,!0)],4))}}),qo=S(Ko,[["__scopeId","data-v-af23e745"]]),Wo={class:"VPHome"},Jo=m({__name:"VPHome",setup(t){const{frontmatter:e}=O();return(n,s)=>{const o=se("Content");return r(),f("div",Wo,[p(n.$slots,"home-hero-before",{},void 0,!0),w(To,null,{"home-hero-info-before":v(()=>[p(n.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":v(()=>[p(n.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":v(()=>[p(n.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":v(()=>[p(n.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":v(()=>[p(n.$slots,"home-hero-image",{},void 0,!0)]),_:3}),p(n.$slots,"home-hero-after",{},void 0,!0),p(n.$slots,"home-features-before",{},void 0,!0),w(Go),p(n.$slots,"home-features-after",{},void 0,!0),c(e).markdownStyles!==!1?(r(),$(qo,{key:0},{default:v(()=>[w(o)]),_:1})):(r(),$(o,{key:1}))])}}}),Yo=S(Jo,[["__scopeId","data-v-1e2364af"]]),Xo={},Qo={class:"VPPage"};function Zo(t,e){const n=se("Content");return r(),f("div",Qo,[p(t.$slots,"page-top"),w(n),p(t.$slots,"page-bottom")])}const es=S(Xo,[["render",Zo]]),ts=m({__name:"VPContent",setup(t){const{page:e,frontmatter:n}=O(),{hasSidebar:s}=Y();return(o,a)=>(r(),f("div",{class:F(["VPContent",{"has-sidebar":c(s),"is-home":c(n).layout==="home"}]),id:"VPContent"},[c(e).isNotFound?p(o.$slots,"not-found",{key:0},()=>[w(cn)],!0):c(n).layout==="page"?(r(),$(es,{key:1},{"page-top":v(()=>[p(o.$slots,"page-top",{},void 0,!0)]),"page-bottom":v(()=>[p(o.$slots,"page-bottom",{},void 0,!0)]),_:3})):c(n).layout==="home"?(r(),$(Yo,{key:2},{"home-hero-before":v(()=>[p(o.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info-before":v(()=>[p(o.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":v(()=>[p(o.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":v(()=>[p(o.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":v(()=>[p(o.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":v(()=>[p(o.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":v(()=>[p(o.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":v(()=>[p(o.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":v(()=>[p(o.$slots,"home-features-after",{},void 0,!0)]),_:3})):c(n).layout&&c(n).layout!=="doc"?(r(),$(K(c(n).layout),{key:3})):(r(),$(co,{key:4},{"doc-top":v(()=>[p(o.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":v(()=>[p(o.$slots,"doc-bottom",{},void 0,!0)]),"doc-footer-before":v(()=>[p(o.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":v(()=>[p(o.$slots,"doc-before",{},void 0,!0)]),"doc-after":v(()=>[p(o.$slots,"doc-after",{},void 0,!0)]),"aside-top":v(()=>[p(o.$slots,"aside-top",{},void 0,!0)]),"aside-outline-before":v(()=>[p(o.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":v(()=>[p(o.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":v(()=>[p(o.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":v(()=>[p(o.$slots,"aside-ads-after",{},void 0,!0)]),"aside-bottom":v(()=>[p(o.$slots,"aside-bottom",{},void 0,!0)]),_:3}))],2))}}),ns=S(ts,[["__scopeId","data-v-b02ee7d2"]]),os={class:"container"},ss=["innerHTML"],as=["innerHTML"],rs=m({__name:"VPFooter",setup(t){const{theme:e,frontmatter:n}=O(),{hasSidebar:s}=Y();return(o,a)=>c(e).footer&&c(n).footer!==!1?(r(),f("footer",{key:0,class:F(["VPFooter",{"has-sidebar":c(s)}])},[u("div",os,[c(e).footer.message?(r(),f("p",{key:0,class:"message",innerHTML:c(e).footer.message},null,8,ss)):b("",!0),c(e).footer.copyright?(r(),f("p",{key:1,class:"copyright",innerHTML:c(e).footer.copyright},null,8,as)):b("",!0)])],2)):b("",!0)}}),is=S(rs,[["__scopeId","data-v-d5f9ff66"]]);function ls(){const{theme:t,frontmatter:e}=O(),n=Xe([]),s=T(()=>n.value.length>0);return me(()=>{n.value=He(e.value.outline??t.value.outline)}),{headers:n,hasLocalNav:s}}const cs=t=>(x("data-v-f5705a94"),t=t(),j(),t),us={class:"menu-text"},ds=cs(()=>u("span",{class:"vpi-chevron-right icon"},null,-1)),fs={class:"header"},ps={class:"outline"},vs=m({__name:"VPLocalNavOutlineDropdown",props:{headers:{},navHeight:{}},setup(t){const e=t,{theme:n}=O(),s=I(!1),o=I(0),a=I(),i=I();function l(_){var y;(y=a.value)!=null&&y.contains(_.target)||(s.value=!1)}J(s,_=>{if(_){document.addEventListener("click",l);return}document.removeEventListener("click",l)}),Le("Escape",()=>{s.value=!1}),me(()=>{s.value=!1});function d(){s.value=!s.value,o.value=window.innerHeight+Math.min(window.scrollY-e.navHeight,0)}function h(_){_.target.classList.contains("outline-link")&&(i.value&&(i.value.style.transition="none"),Et(()=>{s.value=!1}))}function g(){s.value=!1,window.scrollTo({top:0,left:0,behavior:"smooth"})}return(_,y)=>(r(),f("div",{class:"VPLocalNavOutlineDropdown",style:be({"--vp-vh":o.value+"px"}),ref_key:"main",ref:a},[_.headers.length>0?(r(),f("button",{key:0,onClick:d,class:F({open:s.value})},[u("span",us,C(c(rt)(c(n))),1),ds],2)):(r(),f("button",{key:1,onClick:g},C(c(n).returnToTopLabel||"Return to top"),1)),w(Ae,{name:"flyout"},{default:v(()=>[s.value?(r(),f("div",{key:0,ref_key:"items",ref:i,class:"items",onClick:h},[u("div",fs,[u("a",{class:"top-link",href:"#",onClick:g},C(c(n).returnToTopLabel||"Return to top"),1)]),u("div",ps,[w(it,{headers:_.headers},null,8,["headers"])])],512)):b("",!0)]),_:1})],4))}}),hs=S(vs,[["__scopeId","data-v-f5705a94"]]),_s=t=>(x("data-v-022e6087"),t=t(),j(),t),ms={class:"container"},gs=["aria-expanded"],bs=_s(()=>u("span",{class:"vpi-align-left menu-icon"},null,-1)),ys={class:"menu-text"},ks=m({__name:"VPLocalNav",props:{open:{type:Boolean}},emits:["open-menu"],setup(t){const{theme:e,frontmatter:n}=O(),{hasSidebar:s}=Y(),{headers:o}=ls(),{y:a}=Ze(),i=I(0);te(()=>{i.value=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--vp-nav-height"))}),me(()=>{o.value=He(n.value.outline??e.value.outline)});const l=T(()=>o.value.length===0),d=T(()=>l.value&&!s.value),h=T(()=>({VPLocalNav:!0,"has-sidebar":s.value,empty:l.value,fixed:d.value}));return(g,_)=>c(n).layout!=="home"&&(!d.value||c(a)>=i.value)?(r(),f("div",{key:0,class:F(h.value)},[u("div",ms,[c(s)?(r(),f("button",{key:0,class:"menu","aria-expanded":g.open,"aria-controls":"VPSidebarNav",onClick:_[0]||(_[0]=y=>g.$emit("open-menu"))},[bs,u("span",ys,C(c(e).sidebarMenuLabel||"Menu"),1)],8,gs)):b("",!0),w(hs,{headers:c(o),navHeight:i.value},null,8,["headers","navHeight"])])],2)):b("",!0)}}),$s=S(ks,[["__scopeId","data-v-022e6087"]]);function Ss(){const t=I(!1);function e(){t.value=!0,window.addEventListener("resize",o)}function n(){t.value=!1,window.removeEventListener("resize",o)}function s(){t.value?n():e()}function o(){window.outerWidth>=768&&n()}const a=ge();return J(()=>a.path,n),{isScreenOpen:t,openScreen:e,closeScreen:n,toggleScreen:s}}const Ps={},ws={class:"VPSwitch",type:"button",role:"switch"},Ls={class:"check"},Vs={key:0,class:"icon"};function Ts(t,e){return r(),f("button",ws,[u("span",Ls,[t.$slots.default?(r(),f("span",Vs,[p(t.$slots,"default",{},void 0,!0)])):b("",!0)])])}const Is=S(Ps,[["render",Ts],["__scopeId","data-v-8727337c"]]),ct=t=>(x("data-v-10656515"),t=t(),j(),t),Cs=ct(()=>u("span",{class:"vpi-sun sun"},null,-1)),Ns=ct(()=>u("span",{class:"vpi-moon moon"},null,-1)),As=m({__name:"VPSwitchAppearance",setup(t){const{isDark:e,theme:n}=O(),s=ce("toggle-appearance",()=>{e.value=!e.value}),o=I("");return Ee(()=>{o.value=e.value?n.value.lightModeSwitchTitle||"Switch to light theme":n.value.darkModeSwitchTitle||"Switch to dark theme"}),(a,i)=>(r(),$(Is,{title:o.value,class:"VPSwitchAppearance","aria-checked":c(e),onClick:c(s)},{default:v(()=>[Cs,Ns]),_:1},8,["title","aria-checked","onClick"]))}}),De=S(As,[["__scopeId","data-v-10656515"]]),Ms={key:0,class:"VPNavBarAppearance"},Es=m({__name:"VPNavBarAppearance",setup(t){const{site:e}=O();return(n,s)=>c(e).appearance&&c(e).appearance!=="force-dark"&&c(e).appearance!=="force-auto"?(r(),f("div",Ms,[w(De)])):b("",!0)}}),Bs=S(Es,[["__scopeId","data-v-0e100a46"]]),Fe=I();let ut=!1,Pe=0;function Os(t){const e=I(!1);if(ye){!ut&&Hs(),Pe++;const n=J(Fe,s=>{var o,a,i;s===t.el.value||(o=t.el.value)!=null&&o.contains(s)?(e.value=!0,(a=t.onFocus)==null||a.call(t)):(e.value=!1,(i=t.onBlur)==null||i.call(t))});le(()=>{n(),Pe--,Pe||Ds()})}return Bt(e)}function Hs(){document.addEventListener("focusin",dt),ut=!0,Fe.value=document.activeElement}function Ds(){document.removeEventListener("focusin",dt)}function dt(){Fe.value=document.activeElement}const Fs={class:"VPMenuLink"},xs=m({__name:"VPMenuLink",props:{item:{}},setup(t){const{page:e}=O();return(n,s)=>(r(),f("div",Fs,[w(q,{class:F({active:c(oe)(c(e).relativePath,n.item.activeMatch||n.item.link,!!n.item.activeMatch)}),href:n.item.link,target:n.item.target,rel:n.item.rel},{default:v(()=>[W(C(n.item.text),1)]),_:1},8,["class","href","target","rel"])]))}}),ke=S(xs,[["__scopeId","data-v-90280799"]]),js={class:"VPMenuGroup"},Rs={key:0,class:"title"},Us=m({__name:"VPMenuGroup",props:{text:{},items:{}},setup(t){return(e,n)=>(r(),f("div",js,[e.text?(r(),f("p",Rs,C(e.text),1)):b("",!0),(r(!0),f(D,null,U(e.items,s=>(r(),f(D,null,["link"in s?(r(),$(ke,{key:0,item:s},null,8,["item"])):b("",!0)],64))),256))]))}}),zs=S(Us,[["__scopeId","data-v-521dafbf"]]),Gs={class:"VPMenu"},Ks={key:0,class:"items"},qs=m({__name:"VPMenu",props:{items:{}},setup(t){return(e,n)=>(r(),f("div",Gs,[e.items?(r(),f("div",Ks,[(r(!0),f(D,null,U(e.items,s=>(r(),f(D,{key:JSON.stringify(s)},["link"in s?(r(),$(ke,{key:0,item:s},null,8,["item"])):"component"in s?(r(),$(K(s.component),ee({key:1,ref_for:!0},s.props),null,16)):(r(),$(zs,{key:2,text:s.text,items:s.items},null,8,["text","items"]))],64))),128))])):b("",!0),p(e.$slots,"default",{},void 0,!0)]))}}),Ws=S(qs,[["__scopeId","data-v-4397d6aa"]]),Js=t=>(x("data-v-4e740509"),t=t(),j(),t),Ys=["aria-expanded","aria-label"],Xs={key:0,class:"text"},Qs=["innerHTML"],Zs=Js(()=>u("span",{class:"vpi-chevron-down text-icon"},null,-1)),ea={key:1,class:"vpi-more-horizontal icon"},ta={class:"menu"},na=m({__name:"VPFlyout",props:{icon:{},button:{},label:{},items:{}},setup(t){const e=I(!1),n=I();Os({el:n,onBlur:s});function s(){e.value=!1}return(o,a)=>(r(),f("div",{class:"VPFlyout",ref_key:"el",ref:n,onMouseenter:a[1]||(a[1]=i=>e.value=!0),onMouseleave:a[2]||(a[2]=i=>e.value=!1)},[u("button",{type:"button",class:"button","aria-haspopup":"true","aria-expanded":e.value,"aria-label":o.label,onClick:a[0]||(a[0]=i=>e.value=!e.value)},[o.button||o.icon?(r(),f("span",Xs,[o.icon?(r(),f("span",{key:0,class:F([o.icon,"option-icon"])},null,2)):b("",!0),o.button?(r(),f("span",{key:1,innerHTML:o.button},null,8,Qs)):b("",!0),Zs])):(r(),f("span",ea))],8,Ys),u("div",ta,[w(Ws,{items:o.items},{default:v(()=>[p(o.$slots,"default",{},void 0,!0)]),_:3},8,["items"])])],544))}}),xe=S(na,[["__scopeId","data-v-4e740509"]]),oa=["href","aria-label","innerHTML"],sa=m({__name:"VPSocialLink",props:{icon:{},link:{},ariaLabel:{}},setup(t){const e=t,n=T(()=>typeof e.icon=="object"?e.icon.svg:``);return(s,o)=>(r(),f("a",{class:"VPSocialLink no-icon",href:s.link,"aria-label":s.ariaLabel??(typeof s.icon=="string"?s.icon:""),target:"_blank",rel:"noopener",innerHTML:n.value},null,8,oa))}}),aa=S(sa,[["__scopeId","data-v-9abc2d2a"]]),ra={class:"VPSocialLinks"},ia=m({__name:"VPSocialLinks",props:{links:{}},setup(t){return(e,n)=>(r(),f("div",ra,[(r(!0),f(D,null,U(e.links,({link:s,icon:o,ariaLabel:a})=>(r(),$(aa,{key:s,icon:o,link:s,ariaLabel:a},null,8,["icon","link","ariaLabel"]))),128))]))}}),je=S(ia,[["__scopeId","data-v-b1e9369e"]]),la={key:0,class:"group translations"},ca={class:"trans-title"},ua={key:1,class:"group"},da={class:"item appearance"},fa={class:"label"},pa={class:"appearance-action"},va={key:2,class:"group"},ha={class:"item social-links"},_a=m({__name:"VPNavBarExtra",setup(t){const{site:e,theme:n}=O(),{localeLinks:s,currentLang:o}=ue({correspondingLink:!0}),a=T(()=>s.value.length&&o.value.label||e.value.appearance||n.value.socialLinks);return(i,l)=>a.value?(r(),$(xe,{key:0,class:"VPNavBarExtra",label:"extra navigation"},{default:v(()=>[c(s).length&&c(o).label?(r(),f("div",la,[u("p",ca,C(c(o).label),1),(r(!0),f(D,null,U(c(s),d=>(r(),$(ke,{key:d.link,item:d},null,8,["item"]))),128))])):b("",!0),c(e).appearance&&c(e).appearance!=="force-dark"&&c(e).appearance!=="force-auto"?(r(),f("div",ua,[u("div",da,[u("p",fa,C(c(n).darkModeSwitchLabel||"Appearance"),1),u("div",pa,[w(De)])])])):b("",!0),c(n).socialLinks?(r(),f("div",va,[u("div",ha,[w(je,{class:"social-links-list",links:c(n).socialLinks},null,8,["links"])])])):b("",!0)]),_:1})):b("",!0)}}),ma=S(_a,[["__scopeId","data-v-02848efe"]]),ga=t=>(x("data-v-2849f847"),t=t(),j(),t),ba=["aria-expanded"],ya=ga(()=>u("span",{class:"container"},[u("span",{class:"top"}),u("span",{class:"middle"}),u("span",{class:"bottom"})],-1)),ka=[ya],$a=m({__name:"VPNavBarHamburger",props:{active:{type:Boolean}},emits:["click"],setup(t){return(e,n)=>(r(),f("button",{type:"button",class:F(["VPNavBarHamburger",{active:e.active}]),"aria-label":"mobile navigation","aria-expanded":e.active,"aria-controls":"VPNavScreen",onClick:n[0]||(n[0]=s=>e.$emit("click"))},ka,10,ba))}}),Sa=S($a,[["__scopeId","data-v-2849f847"]]),Pa=["innerHTML"],wa=m({__name:"VPNavBarMenuLink",props:{item:{}},setup(t){const{page:e}=O();return(n,s)=>(r(),$(q,{class:F({VPNavBarMenuLink:!0,active:c(oe)(c(e).relativePath,n.item.activeMatch||n.item.link,!!n.item.activeMatch)}),href:n.item.link,noIcon:n.item.noIcon,target:n.item.target,rel:n.item.rel,tabindex:"0"},{default:v(()=>[u("span",{innerHTML:n.item.text},null,8,Pa)]),_:1},8,["class","href","noIcon","target","rel"]))}}),La=S(wa,[["__scopeId","data-v-c1f5da45"]]),Va=m({__name:"VPNavBarMenuGroup",props:{item:{}},setup(t){const e=t,{page:n}=O(),s=a=>"component"in a?!1:"link"in a?oe(n.value.relativePath,a.link,!!e.item.activeMatch):a.items.some(s),o=T(()=>s(e.item));return(a,i)=>(r(),$(xe,{class:F({VPNavBarMenuGroup:!0,active:c(oe)(c(n).relativePath,a.item.activeMatch,!!a.item.activeMatch)||o.value}),button:a.item.text,items:a.item.items},null,8,["class","button","items"]))}}),Ta=t=>(x("data-v-a0b069c0"),t=t(),j(),t),Ia={key:0,"aria-labelledby":"main-nav-aria-label",class:"VPNavBarMenu"},Ca=Ta(()=>u("span",{id:"main-nav-aria-label",class:"visually-hidden"}," Main Navigation ",-1)),Na=m({__name:"VPNavBarMenu",setup(t){const{theme:e}=O();return(n,s)=>c(e).nav?(r(),f("nav",Ia,[Ca,(r(!0),f(D,null,U(c(e).nav,o=>(r(),f(D,{key:JSON.stringify(o)},["link"in o?(r(),$(La,{key:0,item:o},null,8,["item"])):"component"in o?(r(),$(K(o.component),ee({key:1,ref_for:!0},o.props),null,16)):(r(),$(Va,{key:2,item:o},null,8,["item"]))],64))),128))])):b("",!0)}}),Aa=S(Na,[["__scopeId","data-v-a0b069c0"]]);function Ma(t){const{localeIndex:e,theme:n}=O();function s(o){var V,M,k;const a=o.split("."),i=(V=n.value.search)==null?void 0:V.options,l=i&&typeof i=="object",d=l&&((k=(M=i.locales)==null?void 0:M[e.value])==null?void 0:k.translations)||null,h=l&&i.translations||null;let g=d,_=h,y=t;const N=a.pop();for(const R of a){let z=null;const X=y==null?void 0:y[R];X&&(z=y=X);const ne=_==null?void 0:_[R];ne&&(z=_=ne);const Q=g==null?void 0:g[R];Q&&(z=g=Q),X||(y=z),ne||(_=z),Q||(g=z)}return(g==null?void 0:g[N])??(_==null?void 0:_[N])??(y==null?void 0:y[N])??""}return s}const Ea=["aria-label"],Ba={class:"DocSearch-Button-Container"},Oa=u("span",{class:"vp-icon DocSearch-Search-Icon"},null,-1),Ha={class:"DocSearch-Button-Placeholder"},Da=u("span",{class:"DocSearch-Button-Keys"},[u("kbd",{class:"DocSearch-Button-Key"}),u("kbd",{class:"DocSearch-Button-Key"},"K")],-1),Ge=m({__name:"VPNavBarSearchButton",setup(t){const n=Ma({button:{buttonText:"Search",buttonAriaLabel:"Search"}});return(s,o)=>(r(),f("button",{type:"button",class:"DocSearch DocSearch-Button","aria-label":c(n)("button.buttonAriaLabel")},[u("span",Ba,[Oa,u("span",Ha,C(c(n)("button.buttonText")),1)]),Da],8,Ea))}}),Fa={class:"VPNavBarSearch"},xa={id:"local-search"},ja={key:1,id:"docsearch"},Ra=m({__name:"VPNavBarSearch",setup(t){const e=Ot(()=>Ht(()=>import("./VPLocalSearchBox.C-L9VQon.js"),__vite__mapDeps([0,1]))),n=()=>null,{theme:s}=O(),o=I(!1),a=I(!1);te(()=>{});function i(){o.value||(o.value=!0,setTimeout(l,16))}function l(){const _=new Event("keydown");_.key="k",_.metaKey=!0,window.dispatchEvent(_),setTimeout(()=>{document.querySelector(".DocSearch-Modal")||l()},16)}function d(_){const y=_.target,N=y.tagName;return y.isContentEditable||N==="INPUT"||N==="SELECT"||N==="TEXTAREA"}const h=I(!1);Le("k",_=>{(_.ctrlKey||_.metaKey)&&(_.preventDefault(),h.value=!0)}),Le("/",_=>{d(_)||(_.preventDefault(),h.value=!0)});const g="local";return(_,y)=>{var N;return r(),f("div",Fa,[c(g)==="local"?(r(),f(D,{key:0},[h.value?(r(),$(c(e),{key:0,onClose:y[0]||(y[0]=V=>h.value=!1)})):b("",!0),u("div",xa,[w(Ge,{onClick:y[1]||(y[1]=V=>h.value=!0)})])],64)):c(g)==="algolia"?(r(),f(D,{key:1},[o.value?(r(),$(c(n),{key:0,algolia:((N=c(s).search)==null?void 0:N.options)??c(s).algolia,onVnodeBeforeMount:y[2]||(y[2]=V=>a.value=!0)},null,8,["algolia"])):b("",!0),a.value?b("",!0):(r(),f("div",ja,[w(Ge,{onClick:i})]))],64)):b("",!0)])}}}),Ua=m({__name:"VPNavBarSocialLinks",setup(t){const{theme:e}=O();return(n,s)=>c(e).socialLinks?(r(),$(je,{key:0,class:"VPNavBarSocialLinks",links:c(e).socialLinks},null,8,["links"])):b("",!0)}}),za=S(Ua,[["__scopeId","data-v-ca530fac"]]),Ga=["href","rel","target"],Ka={key:1},qa={key:2},Wa=m({__name:"VPNavBarTitle",setup(t){const{site:e,theme:n}=O(),{hasSidebar:s}=Y(),{currentLang:o}=ue(),a=T(()=>{var d;return typeof n.value.logoLink=="string"?n.value.logoLink:(d=n.value.logoLink)==null?void 0:d.link}),i=T(()=>{var d;return typeof n.value.logoLink=="string"||(d=n.value.logoLink)==null?void 0:d.rel}),l=T(()=>{var d;return typeof n.value.logoLink=="string"||(d=n.value.logoLink)==null?void 0:d.target});return(d,h)=>(r(),f("div",{class:F(["VPNavBarTitle",{"has-sidebar":c(s)}])},[u("a",{class:"title",href:a.value??c(Oe)(c(o).link),rel:i.value,target:l.value},[p(d.$slots,"nav-bar-title-before",{},void 0,!0),c(n).logo?(r(),$(he,{key:0,class:"logo",image:c(n).logo},null,8,["image"])):b("",!0),c(n).siteTitle?(r(),f("span",Ka,C(c(n).siteTitle),1)):c(n).siteTitle===void 0?(r(),f("span",qa,C(c(e).title),1)):b("",!0),p(d.$slots,"nav-bar-title-after",{},void 0,!0)],8,Ga)],2))}}),Ja=S(Wa,[["__scopeId","data-v-01425599"]]),Ya={class:"items"},Xa={class:"title"},Qa=m({__name:"VPNavBarTranslations",setup(t){const{theme:e}=O(),{localeLinks:n,currentLang:s}=ue({correspondingLink:!0});return(o,a)=>c(n).length&&c(s).label?(r(),$(xe,{key:0,class:"VPNavBarTranslations",icon:"vpi-languages",label:c(e).langMenuLabel||"Change language"},{default:v(()=>[u("div",Ya,[u("p",Xa,C(c(s).label),1),(r(!0),f(D,null,U(c(n),i=>(r(),$(ke,{key:i.link,item:i},null,8,["item"]))),128))])]),_:1},8,["label"])):b("",!0)}}),Za=S(Qa,[["__scopeId","data-v-a0e85ae2"]]),er=t=>(x("data-v-03df6358"),t=t(),j(),t),tr={class:"wrapper"},nr={class:"container"},or={class:"title"},sr={class:"content"},ar={class:"content-body"},rr=er(()=>u("div",{class:"divider"},[u("div",{class:"divider-line"})],-1)),ir=m({__name:"VPNavBar",props:{isScreenOpen:{type:Boolean}},emits:["toggle-screen"],setup(t){const e=t,{y:n}=Ze(),{hasSidebar:s}=Y(),{frontmatter:o}=O(),a=I({});return Ee(()=>{a.value={"has-sidebar":s.value,home:o.value.layout==="home",top:n.value===0,"screen-open":e.isScreenOpen}}),(i,l)=>(r(),f("div",{class:F(["VPNavBar",a.value])},[u("div",tr,[u("div",nr,[u("div",or,[w(Ja,null,{"nav-bar-title-before":v(()=>[p(i.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":v(()=>[p(i.$slots,"nav-bar-title-after",{},void 0,!0)]),_:3})]),u("div",sr,[u("div",ar,[p(i.$slots,"nav-bar-content-before",{},void 0,!0),w(Ra,{class:"search"}),w(Aa,{class:"menu"}),w(Za,{class:"translations"}),w(Bs,{class:"appearance"}),w(za,{class:"social-links"}),w(ma,{class:"extra"}),p(i.$slots,"nav-bar-content-after",{},void 0,!0),w(Sa,{class:"hamburger",active:i.isScreenOpen,onClick:l[0]||(l[0]=d=>i.$emit("toggle-screen"))},null,8,["active"])])])])]),rr],2))}}),lr=S(ir,[["__scopeId","data-v-03df6358"]]),cr={key:0,class:"VPNavScreenAppearance"},ur={class:"text"},dr=m({__name:"VPNavScreenAppearance",setup(t){const{site:e,theme:n}=O();return(s,o)=>c(e).appearance&&c(e).appearance!=="force-dark"&&c(e).appearance!=="force-auto"?(r(),f("div",cr,[u("p",ur,C(c(n).darkModeSwitchLabel||"Appearance"),1),w(De)])):b("",!0)}}),fr=S(dr,[["__scopeId","data-v-bd6a2777"]]),pr=m({__name:"VPNavScreenMenuLink",props:{item:{}},setup(t){const e=ce("close-screen");return(n,s)=>(r(),$(q,{class:"VPNavScreenMenuLink",href:n.item.link,target:n.item.target,rel:n.item.rel,onClick:c(e),innerHTML:n.item.text},null,8,["href","target","rel","onClick","innerHTML"]))}}),vr=S(pr,[["__scopeId","data-v-b37d669d"]]),hr=m({__name:"VPNavScreenMenuGroupLink",props:{item:{}},setup(t){const e=ce("close-screen");return(n,s)=>(r(),$(q,{class:"VPNavScreenMenuGroupLink",href:n.item.link,target:n.item.target,rel:n.item.rel,onClick:c(e)},{default:v(()=>[W(C(n.item.text),1)]),_:1},8,["href","target","rel","onClick"]))}}),ft=S(hr,[["__scopeId","data-v-fa8446d3"]]),_r={class:"VPNavScreenMenuGroupSection"},mr={key:0,class:"title"},gr=m({__name:"VPNavScreenMenuGroupSection",props:{text:{},items:{}},setup(t){return(e,n)=>(r(),f("div",_r,[e.text?(r(),f("p",mr,C(e.text),1)):b("",!0),(r(!0),f(D,null,U(e.items,s=>(r(),$(ft,{key:s.text,item:s},null,8,["item"]))),128))]))}}),br=S(gr,[["__scopeId","data-v-19fc8329"]]),yr=t=>(x("data-v-b87097e2"),t=t(),j(),t),kr=["aria-controls","aria-expanded"],$r=["innerHTML"],Sr=yr(()=>u("span",{class:"vpi-plus button-icon"},null,-1)),Pr=["id"],wr={key:0,class:"item"},Lr={key:1,class:"item"},Vr={key:2,class:"group"},Tr=m({__name:"VPNavScreenMenuGroup",props:{text:{},items:{}},setup(t){const e=t,n=I(!1),s=T(()=>`NavScreenGroup-${e.text.replace(" ","-").toLowerCase()}`);function o(){n.value=!n.value}return(a,i)=>(r(),f("div",{class:F(["VPNavScreenMenuGroup",{open:n.value}])},[u("button",{class:"button","aria-controls":s.value,"aria-expanded":n.value,onClick:o},[u("span",{class:"button-text",innerHTML:a.text},null,8,$r),Sr],8,kr),u("div",{id:s.value,class:"items"},[(r(!0),f(D,null,U(a.items,l=>(r(),f(D,{key:JSON.stringify(l)},["link"in l?(r(),f("div",wr,[w(ft,{item:l},null,8,["item"])])):"component"in l?(r(),f("div",Lr,[(r(),$(K(l.component),ee({ref_for:!0},l.props,{"screen-menu":""}),null,16))])):(r(),f("div",Vr,[w(br,{text:l.text,items:l.items},null,8,["text","items"])]))],64))),128))],8,Pr)],2))}}),Ir=S(Tr,[["__scopeId","data-v-b87097e2"]]),Cr={key:0,class:"VPNavScreenMenu"},Nr=m({__name:"VPNavScreenMenu",setup(t){const{theme:e}=O();return(n,s)=>c(e).nav?(r(),f("nav",Cr,[(r(!0),f(D,null,U(c(e).nav,o=>(r(),f(D,{key:JSON.stringify(o)},["link"in o?(r(),$(vr,{key:0,item:o},null,8,["item"])):"component"in o?(r(),$(K(o.component),ee({key:1,ref_for:!0},o.props,{"screen-menu":""}),null,16)):(r(),$(Ir,{key:2,text:o.text||"",items:o.items},null,8,["text","items"]))],64))),128))])):b("",!0)}}),Ar=m({__name:"VPNavScreenSocialLinks",setup(t){const{theme:e}=O();return(n,s)=>c(e).socialLinks?(r(),$(je,{key:0,class:"VPNavScreenSocialLinks",links:c(e).socialLinks},null,8,["links"])):b("",!0)}}),pt=t=>(x("data-v-55a701b1"),t=t(),j(),t),Mr=pt(()=>u("span",{class:"vpi-languages icon lang"},null,-1)),Er=pt(()=>u("span",{class:"vpi-chevron-down icon chevron"},null,-1)),Br={class:"list"},Or=m({__name:"VPNavScreenTranslations",setup(t){const{localeLinks:e,currentLang:n}=ue({correspondingLink:!0}),s=I(!1);function o(){s.value=!s.value}return(a,i)=>c(e).length&&c(n).label?(r(),f("div",{key:0,class:F(["VPNavScreenTranslations",{open:s.value}])},[u("button",{class:"title",onClick:o},[Mr,W(" "+C(c(n).label)+" ",1),Er]),u("ul",Br,[(r(!0),f(D,null,U(c(e),l=>(r(),f("li",{key:l.link,class:"item"},[w(q,{class:"link",href:l.link},{default:v(()=>[W(C(l.text),1)]),_:2},1032,["href"])]))),128))])],2)):b("",!0)}}),Hr=S(Or,[["__scopeId","data-v-55a701b1"]]),Dr={class:"container"},Fr=m({__name:"VPNavScreen",props:{open:{type:Boolean}},setup(t){const e=I(null),n=et(ye?document.body:null);return(s,o)=>(r(),$(Ae,{name:"fade",onEnter:o[0]||(o[0]=a=>n.value=!0),onAfterLeave:o[1]||(o[1]=a=>n.value=!1)},{default:v(()=>[s.open?(r(),f("div",{key:0,class:"VPNavScreen",ref_key:"screen",ref:e,id:"VPNavScreen"},[u("div",Dr,[p(s.$slots,"nav-screen-content-before",{},void 0,!0),w(Nr,{class:"menu"}),w(Hr,{class:"translations"}),w(fr,{class:"appearance"}),w(Ar,{class:"social-links"}),p(s.$slots,"nav-screen-content-after",{},void 0,!0)])],512)):b("",!0)]),_:3}))}}),xr=S(Fr,[["__scopeId","data-v-39377809"]]),jr={key:0,class:"VPNav"},Rr=m({__name:"VPNav",setup(t){const{isScreenOpen:e,closeScreen:n,toggleScreen:s}=Ss(),{frontmatter:o}=O(),a=T(()=>o.value.navbar!==!1);return tt("close-screen",n),_e(()=>{ye&&document.documentElement.classList.toggle("hide-nav",!a.value)}),(i,l)=>a.value?(r(),f("header",jr,[w(lr,{"is-screen-open":c(e),onToggleScreen:c(s)},{"nav-bar-title-before":v(()=>[p(i.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":v(()=>[p(i.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":v(()=>[p(i.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":v(()=>[p(i.$slots,"nav-bar-content-after",{},void 0,!0)]),_:3},8,["is-screen-open","onToggleScreen"]),w(xr,{open:c(e)},{"nav-screen-content-before":v(()=>[p(i.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":v(()=>[p(i.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3},8,["open"])])):b("",!0)}}),Ur=S(Rr,[["__scopeId","data-v-10d5e81f"]]),vt=t=>(x("data-v-c4699b33"),t=t(),j(),t),zr=["role","tabindex"],Gr=vt(()=>u("div",{class:"indicator"},null,-1)),Kr=vt(()=>u("span",{class:"vpi-chevron-right caret-icon"},null,-1)),qr=[Kr],Wr={key:1,class:"items"},Jr=m({__name:"VPSidebarItem",props:{item:{},depth:{}},setup(t){const e=t,{collapsed:n,collapsible:s,isLink:o,isActiveLink:a,hasActiveLink:i,hasChildren:l,toggle:d}=pn(T(()=>e.item)),h=T(()=>l.value?"section":"div"),g=T(()=>o.value?"a":"div"),_=T(()=>l.value?e.depth+2===7?"p":`h${e.depth+2}`:"p"),y=T(()=>o.value?void 0:"button"),N=T(()=>[[`level-${e.depth}`],{collapsible:s.value},{collapsed:n.value},{"is-link":o.value},{"is-active":a.value},{"has-active":i.value}]);function V(k){"key"in k&&k.key!=="Enter"||!e.item.link&&d()}function M(){e.item.link&&d()}return(k,R)=>{const z=se("VPSidebarItem",!0);return r(),$(K(h.value),{class:F(["VPSidebarItem",N.value])},{default:v(()=>[k.item.text?(r(),f("div",ee({key:0,class:"item",role:y.value},Dt(k.item.items?{click:V,keydown:V}:{},!0),{tabindex:k.item.items&&0}),[Gr,k.item.link?(r(),$(q,{key:0,tag:g.value,class:"link",href:k.item.link,rel:k.item.rel,target:k.item.target},{default:v(()=>[(r(),$(K(_.value),{class:"text",innerHTML:k.item.text},null,8,["innerHTML"]))]),_:1},8,["tag","href","rel","target"])):(r(),$(K(_.value),{key:1,class:"text",innerHTML:k.item.text},null,8,["innerHTML"])),k.item.collapsed!=null&&k.item.items&&k.item.items.length?(r(),f("div",{key:2,class:"caret",role:"button","aria-label":"toggle section",onClick:M,onKeydown:Ft(M,["enter"]),tabindex:"0"},qr,32)):b("",!0)],16,zr)):b("",!0),k.item.items&&k.item.items.length?(r(),f("div",Wr,[k.depth<5?(r(!0),f(D,{key:0},U(k.item.items,X=>(r(),$(z,{key:X.text,item:X,depth:k.depth+1},null,8,["item","depth"]))),128)):b("",!0)])):b("",!0)]),_:1},8,["class"])}}}),Yr=S(Jr,[["__scopeId","data-v-c4699b33"]]),Xr=m({__name:"VPSidebarGroup",props:{items:{}},setup(t){const e=I(!0);let n=null;return te(()=>{n=setTimeout(()=>{n=null,e.value=!1},300)}),xt(()=>{n!=null&&(clearTimeout(n),n=null)}),(s,o)=>(r(!0),f(D,null,U(s.items,a=>(r(),f("div",{key:a.text,class:F(["group",{"no-transition":e.value}])},[w(Yr,{item:a,depth:0},null,8,["item"])],2))),128))}}),Qr=S(Xr,[["__scopeId","data-v-c3141239"]]),ht=t=>(x("data-v-52f4c170"),t=t(),j(),t),Zr=ht(()=>u("div",{class:"curtain"},null,-1)),ei={class:"nav",id:"VPSidebarNav","aria-labelledby":"sidebar-aria-label",tabindex:"-1"},ti=ht(()=>u("span",{class:"visually-hidden",id:"sidebar-aria-label"}," Sidebar Navigation ",-1)),ni=m({__name:"VPSidebar",props:{open:{type:Boolean}},setup(t){const{sidebarGroups:e,hasSidebar:n}=Y(),s=t,o=I(null),a=et(ye?document.body:null);J([s,o],()=>{var l;s.open?(a.value=!0,(l=o.value)==null||l.focus()):a.value=!1},{immediate:!0,flush:"post"});const i=I(0);return J(e,()=>{i.value+=1},{deep:!0}),(l,d)=>c(n)?(r(),f("aside",{key:0,class:F(["VPSidebar",{open:l.open}]),ref_key:"navEl",ref:o,onClick:d[0]||(d[0]=jt(()=>{},["stop"]))},[Zr,u("nav",ei,[ti,p(l.$slots,"sidebar-nav-before",{},void 0,!0),(r(),$(Qr,{items:c(e),key:i.value},null,8,["items"])),p(l.$slots,"sidebar-nav-after",{},void 0,!0)])],2)):b("",!0)}}),oi=S(ni,[["__scopeId","data-v-52f4c170"]]),si=m({__name:"VPSkipLink",setup(t){const e=ge(),n=I();J(()=>e.path,()=>n.value.focus());function s({target:o}){const a=document.getElementById(decodeURIComponent(o.hash).slice(1));if(a){const i=()=>{a.removeAttribute("tabindex"),a.removeEventListener("blur",i)};a.setAttribute("tabindex","-1"),a.addEventListener("blur",i),a.focus(),window.scrollTo(0,0)}}return(o,a)=>(r(),f(D,null,[u("span",{ref_key:"backToTop",ref:n,tabindex:"-1"},null,512),u("a",{href:"#VPContent",class:"VPSkipLink visually-hidden",onClick:s}," Skip to content ")],64))}}),ai=S(si,[["__scopeId","data-v-4a10e730"]]),ri=m({__name:"Layout",setup(t){const{isOpen:e,open:n,close:s}=Y(),o=ge();J(()=>o.path,s),fn(e,s);const{frontmatter:a}=O(),i=Rt(),l=T(()=>!!i["home-hero-image"]);return tt("hero-image-slot-exists",l),(d,h)=>{const g=se("Content");return c(a).layout!==!1?(r(),f("div",{key:0,class:F(["Layout",c(a).pageClass])},[p(d.$slots,"layout-top",{},void 0,!0),w(ai),w(Yt,{class:"backdrop",show:c(e),onClick:c(s)},null,8,["show","onClick"]),w(Ur,null,{"nav-bar-title-before":v(()=>[p(d.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":v(()=>[p(d.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":v(()=>[p(d.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":v(()=>[p(d.$slots,"nav-bar-content-after",{},void 0,!0)]),"nav-screen-content-before":v(()=>[p(d.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":v(()=>[p(d.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3}),w($s,{open:c(e),onOpenMenu:c(n)},null,8,["open","onOpenMenu"]),w(oi,{open:c(e)},{"sidebar-nav-before":v(()=>[p(d.$slots,"sidebar-nav-before",{},void 0,!0)]),"sidebar-nav-after":v(()=>[p(d.$slots,"sidebar-nav-after",{},void 0,!0)]),_:3},8,["open"]),w(ns,null,{"page-top":v(()=>[p(d.$slots,"page-top",{},void 0,!0)]),"page-bottom":v(()=>[p(d.$slots,"page-bottom",{},void 0,!0)]),"not-found":v(()=>[p(d.$slots,"not-found",{},void 0,!0)]),"home-hero-before":v(()=>[p(d.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info-before":v(()=>[p(d.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":v(()=>[p(d.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":v(()=>[p(d.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":v(()=>[p(d.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":v(()=>[p(d.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":v(()=>[p(d.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":v(()=>[p(d.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":v(()=>[p(d.$slots,"home-features-after",{},void 0,!0)]),"doc-footer-before":v(()=>[p(d.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":v(()=>[p(d.$slots,"doc-before",{},void 0,!0)]),"doc-after":v(()=>[p(d.$slots,"doc-after",{},void 0,!0)]),"doc-top":v(()=>[p(d.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":v(()=>[p(d.$slots,"doc-bottom",{},void 0,!0)]),"aside-top":v(()=>[p(d.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":v(()=>[p(d.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":v(()=>[p(d.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":v(()=>[p(d.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":v(()=>[p(d.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":v(()=>[p(d.$slots,"aside-ads-after",{},void 0,!0)]),_:3}),w(is),p(d.$slots,"layout-bottom",{},void 0,!0)],2)):(r(),$(g,{key:1}))}}}),ii=S(ri,[["__scopeId","data-v-4be82239"]]),_t={Layout:ii,enhanceApp:({app:t})=>{t.component("Badge",qt)}},Re="LiteyukiStudio",Ue="LiteyukiBot",li="https://api.github.com",ci="https://git.liteyuki.icu/api/v1",ui="https://api.liteyuki.icu/online",di="https://api.liteyuki.icu/count",fi="https://api.liteyuki.icu/visit",pi="https://api.liteyuki.icu/visit_count",ie=`https://github.com/${Re}/${Ue}`,Ke="https://starmap.liteyuki.icu";async function vi(){try{const t=`${ci}/repos/${Re}/${Ue}`;console.log(t);const n=await(await fetch(t)).json();return{stars:n.stars_count,forks:n.forks_count,watchers:n.watchers_count,issues:0,prs:0,size:n.size}}catch{return{stars:-1,forks:-1,watchers:-1,issues:-1,prs:-1,size:-1}}}async function hi(){try{const e=await(await fetch(`${li}/repos/${Re}/${Ue}`)).json();return{stars:e.stargazers_count,forks:e.forks_count,watchers:e.watchers_count,issues:e.open_issues_count,prs:e.open_issues_count,size:e.size}}catch{return{stars:-1,forks:-1,watchers:-1,issues:-1,prs:-1,size:-1}}}async function _i(){const t=await hi(),e=await vi();return{stars:t.stars+e.stars,forks:t.forks+e.forks,watchers:t.watchers+e.watchers,issues:t.issues+e.issues,prs:t.prs+e.prs,size:t.size+e.size}}const ae={getTotal:async()=>{try{return(await(await fetch(di)).json()).register}catch{return-1}},getOnline:async()=>{try{return(await(await fetch(ui)).json()).online}catch{return-1}},getGithubStats:_i,getPluginNum:async()=>{try{return(await(await fetch("/plugins.json")).json()).length}catch{return-1}},getResourceNum:async()=>{try{return(await(await fetch("/resources.json")).json()).length}catch{return-1}},getVisitCount:async()=>{try{return(await(await fetch(pi)).json()).count}catch{return-1}}};function mi(){const t="deviceId";let e=localStorage.getItem(t);return e||(e=bi(),localStorage.setItem(t,e)),e}async function gi(){const t=mi();try{await fetch(fi,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({device_id:t}).toString()})}catch(e){console.error("Failed to upload visit record:",e)}}function bi(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=Math.random()*16|0,n=t==="x"?e:e&3|8;return n.toString(16)})}/*! * vue-router v4.4.3 * (c) 2024 Eduardo San Martin Morote * @license MIT diff --git a/assets/dev_api_bot_index.md.DNY8cUbE.js b/assets/dev_api_bot_index.md.CygawBD3.js similarity index 56% rename from assets/dev_api_bot_index.md.DNY8cUbE.js rename to assets/dev_api_bot_index.md.CygawBD3.js index b22f2a30..d13fc018 100644 --- a/assets/dev_api_bot_index.md.DNY8cUbE.js +++ b/assets/dev_api_bot_index.md.CygawBD3.js @@ -1,4 +1,4 @@ -import{_ as s,c as i,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"liteyuki.bot","description":"","frontmatter":{"title":"liteyuki.bot","collapsed":true},"headers":[],"relativePath":"dev/api/bot/index.md","filePath":"zh/dev/api/bot/index.md","lastUpdated":null}'),n={name:"dev/api/bot/index.md"},e=t(`

模块 liteyuki.bot

class LiteyukiBot

func __init__(self, **kwargs) -> None

说明: 初始化轻雪实例

参数:

  • **kwargs: 配置
源代码在GitHub上查看
python
def __init__(self, **kwargs) -> None:
+import{_ as s,c as i,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"liteyuki.bot","description":"","frontmatter":{"title":"liteyuki.bot","collapsed":true},"headers":[],"relativePath":"dev/api/bot/index.md","filePath":"zh/dev/api/bot/index.md","lastUpdated":null}'),n={name:"dev/api/bot/index.md"},e=t(`

模块 liteyuki.bot

class LiteyukiBot


func __init__(self, **kwargs) -> None

说明: 初始化轻雪实例

参数:

  • **kwargs: 配置
源代码在GitHub上查看
python
def __init__(self, **kwargs) -> None:
     """常规操作"""
     print_logo()
     global _BOT_INSTANCE
@@ -17,21 +17,21 @@ import{_ as s,c as i,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const y
     self.stop_event = threading.Event()
     self.call_restart_count = 0
     '加载插件加载器'
-    load_plugin('liteyuki.plugins.plugin_loader')

func run(self)

说明: 外部启动接口

源代码在GitHub上查看
python
def run(self):
+    load_plugin('liteyuki.plugins.plugin_loader')

func run(self)

说明: 外部启动接口

源代码在GitHub上查看
python
def run(self):
     self.process_manager.start_all()
     try:
         asyncio.run(self._run())
     except KeyboardInterrupt:
         logger.opt(colors=True).info('<y>Liteyuki is stopping...</y>')
         self.stop()
-    logger.opt(colors=True).info('<y>Liteyuki is stopped...</y>')

async func keep_alive(self)

说明: 保持轻雪运行

源代码在GitHub上查看
python
async def keep_alive(self):
+    logger.opt(colors=True).info('<y>Liteyuki is stopped...</y>')

async func keep_alive(self)

说明: 保持轻雪运行

源代码在GitHub上查看
python
async def keep_alive(self):
     logger.info('Liteyuki is keeping alive...')
     try:
         while not self.stop_event.is_set():
             await asyncio.sleep(0.1)
     except Exception:
         logger.info('Liteyuki is exiting...')
-        self.stop()

func restart(self, delay: int = 0)

说明: 重启轻雪本体

参数:

  • delay (int, optional): 延迟重启时间. Defaults to 0.
源代码在GitHub上查看
python
def restart(self, delay: int=0):
+        self.stop()

func restart(self, delay: int = 0)

说明: 重启轻雪本体

参数:

  • delay (int, optional): 延迟重启时间. Defaults to 0.
源代码在GitHub上查看
python
def restart(self, delay: int=0):
     if self.call_restart_count < 1:
         executable = sys.executable
         args = sys.argv
@@ -48,35 +48,35 @@ import{_ as s,c as i,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const y
         self.process_manager.terminate_all()
         threading.Thread(target=os.system, args=(f"{cmd} {executable} {' '.join(args)}",), daemon=True).start()
         sys.exit(0)
-    self.call_restart_count += 1

func restart_process(self, name: Optional[str] = None)

说明: 停止轻雪

参数:

源代码在GitHub上查看
python
def restart_process(self, name: Optional[str]=None):
+    self.call_restart_count += 1

func restart_process(self, name: Optional[str] = None)

说明: 停止轻雪

参数:

源代码在GitHub上查看
python
def restart_process(self, name: Optional[str]=None):
     if name is not None:
         chan_active = get_channel(f'{name}-active')
         chan_active.send(1)
     else:
         for process_name in self.process_manager.processes:
             chan_active = get_channel(f'{process_name}-active')
-            chan_active.send(1)

func init(self, *args, **kwargs)

说明: 初始化轻雪, 自动调用

参数:

  • *args: 参数
  • **kwargs: 关键字参数
源代码在GitHub上查看
python
def init(self, *args, **kwargs):
-    self.init_logger()

func init_logger(self)

说明: 初始化日志

源代码在GitHub上查看
python
def init_logger(self):
-    init_log(config=self.config)

func stop(self)

说明: 停止轻雪

源代码在GitHub上查看
python
def stop(self):
+            chan_active.send(1)

func init(self, *args, **kwargs)

说明: 初始化轻雪, 自动调用

参数:

  • *args: 参数
  • **kwargs: 关键字参数
源代码在GitHub上查看
python
def init(self, *args, **kwargs):
+    self.init_logger()

func init_logger(self)

说明: 初始化日志

源代码在GitHub上查看
python
def init_logger(self):
+    init_log(config=self.config)

func stop(self)

说明: 停止轻雪

源代码在GitHub上查看
python
def stop(self):
     self.process_manager.terminate_all()
-    self.stop_event.set()

func on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

说明: 注册启动前的函数

参数:

返回: LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:
-    return self.lifespan.on_before_start(func)

func on_after_start(self, func: LIFESPAN_FUNC)

说明: 注册启动后的函数

参数:

返回: LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_after_start(self, func: LIFESPAN_FUNC):
-    return self.lifespan.on_after_start(func)

func on_after_shutdown(self, func: LIFESPAN_FUNC)

说明: 注册停止后的函数:未实现

参数:

返回: LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_after_shutdown(self, func: LIFESPAN_FUNC):
-    return self.lifespan.on_after_shutdown(func)

func on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC)

说明: 注册进程停止前的函数,为子进程停止时调用

参数:

返回: PROCESS_LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC):
-    return self.lifespan.on_before_process_shutdown(func)

func on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC

说明: 注册进程重启前的函数,为子进程重启时调用

参数:

返回: PROCESS_LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC:
-    return self.lifespan.on_before_process_restart(func)

func on_after_restart(self, func: LIFESPAN_FUNC)

说明: 注册重启后的函数:未实现

参数:

返回: LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_after_restart(self, func: LIFESPAN_FUNC):
-    return self.lifespan.on_after_restart(func)

func get_bot() -> LiteyukiBot

说明: 获取轻雪实例

返回: LiteyukiBot: 轻雪实例

源代码在GitHub上查看
python
def get_bot() -> LiteyukiBot:
+    self.stop_event.set()

func on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

说明: 注册启动前的函数

参数:

返回: LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:
+    return self.lifespan.on_before_start(func)

func on_after_start(self, func: LIFESPAN_FUNC)

说明: 注册启动后的函数

参数:

返回: LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_after_start(self, func: LIFESPAN_FUNC):
+    return self.lifespan.on_after_start(func)

func on_after_shutdown(self, func: LIFESPAN_FUNC)

说明: 注册停止后的函数:未实现

参数:

返回: LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_after_shutdown(self, func: LIFESPAN_FUNC):
+    return self.lifespan.on_after_shutdown(func)

func on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC)

说明: 注册进程停止前的函数,为子进程停止时调用

参数:

返回: PROCESS_LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC):
+    return self.lifespan.on_before_process_shutdown(func)

func on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC

说明: 注册进程重启前的函数,为子进程重启时调用

参数:

返回: PROCESS_LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC:
+    return self.lifespan.on_before_process_restart(func)

func on_after_restart(self, func: LIFESPAN_FUNC)

说明: 注册重启后的函数:未实现

参数:

返回: LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_after_restart(self, func: LIFESPAN_FUNC):
+    return self.lifespan.on_after_restart(func)

func get_bot() -> LiteyukiBot

说明: 获取轻雪实例

返回: LiteyukiBot: 轻雪实例

源代码在GitHub上查看
python
def get_bot() -> LiteyukiBot:
     if IS_MAIN_PROCESS:
         if _BOT_INSTANCE is None:
             raise RuntimeError('Liteyuki instance not initialized.')
         return _BOT_INSTANCE
     else:
-        raise RuntimeError("Can't get bot instance in sub process.")

func get_config(key: str, default: Any = None) -> Any

说明: 获取配置

参数:

  • key (str): 配置键
  • default (Any, optional): 默认值. Defaults to None.

返回: Any: 配置值

源代码在GitHub上查看
python
def get_config(key: str, default: Any=None) -> Any:
-    return get_bot().config.get(key, default)

func get_config_with_compat(key: str, compat_keys: tuple[str], default: Any = None) -> Any

说明: 获取配置,兼容旧版本

参数:

  • key (str): 配置键
  • compat_keys (tuplestr): 兼容键
  • default (Any, optional): 默认值. Defaults to None.

返回: Any: 配置值

源代码在GitHub上查看
python
def get_config_with_compat(key: str, compat_keys: tuple[str], default: Any=None) -> Any:
+        raise RuntimeError("Can't get bot instance in sub process.")

func get_config(key: str, default: Any = None) -> Any

说明: 获取配置

参数:

  • key (str): 配置键
  • default (Any, optional): 默认值. Defaults to None.

返回: Any: 配置值

源代码在GitHub上查看
python
def get_config(key: str, default: Any=None) -> Any:
+    return get_bot().config.get(key, default)

func get_config_with_compat(key: str, compat_keys: tuple[str], default: Any = None) -> Any

说明: 获取配置,兼容旧版本

参数:

  • key (str): 配置键
  • compat_keys (tuplestr): 兼容键
  • default (Any, optional): 默认值. Defaults to None.

返回: Any: 配置值

源代码在GitHub上查看
python
def get_config_with_compat(key: str, compat_keys: tuple[str], default: Any=None) -> Any:
     if key in get_bot().config:
         return get_bot().config[key]
     for compat_key in compat_keys:
         if compat_key in get_bot().config:
             logger.warning(f'Config key "{compat_key}" will be deprecated, use "{key}" instead.')
             return get_bot().config[compat_key]
-    return default
`,86),l=[e];function h(p,k,r,o,d,g){return a(),i("div",null,l)}const c=s(n,[["render",h]]);export{y as __pageData,c as default}; + return default
`,103),l=[e];function h(p,k,r,o,d,g){return a(),i("div",null,l)}const c=s(n,[["render",h]]);export{y as __pageData,c as default}; diff --git a/assets/dev_api_bot_index.md.DNY8cUbE.lean.js b/assets/dev_api_bot_index.md.CygawBD3.lean.js similarity index 68% rename from assets/dev_api_bot_index.md.DNY8cUbE.lean.js rename to assets/dev_api_bot_index.md.CygawBD3.lean.js index 31bc8c3d..da4327f7 100644 --- a/assets/dev_api_bot_index.md.DNY8cUbE.lean.js +++ b/assets/dev_api_bot_index.md.CygawBD3.lean.js @@ -1 +1 @@ -import{_ as s,c as i,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"liteyuki.bot","description":"","frontmatter":{"title":"liteyuki.bot","collapsed":true},"headers":[],"relativePath":"dev/api/bot/index.md","filePath":"zh/dev/api/bot/index.md","lastUpdated":null}'),n={name:"dev/api/bot/index.md"},e=t("",86),l=[e];function h(p,k,r,o,d,g){return a(),i("div",null,l)}const c=s(n,[["render",h]]);export{y as __pageData,c as default}; +import{_ as s,c as i,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"liteyuki.bot","description":"","frontmatter":{"title":"liteyuki.bot","collapsed":true},"headers":[],"relativePath":"dev/api/bot/index.md","filePath":"zh/dev/api/bot/index.md","lastUpdated":null}'),n={name:"dev/api/bot/index.md"},e=t("",103),l=[e];function h(p,k,r,o,d,g){return a(),i("div",null,l)}const c=s(n,[["render",h]]);export{y as __pageData,c as default}; diff --git a/assets/dev_api_bot_lifespan.md.DBf_PC3G.js b/assets/dev_api_bot_lifespan.md.DBf_PC3G.js new file mode 100644 index 00000000..340f66a2 --- /dev/null +++ b/assets/dev_api_bot_lifespan.md.DBf_PC3G.js @@ -0,0 +1 @@ +import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const E=JSON.parse('{"title":"liteyuki.bot.lifespan","description":"","frontmatter":{"title":"liteyuki.bot.lifespan"},"headers":[],"relativePath":"dev/api/bot/lifespan.md","filePath":"zh/dev/api/bot/lifespan.md","lastUpdated":null}'),t={name:"dev/api/bot/lifespan.md"},e=n('

模块 liteyuki.bot.lifespan

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/23 下午8:24 @Author : snowykami @Email : snowykami@outlook.com @File : lifespan.py @Software: PyCharm

var SYNC_LIFESPAN_FUNC

  • 说明: 同步生命周期函数

  • 类型: TypeAlias

  • 默认值: Callable[[], Any]

var ASYNC_LIFESPAN_FUNC

  • 说明: 异步生命周期函数

  • 类型: TypeAlias

  • 默认值: Callable[[], Awaitable[Any]]

var LIFESPAN_FUNC

  • 说明: 生命周期函数

  • 类型: TypeAlias

  • 默认值: SYNC_LIFESPAN_FUNC | ASYNC_LIFESPAN_FUNC

var SYNC_PROCESS_LIFESPAN_FUNC

  • 说明: 同步进程生命周期函数

  • 类型: TypeAlias

  • 默认值: Callable[[str], Any]

var ASYNC_PROCESS_LIFESPAN_FUNC

  • 说明: 异步进程生命周期函数

  • 类型: TypeAlias

  • 默认值: Callable[[str], Awaitable[Any]]

var PROCESS_LIFESPAN_FUNC

  • 说明: 进程函数

  • 类型: TypeAlias

  • 默认值: SYNC_PROCESS_LIFESPAN_FUNC | ASYNC_PROCESS_LIFESPAN_FUNC

class Lifespan


func __init__(self) -> None

说明: 轻雪生命周期管理,启动、停止、重启

源代码在GitHub上查看
python
def __init__(self) -> None:\n    self.life_flag: int = 0\n    self._before_start_funcs: list[LIFESPAN_FUNC] = []\n    self._after_start_funcs: list[LIFESPAN_FUNC] = []\n    self._before_process_shutdown_funcs: list[PROCESS_LIFESPAN_FUNC] = []\n    self._after_shutdown_funcs: list[LIFESPAN_FUNC] = []\n    self._before_process_restart_funcs: list[PROCESS_LIFESPAN_FUNC] = []\n    self._after_restart_funcs: list[LIFESPAN_FUNC] = []

@staticmethod

async func run_funcs(funcs: Sequence[LIFESPAN_FUNC | PROCESS_LIFESPAN_FUNC], *args, **kwargs) -> None

说明: 并发运行异步函数

参数:

源代码在GitHub上查看
python
@staticmethod\nasync def run_funcs(funcs: Sequence[LIFESPAN_FUNC | PROCESS_LIFESPAN_FUNC], *args, **kwargs) -> None:\n    tasks = [func(*args, **kwargs) if is_coroutine_callable(func) else async_wrapper(func)(*args, **kwargs) for func in funcs]\n    await asyncio.gather(*tasks)

func on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

说明: 注册启动时的函数

参数:

返回: LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:\n    self._before_start_funcs.append(func)\n    return func

func on_after_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

说明: 注册启动时的函数

参数:

返回: LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_after_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:\n    self._after_start_funcs.append(func)\n    return func

func on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC

说明: 注册进程停止前的函数

参数:

返回: PROCESS_LIFESPAN_FUNC: 进程生命周期函数

源代码在GitHub上查看
python
def on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC:\n    self._before_process_shutdown_funcs.append(func)\n    return func

func on_after_shutdown(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

说明: 注册停止后的函数

参数:

返回: LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_after_shutdown(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:\n    self._after_shutdown_funcs.append(func)\n    return func

func on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC

说明: 注册进程重启前的函数

参数:

返回: PROCESS_LIFESPAN_FUNC: 进程生命周期函数

源代码在GitHub上查看
python
def on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC:\n    self._before_process_restart_funcs.append(func)\n    return func

func on_after_restart(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

说明: 注册重启后的函数

参数:

返回: LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_after_restart(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:\n    self._after_restart_funcs.append(func)\n    return func

async func before_start(self) -> None

说明: 启动前钩子

源代码在GitHub上查看
python
async def before_start(self) -> None:\n    logger.debug('Running before_start functions')\n    await self.run_funcs(self._before_start_funcs)

async func after_start(self) -> None

说明: 启动后钩子

源代码在GitHub上查看
python
async def after_start(self) -> None:\n    logger.debug('Running after_start functions')\n    await self.run_funcs(self._after_start_funcs)

async func before_process_shutdown(self, *args, **kwargs) -> None

说明: 停止前钩子

源代码在GitHub上查看
python
async def before_process_shutdown(self, *args, **kwargs) -> None:\n    logger.debug('Running before_shutdown functions')\n    await self.run_funcs(self._before_process_shutdown_funcs, *args, **kwargs)

async func after_shutdown(self) -> None

说明: 停止后钩子 未实现

源代码在GitHub上查看
python
async def after_shutdown(self) -> None:\n    logger.debug('Running after_shutdown functions')\n    await self.run_funcs(self._after_shutdown_funcs)

async func before_process_restart(self, *args, **kwargs) -> None

说明: 重启前钩子

源代码在GitHub上查看
python
async def before_process_restart(self, *args, **kwargs) -> None:\n    logger.debug('Running before_restart functions')\n    await self.run_funcs(self._before_process_restart_funcs, *args, **kwargs)

async func after_restart(self) -> None

说明: 重启后钩子 未实现

源代码在GitHub上查看
python
async def after_restart(self) -> None:\n    logger.debug('Running after_restart functions')\n    await self.run_funcs(self._after_restart_funcs)
',93),l=[e];function h(p,r,k,o,c,d){return a(),i("div",null,l)}const u=s(t,[["render",h]]);export{E as __pageData,u as default}; diff --git a/assets/dev_api_bot_lifespan.md.cXpYfBFa.lean.js b/assets/dev_api_bot_lifespan.md.DBf_PC3G.lean.js similarity index 86% rename from assets/dev_api_bot_lifespan.md.cXpYfBFa.lean.js rename to assets/dev_api_bot_lifespan.md.DBf_PC3G.lean.js index 739a31d3..7aa95d2b 100644 --- a/assets/dev_api_bot_lifespan.md.cXpYfBFa.lean.js +++ b/assets/dev_api_bot_lifespan.md.DBf_PC3G.lean.js @@ -1 +1 @@ -import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const E=JSON.parse('{"title":"liteyuki.bot.lifespan","description":"","frontmatter":{"title":"liteyuki.bot.lifespan"},"headers":[],"relativePath":"dev/api/bot/lifespan.md","filePath":"zh/dev/api/bot/lifespan.md","lastUpdated":null}'),t={name:"dev/api/bot/lifespan.md"},e=n("",79),l=[e];function h(p,r,k,o,c,d){return a(),i("div",null,l)}const u=s(t,[["render",h]]);export{E as __pageData,u as default}; +import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const E=JSON.parse('{"title":"liteyuki.bot.lifespan","description":"","frontmatter":{"title":"liteyuki.bot.lifespan"},"headers":[],"relativePath":"dev/api/bot/lifespan.md","filePath":"zh/dev/api/bot/lifespan.md","lastUpdated":null}'),t={name:"dev/api/bot/lifespan.md"},e=n("",93),l=[e];function h(p,r,k,o,c,d){return a(),i("div",null,l)}const u=s(t,[["render",h]]);export{E as __pageData,u as default}; diff --git a/assets/dev_api_bot_lifespan.md.cXpYfBFa.js b/assets/dev_api_bot_lifespan.md.cXpYfBFa.js deleted file mode 100644 index bf54ba56..00000000 --- a/assets/dev_api_bot_lifespan.md.cXpYfBFa.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const E=JSON.parse('{"title":"liteyuki.bot.lifespan","description":"","frontmatter":{"title":"liteyuki.bot.lifespan"},"headers":[],"relativePath":"dev/api/bot/lifespan.md","filePath":"zh/dev/api/bot/lifespan.md","lastUpdated":null}'),t={name:"dev/api/bot/lifespan.md"},e=n('

模块 liteyuki.bot.lifespan

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/23 下午8:24 @Author : snowykami @Email : snowykami@outlook.com @File : lifespan.py @Software: PyCharm

var SYNC_LIFESPAN_FUNC

  • 说明: 同步生命周期函数

  • 类型: TypeAlias

  • 默认值: Callable[[], Any]

var ASYNC_LIFESPAN_FUNC

  • 说明: 异步生命周期函数

  • 类型: TypeAlias

  • 默认值: Callable[[], Awaitable[Any]]

var LIFESPAN_FUNC

  • 说明: 生命周期函数

  • 类型: TypeAlias

  • 默认值: SYNC_LIFESPAN_FUNC | ASYNC_LIFESPAN_FUNC

var SYNC_PROCESS_LIFESPAN_FUNC

  • 说明: 同步进程生命周期函数

  • 类型: TypeAlias

  • 默认值: Callable[[str], Any]

var ASYNC_PROCESS_LIFESPAN_FUNC

  • 说明: 异步进程生命周期函数

  • 类型: TypeAlias

  • 默认值: Callable[[str], Awaitable[Any]]

var PROCESS_LIFESPAN_FUNC

  • 说明: 进程函数

  • 类型: TypeAlias

  • 默认值: SYNC_PROCESS_LIFESPAN_FUNC | ASYNC_PROCESS_LIFESPAN_FUNC

class Lifespan

func __init__(self) -> None

说明: 轻雪生命周期管理,启动、停止、重启

源代码在GitHub上查看
python
def __init__(self) -> None:\n    self.life_flag: int = 0\n    self._before_start_funcs: list[LIFESPAN_FUNC] = []\n    self._after_start_funcs: list[LIFESPAN_FUNC] = []\n    self._before_process_shutdown_funcs: list[PROCESS_LIFESPAN_FUNC] = []\n    self._after_shutdown_funcs: list[LIFESPAN_FUNC] = []\n    self._before_process_restart_funcs: list[PROCESS_LIFESPAN_FUNC] = []\n    self._after_restart_funcs: list[LIFESPAN_FUNC] = []

@staticmethod

async func run_funcs(funcs: Sequence[LIFESPAN_FUNC | PROCESS_LIFESPAN_FUNC], *args, **kwargs) -> None

说明: 并发运行异步函数

参数:

源代码在GitHub上查看
python
@staticmethod\nasync def run_funcs(funcs: Sequence[LIFESPAN_FUNC | PROCESS_LIFESPAN_FUNC], *args, **kwargs) -> None:\n    tasks = [func(*args, **kwargs) if is_coroutine_callable(func) else async_wrapper(func)(*args, **kwargs) for func in funcs]\n    await asyncio.gather(*tasks)

func on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

说明: 注册启动时的函数

参数:

返回: LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:\n    self._before_start_funcs.append(func)\n    return func

func on_after_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

说明: 注册启动时的函数

参数:

返回: LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_after_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:\n    self._after_start_funcs.append(func)\n    return func

func on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC

说明: 注册进程停止前的函数

参数:

返回: PROCESS_LIFESPAN_FUNC: 进程生命周期函数

源代码在GitHub上查看
python
def on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC:\n    self._before_process_shutdown_funcs.append(func)\n    return func

func on_after_shutdown(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

说明: 注册停止后的函数

参数:

返回: LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_after_shutdown(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:\n    self._after_shutdown_funcs.append(func)\n    return func

func on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC

说明: 注册进程重启前的函数

参数:

返回: PROCESS_LIFESPAN_FUNC: 进程生命周期函数

源代码在GitHub上查看
python
def on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC:\n    self._before_process_restart_funcs.append(func)\n    return func

func on_after_restart(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

说明: 注册重启后的函数

参数:

返回: LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_after_restart(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:\n    self._after_restart_funcs.append(func)\n    return func

async func before_start(self) -> None

说明: 启动前钩子

源代码在GitHub上查看
python
async def before_start(self) -> None:\n    logger.debug('Running before_start functions')\n    await self.run_funcs(self._before_start_funcs)

async func after_start(self) -> None

说明: 启动后钩子

源代码在GitHub上查看
python
async def after_start(self) -> None:\n    logger.debug('Running after_start functions')\n    await self.run_funcs(self._after_start_funcs)

async func before_process_shutdown(self, *args, **kwargs) -> None

说明: 停止前钩子

源代码在GitHub上查看
python
async def before_process_shutdown(self, *args, **kwargs) -> None:\n    logger.debug('Running before_shutdown functions')\n    await self.run_funcs(self._before_process_shutdown_funcs, *args, **kwargs)

async func after_shutdown(self) -> None

说明: 停止后钩子 未实现

源代码在GitHub上查看
python
async def after_shutdown(self) -> None:\n    logger.debug('Running after_shutdown functions')\n    await self.run_funcs(self._after_shutdown_funcs)

async func before_process_restart(self, *args, **kwargs) -> None

说明: 重启前钩子

源代码在GitHub上查看
python
async def before_process_restart(self, *args, **kwargs) -> None:\n    logger.debug('Running before_restart functions')\n    await self.run_funcs(self._before_process_restart_funcs, *args, **kwargs)

async func after_restart(self) -> None

说明: 重启后钩子 未实现

源代码在GitHub上查看
python
async def after_restart(self) -> None:\n    logger.debug('Running after_restart functions')\n    await self.run_funcs(self._after_restart_funcs)
',79),l=[e];function h(p,r,k,o,c,d){return a(),i("div",null,l)}const u=s(t,[["render",h]]);export{E as __pageData,u as default}; diff --git a/assets/dev_api_comm_channel.md.Rby8KuoW.js b/assets/dev_api_comm_channel.md.B_Q8RkLg.js similarity index 68% rename from assets/dev_api_comm_channel.md.Rby8KuoW.js rename to assets/dev_api_comm_channel.md.B_Q8RkLg.js index 9335d11b..488ad545 100644 --- a/assets/dev_api_comm_channel.md.Rby8KuoW.js +++ b/assets/dev_api_comm_channel.md.B_Q8RkLg.js @@ -1,4 +1,4 @@ -import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const o=JSON.parse('{"title":"liteyuki.comm.channel","description":"","frontmatter":{"title":"liteyuki.comm.channel"},"headers":[],"relativePath":"dev/api/comm/channel.md","filePath":"zh/dev/api/comm/channel.md","lastUpdated":null}'),e={name:"dev/api/comm/channel.md"},l=n(`

模块 liteyuki.comm.channel

本模块定义了一个通用的通道类,用于进程间通信

var SYNC_ON_RECEIVE_FUNC

  • 说明: 同步接收函数

  • 类型: TypeAlias

  • 默认值: Callable[[T], Any]

var ASYNC_ON_RECEIVE_FUNC

  • 说明: 异步接收函数

  • 类型: TypeAlias

  • 默认值: Callable[[T], Coroutine[Any, Any, Any]]

var ON_RECEIVE_FUNC

  • 说明: 接收函数

  • 类型: TypeAlias

  • 默认值: SYNC_ON_RECEIVE_FUNC | ASYNC_ON_RECEIVE_FUNC

var SYNC_FILTER_FUNC

  • 说明: 同步过滤函数

  • 类型: TypeAlias

  • 默认值: Callable[[T], bool]

var ASYNC_FILTER_FUNC

  • 说明: 异步过滤函数

  • 类型: TypeAlias

  • 默认值: Callable[[T], Coroutine[Any, Any, bool]]

var FILTER_FUNC

  • 说明: 过滤函数

  • 类型: TypeAlias

  • 默认值: SYNC_FILTER_FUNC | ASYNC_FILTER_FUNC

class Channel(Generic[T])

func __init__(self, name: str, type_check: Optional[bool] = None)

说明: 初始化通道

参数:

  • name: 通道ID
  • type_check: 是否开启类型检查, 若为空,则传入泛型默认开启,否则默认关闭
源代码在GitHub上查看
python
def __init__(self, name: str, type_check: Optional[bool]=None):
+import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const o=JSON.parse('{"title":"liteyuki.comm.channel","description":"","frontmatter":{"title":"liteyuki.comm.channel"},"headers":[],"relativePath":"dev/api/comm/channel.md","filePath":"zh/dev/api/comm/channel.md","lastUpdated":null}'),e={name:"dev/api/comm/channel.md"},l=n(`

模块 liteyuki.comm.channel

本模块定义了一个通用的通道类,用于进程间通信

var SYNC_ON_RECEIVE_FUNC

  • 说明: 同步接收函数

  • 类型: TypeAlias

  • 默认值: Callable[[T], Any]

var ASYNC_ON_RECEIVE_FUNC

  • 说明: 异步接收函数

  • 类型: TypeAlias

  • 默认值: Callable[[T], Coroutine[Any, Any, Any]]

var ON_RECEIVE_FUNC

  • 说明: 接收函数

  • 类型: TypeAlias

  • 默认值: SYNC_ON_RECEIVE_FUNC | ASYNC_ON_RECEIVE_FUNC

var SYNC_FILTER_FUNC

  • 说明: 同步过滤函数

  • 类型: TypeAlias

  • 默认值: Callable[[T], bool]

var ASYNC_FILTER_FUNC

  • 说明: 异步过滤函数

  • 类型: TypeAlias

  • 默认值: Callable[[T], Coroutine[Any, Any, bool]]

var FILTER_FUNC

  • 说明: 过滤函数

  • 类型: TypeAlias

  • 默认值: SYNC_FILTER_FUNC | ASYNC_FILTER_FUNC

class Channel(Generic[T])


func __init__(self, name: str, type_check: Optional[bool] = None)

说明: 初始化通道

参数:

  • name: 通道ID
  • type_check: 是否开启类型检查, 若为空,则传入泛型默认开启,否则默认关闭
源代码在GitHub上查看
python
def __init__(self, name: str, type_check: Optional[bool]=None):
     self.conn_send, self.conn_recv = Pipe()
     self._conn_send_inner, self._conn_recv_inner = Pipe()
     self._closed = False
@@ -20,22 +20,22 @@ import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const o
         _channel[name] = self
         logger.debug(f'Channel {name} initialized in main process')
     else:
-        logger.debug(f'Channel {name} initialized in sub process, should manually set in main process')

func send(self, data: T)

说明: 发送数据,发送函数为同步函数,没有异步的必要

参数:

  • data (T): 数据
源代码在GitHub上查看
python
def send(self, data: T):
+        logger.debug(f'Channel {name} initialized in sub process, should manually set in main process')

func send(self, data: T)

说明: 发送数据,发送函数为同步函数,没有异步的必要

参数:

  • data (T): 数据
源代码在GitHub上查看
python
def send(self, data: T):
     if self.type_check:
         _type = self._get_generic_type()
         if _type is not None and (not self._validate_structure(data, _type)):
             raise TypeError(f'Data must be an instance of {_type}, {type(data)} found')
     if self._closed:
         raise RuntimeError('Cannot send to a closed channel_')
-    self.conn_send.send(data)

func receive(self) -> T

说明: 同步接收数据,会阻塞线程

返回: T: 数据

源代码在GitHub上查看
python
def receive(self) -> T:
+    self.conn_send.send(data)

func receive(self) -> T

说明: 同步接收数据,会阻塞线程

返回: T: 数据

源代码在GitHub上查看
python
def receive(self) -> T:
     if self._closed:
         raise RuntimeError('Cannot receive from a closed channel_')
     while True:
         data = self.conn_recv.recv()
-        return data

async func async_receive(self) -> T

说明: 异步接收数据,会挂起等待

返回: T: 数据

源代码在GitHub上查看
python
async def async_receive(self) -> T:
+        return data

async func async_receive(self) -> T

说明: 异步接收数据,会挂起等待

返回: T: 数据

源代码在GitHub上查看
python
async def async_receive(self) -> T:
     loop = asyncio.get_running_loop()
     data = await loop.run_in_executor(None, self.receive)
-    return data

func on_receive(self, filter_func: Optional[FILTER_FUNC] = None) -> Callable[[Callable[[T], Any]], Callable[[T], Any]]

说明: 接收数据并执行函数

参数:

返回: Callable[[Callable[[T], Any]], Callable[[T], Any]]: 装饰器

源代码在GitHub上查看
python
def on_receive(self, filter_func: Optional[FILTER_FUNC]=None) -> Callable[[Callable[[T], Any]], Callable[[T], Any]]:
+    return data

func on_receive(self, filter_func: Optional[FILTER_FUNC] = None) -> Callable[[Callable[[T], Any]], Callable[[T], Any]]

说明: 接收数据并执行函数

参数:

返回: Callable[[Callable[[T], Any]], Callable[[T], Any]]: 装饰器

源代码在GitHub上查看
python
def on_receive(self, filter_func: Optional[FILTER_FUNC]=None) -> Callable[[Callable[[T], Any]], Callable[[T], Any]]:
     if not IS_MAIN_PROCESS:
         raise RuntimeError('on_receive can only be used in main process')
 
@@ -60,7 +60,7 @@ import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const o
             self._on_sub_receive_func_ids.append(_func_id)
         _func_id += 1
         return func
-    return decorator

var active_channel

  • 说明: 子进程可用的主动和被动通道

  • 类型: Channel

  • 默认值: Channel(name='active_channel')

var passive_channel

  • 说明: 被动通道

  • 类型: Channel

  • 默认值: Channel(name='passive_channel')

var publish_channel

  • 说明: 通道传递通道,主进程创建单例,子进程初始化时实例化

  • 类型: Channel[tuple[str, dict[str, Any]]]

  • 默认值: Channel(name='publish_channel')

var channel_deliver_active_channel

  • 说明: 通道传递通道,主进程创建单例,子进程初始化时实例化

  • 类型: Channel[Channel[Any]]

  • 默认值: NO_DEFAULT

var channel_deliver_passive_channel

  • 说明: 被动通道传递通道

  • 类型: Channel[tuple[str, dict[str, Any]]]

  • 默认值: NO_DEFAULT

func set_channel(name: str, channel: Channel)

说明: 设置通道实例

参数:

  • name (str): 通道名称
  • channel (Channel): 通道实例
源代码在GitHub上查看
python
def set_channel(name: str, channel: 'Channel'):
+    return decorator

var active_channel

  • 说明: 子进程可用的主动和被动通道

  • 类型: Channel

  • 默认值: Channel(name='active_channel')

var passive_channel

  • 说明: 被动通道

  • 类型: Channel

  • 默认值: Channel(name='passive_channel')

var publish_channel

  • 说明: 通道传递通道,主进程创建单例,子进程初始化时实例化

  • 类型: Channel[tuple[str, dict[str, Any]]]

  • 默认值: Channel(name='publish_channel')

var channel_deliver_active_channel

  • 说明: 通道传递通道,主进程创建单例,子进程初始化时实例化

  • 类型: Channel[Channel[Any]]

  • 默认值: NO_DEFAULT

var channel_deliver_passive_channel

  • 说明: 被动通道传递通道

  • 类型: Channel[tuple[str, dict[str, Any]]]

  • 默认值: NO_DEFAULT


func set_channel(name: str, channel: Channel)

说明: 设置通道实例

参数:

  • name (str): 通道名称
  • channel (Channel): 通道实例
源代码在GitHub上查看
python
def set_channel(name: str, channel: 'Channel'):
     if not isinstance(channel, Channel):
         raise TypeError(f'channel_ must be an instance of Channel, {type(channel)} found')
     if IS_MAIN_PROCESS:
@@ -68,27 +68,27 @@ import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const o
             raise ValueError(f'Channel {name} already exists')
         _channel[name] = channel
     else:
-        channel_deliver_passive_channel.send(('set_channel', {'name': name, 'channel_': channel}))

func set_channels(channels: dict[str, Channel])

说明: 设置通道实例

参数:

源代码在GitHub上查看
python
def set_channels(channels: dict[str, 'Channel']):
+        channel_deliver_passive_channel.send(('set_channel', {'name': name, 'channel_': channel}))

func set_channels(channels: dict[str, Channel])

说明: 设置通道实例

参数:

源代码在GitHub上查看
python
def set_channels(channels: dict[str, 'Channel']):
     for name, channel in channels.items():
-        set_channel(name, channel)

func get_channel(name: str) -> Channel

说明: 获取通道实例

参数:

  • name (str): 通道名称

返回: Channel: 通道实例

源代码在GitHub上查看
python
def get_channel(name: str) -> 'Channel':
+        set_channel(name, channel)

func get_channel(name: str) -> Channel

说明: 获取通道实例

参数:

  • name (str): 通道名称

返回: Channel: 通道实例

源代码在GitHub上查看
python
def get_channel(name: str) -> 'Channel':
     if IS_MAIN_PROCESS:
         return _channel[name]
     else:
         recv_chan = Channel[Channel[Any]]('recv_chan')
         channel_deliver_passive_channel.send(('get_channel', {'name': name, 'recv_chan': recv_chan}))
-        return recv_chan.receive()

func get_channels() -> dict[str, Channel]

说明: 获取通道实例们

返回: dict[str, Channel]: 通道实例

源代码在GitHub上查看
python
def get_channels() -> dict[str, 'Channel']:
+        return recv_chan.receive()

func get_channels() -> dict[str, Channel]

说明: 获取通道实例们

返回: dict[str, Channel]: 通道实例

源代码在GitHub上查看
python
def get_channels() -> dict[str, 'Channel']:
     if IS_MAIN_PROCESS:
         return _channel
     else:
         recv_chan = Channel[dict[str, Channel[Any]]]('recv_chan')
         channel_deliver_passive_channel.send(('get_channels', {'recv_chan': recv_chan}))
-        return recv_chan.receive()

var channel_deliver_active_channel

  • 说明: 主动通道传递通道

  • 默认值: Channel(name='channel_deliver_active_channel')

var channel_deliver_passive_channel

  • 说明: 被动通道传递通道

  • 默认值: Channel(name='channel_deliver_passive_channel')

@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'set_channel')

func on_set_channel(data: tuple[str, dict[str, Any]])

源代码在GitHub上查看
python
@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'set_channel')
+        return recv_chan.receive()

var channel_deliver_active_channel

  • 说明: 主动通道传递通道

  • 默认值: Channel(name='channel_deliver_active_channel')

var channel_deliver_passive_channel

  • 说明: 被动通道传递通道

  • 默认值: Channel(name='channel_deliver_passive_channel')


@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'set_channel')

func on_set_channel(data: tuple[str, dict[str, Any]])

源代码在GitHub上查看
python
@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'set_channel')
 def on_set_channel(data: tuple[str, dict[str, Any]]):
     name, channel = (data[1]['name'], data[1]['channel_'])
-    set_channel(name, channel)

@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'get_channel')

func on_get_channel(data: tuple[str, dict[str, Any]])

源代码在GitHub上查看
python
@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'get_channel')
+    set_channel(name, channel)

@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'get_channel')

func on_get_channel(data: tuple[str, dict[str, Any]])

源代码在GitHub上查看
python
@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'get_channel')
 def on_get_channel(data: tuple[str, dict[str, Any]]):
     name, recv_chan = (data[1]['name'], data[1]['recv_chan'])
-    recv_chan.send(get_channel(name))

@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'get_channels')

func on_get_channels(data: tuple[str, dict[str, Any]])

源代码在GitHub上查看
python
@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'get_channels')
+    recv_chan.send(get_channel(name))

@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'get_channels')

func on_get_channels(data: tuple[str, dict[str, Any]])

源代码在GitHub上查看
python
@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'get_channels')
 def on_get_channels(data: tuple[str, dict[str, Any]]):
     recv_chan = data[1]['recv_chan']
-    recv_chan.send(get_channels())
`,82),t=[l];function h(k,p,r,d,c,E){return a(),i("div",null,t)}const y=s(e,[["render",h]]);export{o as __pageData,y as default}; + recv_chan.send(get_channels())
`,94),t=[l];function h(k,p,r,d,c,E){return a(),i("div",null,t)}const y=s(e,[["render",h]]);export{o as __pageData,y as default}; diff --git a/assets/dev_api_comm_channel.md.Rby8KuoW.lean.js b/assets/dev_api_comm_channel.md.B_Q8RkLg.lean.js similarity index 86% rename from assets/dev_api_comm_channel.md.Rby8KuoW.lean.js rename to assets/dev_api_comm_channel.md.B_Q8RkLg.lean.js index b798d267..44ffe953 100644 --- a/assets/dev_api_comm_channel.md.Rby8KuoW.lean.js +++ b/assets/dev_api_comm_channel.md.B_Q8RkLg.lean.js @@ -1 +1 @@ -import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const o=JSON.parse('{"title":"liteyuki.comm.channel","description":"","frontmatter":{"title":"liteyuki.comm.channel"},"headers":[],"relativePath":"dev/api/comm/channel.md","filePath":"zh/dev/api/comm/channel.md","lastUpdated":null}'),e={name:"dev/api/comm/channel.md"},l=n("",82),t=[l];function h(k,p,r,d,c,E){return a(),i("div",null,t)}const y=s(e,[["render",h]]);export{o as __pageData,y as default}; +import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const o=JSON.parse('{"title":"liteyuki.comm.channel","description":"","frontmatter":{"title":"liteyuki.comm.channel"},"headers":[],"relativePath":"dev/api/comm/channel.md","filePath":"zh/dev/api/comm/channel.md","lastUpdated":null}'),e={name:"dev/api/comm/channel.md"},l=n("",94),t=[l];function h(k,p,r,d,c,E){return a(),i("div",null,t)}const y=s(e,[["render",h]]);export{o as __pageData,y as default}; diff --git a/assets/dev_api_comm_event.md.0WEOopJJ.js b/assets/dev_api_comm_event.md.0WEOopJJ.js deleted file mode 100644 index bdc9446a..00000000 --- a/assets/dev_api_comm_event.md.0WEOopJJ.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as a,o as t,a9 as i}from"./chunks/framework.C4_mTacX.js";const _=JSON.parse('{"title":"liteyuki.comm.event","description":"","frontmatter":{"title":"liteyuki.comm.event"},"headers":[],"relativePath":"dev/api/comm/event.md","filePath":"zh/dev/api/comm/event.md","lastUpdated":null}'),e={name:"dev/api/comm/event.md"},n=i('

模块 liteyuki.comm.event

本模块用于轻雪主进程和子进程之间的通信的事件类

class Event

func __init__(self, name: str, data: dict[str, Any])

源代码在GitHub上查看
python
def __init__(self, name: str, data: dict[str, Any]):\n    self.name = name\n    self.data = data
',5),l=[n];function h(d,r,o,c,p,k){return t(),a("div",null,l)}const y=s(e,[["render",h]]);export{_ as __pageData,y as default}; diff --git a/assets/dev_api_comm_event.md.Dkw9vL8j.js b/assets/dev_api_comm_event.md.Dkw9vL8j.js new file mode 100644 index 00000000..1a220884 --- /dev/null +++ b/assets/dev_api_comm_event.md.Dkw9vL8j.js @@ -0,0 +1 @@ +import{_ as s,c as a,o as t,a9 as i}from"./chunks/framework.C4_mTacX.js";const _=JSON.parse('{"title":"liteyuki.comm.event","description":"","frontmatter":{"title":"liteyuki.comm.event"},"headers":[],"relativePath":"dev/api/comm/event.md","filePath":"zh/dev/api/comm/event.md","lastUpdated":null}'),e={name:"dev/api/comm/event.md"},n=i('

模块 liteyuki.comm.event

本模块用于轻雪主进程和子进程之间的通信的事件类

class Event


func __init__(self, name: str, data: dict[str, Any])

源代码在GitHub上查看
python
def __init__(self, name: str, data: dict[str, Any]):\n    self.name = name\n    self.data = data
',6),l=[n];function h(r,d,o,c,p,k){return t(),a("div",null,l)}const y=s(e,[["render",h]]);export{_ as __pageData,y as default}; diff --git a/assets/dev_api_comm_event.md.0WEOopJJ.lean.js b/assets/dev_api_comm_event.md.Dkw9vL8j.lean.js similarity index 86% rename from assets/dev_api_comm_event.md.0WEOopJJ.lean.js rename to assets/dev_api_comm_event.md.Dkw9vL8j.lean.js index 0d0a01c2..cc54bf88 100644 --- a/assets/dev_api_comm_event.md.0WEOopJJ.lean.js +++ b/assets/dev_api_comm_event.md.Dkw9vL8j.lean.js @@ -1 +1 @@ -import{_ as s,c as a,o as t,a9 as i}from"./chunks/framework.C4_mTacX.js";const _=JSON.parse('{"title":"liteyuki.comm.event","description":"","frontmatter":{"title":"liteyuki.comm.event"},"headers":[],"relativePath":"dev/api/comm/event.md","filePath":"zh/dev/api/comm/event.md","lastUpdated":null}'),e={name:"dev/api/comm/event.md"},n=i("",5),l=[n];function h(d,r,o,c,p,k){return t(),a("div",null,l)}const y=s(e,[["render",h]]);export{_ as __pageData,y as default}; +import{_ as s,c as a,o as t,a9 as i}from"./chunks/framework.C4_mTacX.js";const _=JSON.parse('{"title":"liteyuki.comm.event","description":"","frontmatter":{"title":"liteyuki.comm.event"},"headers":[],"relativePath":"dev/api/comm/event.md","filePath":"zh/dev/api/comm/event.md","lastUpdated":null}'),e={name:"dev/api/comm/event.md"},n=i("",6),l=[n];function h(r,d,o,c,p,k){return t(),a("div",null,l)}const y=s(e,[["render",h]]);export{_ as __pageData,y as default}; diff --git a/assets/dev_api_comm_rpc.md.CATS97wW.js b/assets/dev_api_comm_rpc.md.CATS97wW.js deleted file mode 100644 index 493ad3c9..00000000 --- a/assets/dev_api_comm_rpc.md.CATS97wW.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as i,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const u=JSON.parse('{"title":"liteyuki.comm.rpc","description":"","frontmatter":{"title":"liteyuki.comm.rpc"},"headers":[],"relativePath":"dev/api/comm/rpc.md","filePath":"zh/dev/api/comm/rpc.md","lastUpdated":null}'),e={name:"dev/api/comm/rpc.md"},n=t('

模块 liteyuki.comm.rpc

本模块用于实现RPC(基于IPC)通信

class RPC

func __init__(self, on_calling: ON_CALLING_FUNC) -> None

源代码在GitHub上查看
python
def __init__(self, on_calling: ON_CALLING_FUNC) -> None:\n    self.on_calling = on_calling

func call(self, args: tuple, kwargs: dict) -> Any

说明: 调用

源代码在GitHub上查看
python
def call(self, args: tuple, kwargs: dict) -> Any:\n    return self.on_calling(args, kwargs)
',8),l=[n];function c(h,p,r,o,k,d){return a(),i("div",null,l)}const m=s(e,[["render",c]]);export{u as __pageData,m as default}; diff --git a/assets/dev_api_comm_rpc.md.ZF5gW_b7.js b/assets/dev_api_comm_rpc.md.ZF5gW_b7.js new file mode 100644 index 00000000..814c9c37 --- /dev/null +++ b/assets/dev_api_comm_rpc.md.ZF5gW_b7.js @@ -0,0 +1 @@ +import{_ as s,c as i,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const u=JSON.parse('{"title":"liteyuki.comm.rpc","description":"","frontmatter":{"title":"liteyuki.comm.rpc"},"headers":[],"relativePath":"dev/api/comm/rpc.md","filePath":"zh/dev/api/comm/rpc.md","lastUpdated":null}'),e={name:"dev/api/comm/rpc.md"},n=t('

模块 liteyuki.comm.rpc

本模块用于实现RPC(基于IPC)通信

class RPC


func __init__(self, on_calling: ON_CALLING_FUNC) -> None

源代码在GitHub上查看
python
def __init__(self, on_calling: ON_CALLING_FUNC) -> None:\n    self.on_calling = on_calling

func call(self, args: tuple, kwargs: dict) -> Any

说明: 调用

源代码在GitHub上查看
python
def call(self, args: tuple, kwargs: dict) -> Any:\n    return self.on_calling(args, kwargs)
',10),l=[n];function c(h,r,p,o,k,d){return a(),i("div",null,l)}const m=s(e,[["render",c]]);export{u as __pageData,m as default}; diff --git a/assets/dev_api_comm_rpc.md.CATS97wW.lean.js b/assets/dev_api_comm_rpc.md.ZF5gW_b7.lean.js similarity index 70% rename from assets/dev_api_comm_rpc.md.CATS97wW.lean.js rename to assets/dev_api_comm_rpc.md.ZF5gW_b7.lean.js index bac12020..88c91ad4 100644 --- a/assets/dev_api_comm_rpc.md.CATS97wW.lean.js +++ b/assets/dev_api_comm_rpc.md.ZF5gW_b7.lean.js @@ -1 +1 @@ -import{_ as s,c as i,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const u=JSON.parse('{"title":"liteyuki.comm.rpc","description":"","frontmatter":{"title":"liteyuki.comm.rpc"},"headers":[],"relativePath":"dev/api/comm/rpc.md","filePath":"zh/dev/api/comm/rpc.md","lastUpdated":null}'),e={name:"dev/api/comm/rpc.md"},n=t("",8),l=[n];function c(h,p,r,o,k,d){return a(),i("div",null,l)}const m=s(e,[["render",c]]);export{u as __pageData,m as default}; +import{_ as s,c as i,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const u=JSON.parse('{"title":"liteyuki.comm.rpc","description":"","frontmatter":{"title":"liteyuki.comm.rpc"},"headers":[],"relativePath":"dev/api/comm/rpc.md","filePath":"zh/dev/api/comm/rpc.md","lastUpdated":null}'),e={name:"dev/api/comm/rpc.md"},n=t("",10),l=[n];function c(h,r,p,o,k,d){return a(),i("div",null,l)}const m=s(e,[["render",c]]);export{u as __pageData,m as default}; diff --git a/assets/dev_api_comm_socks_channel.md.D0z-3box.js b/assets/dev_api_comm_socks_channel.md.D0z-3box.js new file mode 100644 index 00000000..df439427 --- /dev/null +++ b/assets/dev_api_comm_socks_channel.md.D0z-3box.js @@ -0,0 +1 @@ +import{_ as s,c as a,o as i,a9 as e}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.comm.socks_channel","description":"","frontmatter":{"title":"liteyuki.comm.socks_channel"},"headers":[],"relativePath":"dev/api/comm/socks_channel.md","filePath":"zh/dev/api/comm/socks_channel.md","lastUpdated":null}'),t={name:"dev/api/comm/socks_channel.md"},n=e('

模块 liteyuki.comm.socks_channel

基于socket的通道

class SocksChannel


func __init__(self, name: str)

说明: 初始化通道

参数:

  • name: 通道ID
源代码在GitHub上查看
python
def __init__(self, name: str):\n    self._name = name\n    self._conn_send = None\n    self._conn_recv = None\n    self._closed = False

func send(self, data)

说明: 发送数据

参数:

  • data: 数据
源代码在GitHub上查看
python
def send(self, data):\n    pass

func receive(self)

说明: 接收数据

返回: data: 数据

源代码在GitHub上查看
python
def receive(self):\n    pass

func close(self)

说明: 关闭通道

源代码在GitHub上查看
python
def close(self):\n    pass
',24),l=[n];function h(o,c,p,k,r,d){return i(),a("div",null,l)}const m=s(t,[["render",h]]);export{g as __pageData,m as default}; diff --git a/assets/dev_api_comm_socks_channel.md.DowR8ySw.lean.js b/assets/dev_api_comm_socks_channel.md.D0z-3box.lean.js similarity index 87% rename from assets/dev_api_comm_socks_channel.md.DowR8ySw.lean.js rename to assets/dev_api_comm_socks_channel.md.D0z-3box.lean.js index f7ac4d77..272bbf75 100644 --- a/assets/dev_api_comm_socks_channel.md.DowR8ySw.lean.js +++ b/assets/dev_api_comm_socks_channel.md.D0z-3box.lean.js @@ -1 +1 @@ -import{_ as s,c as a,o as i,a9 as e}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.comm.socks_channel","description":"","frontmatter":{"title":"liteyuki.comm.socks_channel"},"headers":[],"relativePath":"dev/api/comm/socks_channel.md","filePath":"zh/dev/api/comm/socks_channel.md","lastUpdated":null}'),t={name:"dev/api/comm/socks_channel.md"},n=e("",20),l=[n];function h(o,c,p,k,r,d){return i(),a("div",null,l)}const m=s(t,[["render",h]]);export{g as __pageData,m as default}; +import{_ as s,c as a,o as i,a9 as e}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.comm.socks_channel","description":"","frontmatter":{"title":"liteyuki.comm.socks_channel"},"headers":[],"relativePath":"dev/api/comm/socks_channel.md","filePath":"zh/dev/api/comm/socks_channel.md","lastUpdated":null}'),t={name:"dev/api/comm/socks_channel.md"},n=e("",24),l=[n];function h(o,c,p,k,r,d){return i(),a("div",null,l)}const m=s(t,[["render",h]]);export{g as __pageData,m as default}; diff --git a/assets/dev_api_comm_socks_channel.md.DowR8ySw.js b/assets/dev_api_comm_socks_channel.md.DowR8ySw.js deleted file mode 100644 index 96ff0e67..00000000 --- a/assets/dev_api_comm_socks_channel.md.DowR8ySw.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as a,o as i,a9 as e}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.comm.socks_channel","description":"","frontmatter":{"title":"liteyuki.comm.socks_channel"},"headers":[],"relativePath":"dev/api/comm/socks_channel.md","filePath":"zh/dev/api/comm/socks_channel.md","lastUpdated":null}'),t={name:"dev/api/comm/socks_channel.md"},n=e('

模块 liteyuki.comm.socks_channel

基于socket的通道

class SocksChannel

func __init__(self, name: str)

说明: 初始化通道

参数:

  • name: 通道ID
源代码在GitHub上查看
python
def __init__(self, name: str):\n    self._name = name\n    self._conn_send = None\n    self._conn_recv = None\n    self._closed = False

func send(self, data)

说明: 发送数据

参数:

  • data: 数据
源代码在GitHub上查看
python
def send(self, data):\n    pass

func receive(self)

说明: 接收数据

返回: data: 数据

源代码在GitHub上查看
python
def receive(self):\n    pass

func close(self)

说明: 关闭通道

源代码在GitHub上查看
python
def close(self):\n    pass
',20),l=[n];function h(o,c,p,k,r,d){return i(),a("div",null,l)}const m=s(t,[["render",h]]);export{g as __pageData,m as default}; diff --git a/assets/dev_api_comm_storage.md.BTq8RCp9.js b/assets/dev_api_comm_storage.md.DlCQ-bAW.js similarity index 64% rename from assets/dev_api_comm_storage.md.BTq8RCp9.js rename to assets/dev_api_comm_storage.md.DlCQ-bAW.js index bd3e1a50..7695ef8e 100644 --- a/assets/dev_api_comm_storage.md.BTq8RCp9.js +++ b/assets/dev_api_comm_storage.md.DlCQ-bAW.js @@ -1,16 +1,16 @@ -import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"liteyuki.comm.storage","description":"","frontmatter":{"title":"liteyuki.comm.storage"},"headers":[],"relativePath":"dev/api/comm/storage.md","filePath":"zh/dev/api/comm/storage.md","lastUpdated":null}'),t={name:"dev/api/comm/storage.md"},e=n(`

模块 liteyuki.comm.storage

共享内存模块。类似于redis,但是更加轻量级并且线程安全

var _on_main_subscriber_receive_funcs

  • 说明: 主进程订阅者接收函数

  • 类型: dict[str, list[ASYNC_ON_RECEIVE_FUNC]]

  • 默认值: {}

var _on_sub_subscriber_receive_funcs

  • 说明: 子进程订阅者接收函数

  • 类型: dict[str, list[ASYNC_ON_RECEIVE_FUNC]]

  • 默认值: {}

class KeyValueStore

func __init__(self)

源代码在GitHub上查看
python
def __init__(self):
+import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"liteyuki.comm.storage","description":"","frontmatter":{"title":"liteyuki.comm.storage"},"headers":[],"relativePath":"dev/api/comm/storage.md","filePath":"zh/dev/api/comm/storage.md","lastUpdated":null}'),t={name:"dev/api/comm/storage.md"},e=n(`

模块 liteyuki.comm.storage

共享内存模块。类似于redis,但是更加轻量级并且线程安全

var _on_main_subscriber_receive_funcs

  • 说明: 主进程订阅者接收函数

  • 类型: dict[str, list[ASYNC_ON_RECEIVE_FUNC]]

  • 默认值: {}

var _on_sub_subscriber_receive_funcs

  • 说明: 子进程订阅者接收函数

  • 类型: dict[str, list[ASYNC_ON_RECEIVE_FUNC]]

  • 默认值: {}

class KeyValueStore


func __init__(self)

源代码在GitHub上查看
python
def __init__(self):
     self._store = {}
     self.active_chan = Channel[tuple[str, Optional[dict[str, Any]]]](name='shared_memory-active')
     self.passive_chan = Channel[tuple[str, Optional[dict[str, Any]]]](name='shared_memory-passive')
     self.publish_channel = Channel[tuple[str, Any]](name='shared_memory-publish')
     self.is_main_receive_loop_running = False
-    self.is_sub_receive_loop_running = False

func set(self, key: str, value: Any) -> None

说明: 设置键值对

参数:

  • key: 键
  • value: 值
源代码在GitHub上查看
python
def set(self, key: str, value: Any) -> None:
+    self.is_sub_receive_loop_running = False

func set(self, key: str, value: Any) -> None

说明: 设置键值对

参数:

  • key: 键
  • value: 值
源代码在GitHub上查看
python
def set(self, key: str, value: Any) -> None:
     if IS_MAIN_PROCESS:
         lock = _get_lock(key)
         with lock:
             self._store[key] = value
     else:
-        self.passive_chan.send(('set', {'key': key, 'value': value}))

func get(self, key: str, default: Optional[Any] = None) -> Optional[Any]

说明: 获取键值对

参数:

  • key: 键
  • default: 默认值

返回: Any: 值

源代码在GitHub上查看
python
def get(self, key: str, default: Optional[Any]=None) -> Optional[Any]:
+        self.passive_chan.send(('set', {'key': key, 'value': value}))

func get(self, key: str, default: Optional[Any] = None) -> Optional[Any]

说明: 获取键值对

参数:

  • key: 键
  • default: 默认值

返回: Any: 值

源代码在GitHub上查看
python
def get(self, key: str, default: Optional[Any]=None) -> Optional[Any]:
     if IS_MAIN_PROCESS:
         lock = _get_lock(key)
         with lock:
@@ -18,7 +18,7 @@ import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const y
     else:
         recv_chan = Channel[Optional[Any]]('recv_chan')
         self.passive_chan.send(('get', {'key': key, 'default': default, 'recv_chan': recv_chan}))
-        return recv_chan.receive()

func delete(self, key: str, ignore_key_error: bool = True) -> None

说明: 删除键值对

参数:

  • key: 键
  • ignore_key_error: 是否忽略键不存在的错误
源代码在GitHub上查看
python
def delete(self, key: str, ignore_key_error: bool=True) -> None:
+        return recv_chan.receive()

func delete(self, key: str, ignore_key_error: bool = True) -> None

说明: 删除键值对

参数:

  • key: 键
  • ignore_key_error: 是否忽略键不存在的错误
源代码在GitHub上查看
python
def delete(self, key: str, ignore_key_error: bool=True) -> None:
     if IS_MAIN_PROCESS:
         lock = _get_lock(key)
         with lock:
@@ -30,14 +30,14 @@ import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const y
                     if not ignore_key_error:
                         raise e
     else:
-        self.passive_chan.send(('delete', {'key': key}))

func get_all(self) -> dict[str, Any]

说明: 获取所有键值对

返回: dict[str, Any]: 键值对

源代码在GitHub上查看
python
def get_all(self) -> dict[str, Any]:
+        self.passive_chan.send(('delete', {'key': key}))

func get_all(self) -> dict[str, Any]

说明: 获取所有键值对

返回: dict[str, Any]: 键值对

源代码在GitHub上查看
python
def get_all(self) -> dict[str, Any]:
     if IS_MAIN_PROCESS:
         return self._store
     else:
         recv_chan = Channel[dict[str, Any]]('recv_chan')
         self.passive_chan.send(('get_all', {'recv_chan': recv_chan}))
-        return recv_chan.receive()

func publish(self, channel_: str, data: Any) -> None

说明: 发布消息

参数:

  • channel_: 频道
  • data: 数据
源代码在GitHub上查看
python
def publish(self, channel_: str, data: Any) -> None:
-    self.active_chan.send(('publish', {'channel': channel_, 'data': data}))

func on_subscriber_receive(self, channel_: str) -> Callable[[ON_RECEIVE_FUNC], ON_RECEIVE_FUNC]

说明: 订阅者接收消息时的回调

参数:

  • channel_: 频道

返回: 装饰器

源代码在GitHub上查看
python
def on_subscriber_receive(self, channel_: str) -> Callable[[ON_RECEIVE_FUNC], ON_RECEIVE_FUNC]:
+        return recv_chan.receive()

func publish(self, channel_: str, data: Any) -> None

说明: 发布消息

参数:

  • channel_: 频道
  • data: 数据
源代码在GitHub上查看
python
def publish(self, channel_: str, data: Any) -> None:
+    self.active_chan.send(('publish', {'channel': channel_, 'data': data}))

func on_subscriber_receive(self, channel_: str) -> Callable[[ON_RECEIVE_FUNC], ON_RECEIVE_FUNC]

说明: 订阅者接收消息时的回调

参数:

  • channel_: 频道

返回: 装饰器

源代码在GitHub上查看
python
def on_subscriber_receive(self, channel_: str) -> Callable[[ON_RECEIVE_FUNC], ON_RECEIVE_FUNC]:
     if not IS_MAIN_PROCESS:
         raise RuntimeError('Cannot subscribe in sub process.')
 
@@ -57,34 +57,34 @@ import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const y
                 _on_sub_subscriber_receive_funcs[channel_] = []
             _on_sub_subscriber_receive_funcs[channel_].append(wrapper)
         return wrapper
-    return decorator

@staticmethod

async func run_subscriber_receive_funcs(channel_: str, data: Any)

说明: 运行订阅者接收函数

参数:

  • channel_: 频道
  • data: 数据
源代码在GitHub上查看
python
@staticmethod
+    return decorator

@staticmethod

async func run_subscriber_receive_funcs(channel_: str, data: Any)

说明: 运行订阅者接收函数

参数:

  • channel_: 频道
  • data: 数据
源代码在GitHub上查看
python
@staticmethod
 async def run_subscriber_receive_funcs(channel_: str, data: Any):
-    [asyncio.create_task(func(data)) for func in _on_main_subscriber_receive_funcs[channel_]]

async func start_receive_loop(self)

说明: 启动发布订阅接收器循环,在主进程中运行,若有子进程订阅则推送给子进程

源代码在GitHub上查看
python
async def start_receive_loop(self):
+    [asyncio.create_task(func(data)) for func in _on_main_subscriber_receive_funcs[channel_]]

async func start_receive_loop(self)

说明: 启动发布订阅接收器循环,在主进程中运行,若有子进程订阅则推送给子进程

源代码在GitHub上查看
python
async def start_receive_loop(self):
     if not IS_MAIN_PROCESS:
         raise RuntimeError('Cannot start receive loop in sub process.')
     while True:
         data = await self.active_chan.async_receive()
         if data[0] == 'publish':
             await self.run_subscriber_receive_funcs(data[1]['channel'], data[1]['data'])
-            self.publish_channel.send(data)

class GlobalKeyValueStore

@classmethod

func get_instance(cls)

源代码在GitHub上查看
python
@classmethod
+            self.publish_channel.send(data)

class GlobalKeyValueStore


@classmethod

func get_instance(cls)

源代码在GitHub上查看
python
@classmethod
 def get_instance(cls):
     if cls._instance is None:
         with cls._lock:
             if cls._instance is None:
                 cls._instance = KeyValueStore()
-    return cls._instance

attr _instance = None

attr _lock = threading.Lock()

var shared_memory

  • 说明: 共享内存对象

  • 类型: KeyValueStore

  • 默认值: GlobalKeyValueStore.get_instance()

var _ref_count

  • 说明: import 引用计数, 防止获取空指针

  • 默认值: 0

@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'get')

func on_get(data: tuple[str, dict[str, Any]])

源代码在GitHub上查看
python
@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'get')
+    return cls._instance

attr _instance = None

attr _lock = threading.Lock()

var shared_memory

  • 说明: 共享内存对象

  • 类型: KeyValueStore

  • 默认值: GlobalKeyValueStore.get_instance()

var _ref_count

  • 说明: import 引用计数, 防止获取空指针

  • 默认值: 0


@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'get')

func on_get(data: tuple[str, dict[str, Any]])

源代码在GitHub上查看
python
@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'get')
 def on_get(data: tuple[str, dict[str, Any]]):
     key = data[1]['key']
     default = data[1]['default']
     recv_chan = data[1]['recv_chan']
-    recv_chan.send(shared_memory.get(key, default))

@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'set')

func on_set(data: tuple[str, dict[str, Any]])

源代码在GitHub上查看
python
@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'set')
+    recv_chan.send(shared_memory.get(key, default))

@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'set')

func on_set(data: tuple[str, dict[str, Any]])

源代码在GitHub上查看
python
@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'set')
 def on_set(data: tuple[str, dict[str, Any]]):
     key = data[1]['key']
     value = data[1]['value']
-    shared_memory.set(key, value)

@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'delete')

func on_delete(data: tuple[str, dict[str, Any]])

源代码在GitHub上查看
python
@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'delete')
+    shared_memory.set(key, value)

@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'delete')

func on_delete(data: tuple[str, dict[str, Any]])

源代码在GitHub上查看
python
@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'delete')
 def on_delete(data: tuple[str, dict[str, Any]]):
     key = data[1]['key']
-    shared_memory.delete(key)

@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'get_all')

func on_get_all(data: tuple[str, dict[str, Any]])

源代码在GitHub上查看
python
@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'get_all')
+    shared_memory.delete(key)

@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'get_all')

func on_get_all(data: tuple[str, dict[str, Any]])

源代码在GitHub上查看
python
@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'get_all')
 def on_get_all(data: tuple[str, dict[str, Any]]):
     recv_chan = data[1]['recv_chan']
-    recv_chan.send(shared_memory.get_all())
`,71),l=[e];function h(k,p,r,d,E,g){return a(),i("div",null,l)}const c=s(t,[["render",h]]);export{y as __pageData,c as default}; + recv_chan.send(shared_memory.get_all())
`,85),h=[e];function l(k,p,r,d,E,g){return a(),i("div",null,h)}const c=s(t,[["render",l]]);export{y as __pageData,c as default}; diff --git a/assets/dev_api_comm_storage.md.BTq8RCp9.lean.js b/assets/dev_api_comm_storage.md.DlCQ-bAW.lean.js similarity index 73% rename from assets/dev_api_comm_storage.md.BTq8RCp9.lean.js rename to assets/dev_api_comm_storage.md.DlCQ-bAW.lean.js index ab9c9915..5778f7d6 100644 --- a/assets/dev_api_comm_storage.md.BTq8RCp9.lean.js +++ b/assets/dev_api_comm_storage.md.DlCQ-bAW.lean.js @@ -1 +1 @@ -import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"liteyuki.comm.storage","description":"","frontmatter":{"title":"liteyuki.comm.storage"},"headers":[],"relativePath":"dev/api/comm/storage.md","filePath":"zh/dev/api/comm/storage.md","lastUpdated":null}'),t={name:"dev/api/comm/storage.md"},e=n("",71),l=[e];function h(k,p,r,d,E,g){return a(),i("div",null,l)}const c=s(t,[["render",h]]);export{y as __pageData,c as default}; +import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"liteyuki.comm.storage","description":"","frontmatter":{"title":"liteyuki.comm.storage"},"headers":[],"relativePath":"dev/api/comm/storage.md","filePath":"zh/dev/api/comm/storage.md","lastUpdated":null}'),t={name:"dev/api/comm/storage.md"},e=n("",85),h=[e];function l(k,p,r,d,E,g){return a(),i("div",null,h)}const c=s(t,[["render",l]]);export{y as __pageData,c as default}; diff --git a/assets/dev_api_config.md.DBrWZGxB.js b/assets/dev_api_config.md.BWciqFj4.js similarity index 64% rename from assets/dev_api_config.md.DBrWZGxB.js rename to assets/dev_api_config.md.BWciqFj4.js index 004c7079..530be8e2 100644 --- a/assets/dev_api_config.md.DBrWZGxB.js +++ b/assets/dev_api_config.md.BWciqFj4.js @@ -1,19 +1,19 @@ -import{_ as s,c as a,o as n,a9 as i,j as t}from"./chunks/framework.C4_mTacX.js";const f=JSON.parse('{"title":"liteyuki.config","description":"","frontmatter":{"title":"liteyuki.config"},"headers":[],"relativePath":"dev/api/config.md","filePath":"zh/dev/api/config.md","lastUpdated":null}'),h={name:"dev/api/config.md"},l=i('

模块 liteyuki.config

该模块用于常用配置文件的加载 多配置文件编写原则:

  1. 尽量不要冲突: 一个键不要多次出现
  2. 分工明确: 每个配置文件给一个或一类服务提供配置
  3. 扁平化编写: 配置文件尽量扁平化,不要出现过多的嵌套
  4. 注意冲突时的优先级: 项目目录下的配置文件优先级高于config目录下的配置文件
  5. 请不要将需要动态加载的内容写入配置文件,你应该使用其他储存方式

func flat_config(config: dict[str, Any]) -> dict[str, Any]

说明: 扁平化配置文件

',5),k=t("p",{"a.b.c:":"",1:""},"{a:{b:{c:1}}} ->",-1),p=i(`

参数:

  • config: 配置项目

返回: 扁平化后的配置文件,但也包含原有的键值对

源代码在GitHub上查看
python
def flat_config(config: dict[str, Any]) -> dict[str, Any]:
+import{_ as s,c as a,o as n,a9 as i,j as t}from"./chunks/framework.C4_mTacX.js";const f=JSON.parse('{"title":"liteyuki.config","description":"","frontmatter":{"title":"liteyuki.config"},"headers":[],"relativePath":"dev/api/config.md","filePath":"zh/dev/api/config.md","lastUpdated":null}'),h={name:"dev/api/config.md"},l=i('

模块 liteyuki.config

该模块用于常用配置文件的加载 多配置文件编写原则:

  1. 尽量不要冲突: 一个键不要多次出现
  2. 分工明确: 每个配置文件给一个或一类服务提供配置
  3. 扁平化编写: 配置文件尽量扁平化,不要出现过多的嵌套
  4. 注意冲突时的优先级: 项目目录下的配置文件优先级高于config目录下的配置文件
  5. 请不要将需要动态加载的内容写入配置文件,你应该使用其他储存方式

func flat_config(config: dict[str, Any]) -> dict[str, Any]

说明: 扁平化配置文件

',6),k=t("p",{"a.b.c:":"",1:""},"{a:{b:{c:1}}} ->",-1),p=i(`

参数:

  • config: 配置项目

返回: 扁平化后的配置文件,但也包含原有的键值对

源代码在GitHub上查看
python
def flat_config(config: dict[str, Any]) -> dict[str, Any]:
     new_config = copy.deepcopy(config)
     for key, value in config.items():
         if isinstance(value, dict):
             for k, v in flat_config(value).items():
                 new_config[f'{key}.{k}'] = v
-    return new_config

func load_from_yaml(file_: str) -> dict[str, Any]

说明: Load config from yaml file

源代码在GitHub上查看
python
def load_from_yaml(file_: str) -> dict[str, Any]:
+    return new_config

func load_from_yaml(file_: str) -> dict[str, Any]

说明: Load config from yaml file

源代码在GitHub上查看
python
def load_from_yaml(file_: str) -> dict[str, Any]:
     logger.debug(f'Loading YAML config from {file_}')
     config = yaml.safe_load(open(file_, 'r', encoding='utf-8'))
-    return flat_config(config if config is not None else {})

func load_from_json(file_: str) -> dict[str, Any]

说明: Load config from json file

源代码在GitHub上查看
python
def load_from_json(file_: str) -> dict[str, Any]:
+    return flat_config(config if config is not None else {})

func load_from_json(file_: str) -> dict[str, Any]

说明: Load config from json file

源代码在GitHub上查看
python
def load_from_json(file_: str) -> dict[str, Any]:
     logger.debug(f'Loading JSON config from {file_}')
     config = json.load(open(file_, 'r', encoding='utf-8'))
-    return flat_config(config if config is not None else {})

func load_from_toml(file_: str) -> dict[str, Any]

说明: Load config from toml file

源代码在GitHub上查看
python
def load_from_toml(file_: str) -> dict[str, Any]:
+    return flat_config(config if config is not None else {})

func load_from_toml(file_: str) -> dict[str, Any]

说明: Load config from toml file

源代码在GitHub上查看
python
def load_from_toml(file_: str) -> dict[str, Any]:
     logger.debug(f'Loading TOML config from {file_}')
     config = toml.load(open(file_, 'r', encoding='utf-8'))
-    return flat_config(config if config is not None else {})

func load_from_files(*files: str, *, no_warning: bool = False) -> dict[str, Any]

说明: 从指定文件加载配置项,会自动识别文件格式 默认执行扁平化选项

源代码在GitHub上查看
python
def load_from_files(*files: str, no_warning: bool=False) -> dict[str, Any]:
+    return flat_config(config if config is not None else {})

func load_from_files(*files: str, *, no_warning: bool = False) -> dict[str, Any]

说明: 从指定文件加载配置项,会自动识别文件格式 默认执行扁平化选项

源代码在GitHub上查看
python
def load_from_files(*files: str, no_warning: bool=False) -> dict[str, Any]:
     config = {}
     for file in files:
         if os.path.exists(file):
@@ -27,7 +27,7 @@ import{_ as s,c as a,o as n,a9 as i,j as t}from"./chunks/framework.C4_mTacX.js";
                 logger.warning(f'Unsupported config file format: {file}')
         elif not no_warning:
             logger.warning(f'Config file not found: {file}')
-    return config

func load_configs_from_dirs(*directories: str, *, no_waring: bool = False) -> dict[str, Any]

说明: 从目录下加载配置文件,不递归 按照读取文件的优先级反向覆盖 默认执行扁平化选项

源代码在GitHub上查看
python
def load_configs_from_dirs(*directories: str, no_waring: bool=False) -> dict[str, Any]:
+    return config

func load_configs_from_dirs(*directories: str, *, no_waring: bool = False) -> dict[str, Any]

说明: 从目录下加载配置文件,不递归 按照读取文件的优先级反向覆盖 默认执行扁平化选项

源代码在GitHub上查看
python
def load_configs_from_dirs(*directories: str, no_waring: bool=False) -> dict[str, Any]:
     config = {}
     for directory in directories:
         if not os.path.exists(directory):
@@ -37,7 +37,7 @@ import{_ as s,c as a,o as n,a9 as i,j as t}from"./chunks/framework.C4_mTacX.js";
         for file in os.listdir(directory):
             if file.endswith(_SUPPORTED_CONFIG_FORMATS):
                 config.update(load_from_files(os.path.join(directory, file), no_warning=no_waring))
-    return config

func load_config_in_default(no_waring: bool = False) -> dict[str, Any]

说明: 从一个标准的轻雪项目加载配置文件 项目目录下的config.*和config目录下的所有配置文件 项目目录下的配置文件优先

源代码在GitHub上查看
python
def load_config_in_default(no_waring: bool=False) -> dict[str, Any]:
+    return config

func load_config_in_default(no_waring: bool = False) -> dict[str, Any]

说明: 从一个标准的轻雪项目加载配置文件 项目目录下的config.*和config目录下的所有配置文件 项目目录下的配置文件优先

源代码在GitHub上查看
python
def load_config_in_default(no_waring: bool=False) -> dict[str, Any]:
     config = load_configs_from_dirs('config', no_waring=no_waring)
     config.update(load_from_files('config.yaml', 'config.toml', 'config.json', 'config.yml', no_warning=no_waring))
-    return config
`,22),e=[l,k,p];function r(d,E,g,o,y,c){return n(),a("div",null,e)}const u=s(h,[["render",r]]);export{f as __pageData,u as default}; + return config
`,28),e=[l,k,p];function r(d,E,g,o,y,c){return n(),a("div",null,e)}const u=s(h,[["render",r]]);export{f as __pageData,u as default}; diff --git a/assets/dev_api_config.md.DBrWZGxB.lean.js b/assets/dev_api_config.md.BWciqFj4.lean.js similarity index 75% rename from assets/dev_api_config.md.DBrWZGxB.lean.js rename to assets/dev_api_config.md.BWciqFj4.lean.js index d0ca2b1a..b8f1786c 100644 --- a/assets/dev_api_config.md.DBrWZGxB.lean.js +++ b/assets/dev_api_config.md.BWciqFj4.lean.js @@ -1 +1 @@ -import{_ as s,c as a,o as n,a9 as i,j as t}from"./chunks/framework.C4_mTacX.js";const f=JSON.parse('{"title":"liteyuki.config","description":"","frontmatter":{"title":"liteyuki.config"},"headers":[],"relativePath":"dev/api/config.md","filePath":"zh/dev/api/config.md","lastUpdated":null}'),h={name:"dev/api/config.md"},l=i("",5),k=t("p",{"a.b.c:":"",1:""},"{a:{b:{c:1}}} ->",-1),p=i("",22),e=[l,k,p];function r(d,E,g,o,y,c){return n(),a("div",null,e)}const u=s(h,[["render",r]]);export{f as __pageData,u as default}; +import{_ as s,c as a,o as n,a9 as i,j as t}from"./chunks/framework.C4_mTacX.js";const f=JSON.parse('{"title":"liteyuki.config","description":"","frontmatter":{"title":"liteyuki.config"},"headers":[],"relativePath":"dev/api/config.md","filePath":"zh/dev/api/config.md","lastUpdated":null}'),h={name:"dev/api/config.md"},l=i("",6),k=t("p",{"a.b.c:":"",1:""},"{a:{b:{c:1}}} ->",-1),p=i("",28),e=[l,k,p];function r(d,E,g,o,y,c){return n(),a("div",null,e)}const u=s(h,[["render",r]]);export{f as __pageData,u as default}; diff --git a/assets/dev_api_core_manager.md.CEfbZ5pK.js b/assets/dev_api_core_manager.md.B3hq0Rpu.js similarity index 64% rename from assets/dev_api_core_manager.md.CEfbZ5pK.js rename to assets/dev_api_core_manager.md.B3hq0Rpu.js index 29b4d464..3cf53b5c 100644 --- a/assets/dev_api_core_manager.md.CEfbZ5pK.js +++ b/assets/dev_api_core_manager.md.B3hq0Rpu.js @@ -1,23 +1,23 @@ -import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const c=JSON.parse('{"title":"liteyuki.core.manager","description":"","frontmatter":{"title":"liteyuki.core.manager"},"headers":[],"relativePath":"dev/api/core/manager.md","filePath":"zh/dev/api/core/manager.md","lastUpdated":null}'),e={name:"dev/api/core/manager.md"},t=n(`

模块 liteyuki.core.manager

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/27 上午11:12 @Author : snowykami @Email : snowykami@outlook.com @File : manager.py @Software: PyCharm

class ChannelDeliver

func __init__(self, active: Channel[Any], passive: Channel[Any], channel_deliver_active: Channel[Channel[Any]], channel_deliver_passive: Channel[tuple[str, dict]], publish: Channel[tuple[str, Any]])

源代码在GitHub上查看
python
def __init__(self, active: Channel[Any], passive: Channel[Any], channel_deliver_active: Channel[Channel[Any]], channel_deliver_passive: Channel[tuple[str, dict]], publish: Channel[tuple[str, Any]]):
+import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const c=JSON.parse('{"title":"liteyuki.core.manager","description":"","frontmatter":{"title":"liteyuki.core.manager"},"headers":[],"relativePath":"dev/api/core/manager.md","filePath":"zh/dev/api/core/manager.md","lastUpdated":null}'),e={name:"dev/api/core/manager.md"},t=n(`

模块 liteyuki.core.manager

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/27 上午11:12 @Author : snowykami @Email : snowykami@outlook.com @File : manager.py @Software: PyCharm

class ChannelDeliver


func __init__(self, active: Channel[Any], passive: Channel[Any], channel_deliver_active: Channel[Channel[Any]], channel_deliver_passive: Channel[tuple[str, dict]], publish: Channel[tuple[str, Any]])

源代码在GitHub上查看
python
def __init__(self, active: Channel[Any], passive: Channel[Any], channel_deliver_active: Channel[Channel[Any]], channel_deliver_passive: Channel[tuple[str, dict]], publish: Channel[tuple[str, Any]]):
     self.active = active
     self.passive = passive
     self.channel_deliver_active = channel_deliver_active
     self.channel_deliver_passive = channel_deliver_passive
-    self.publish = publish

class ProcessManager

func __init__(self, lifespan: Lifespan)

源代码在GitHub上查看
python
def __init__(self, lifespan: 'Lifespan'):
+    self.publish = publish

class ProcessManager


func __init__(self, lifespan: Lifespan)

源代码在GitHub上查看
python
def __init__(self, lifespan: 'Lifespan'):
     self.lifespan = lifespan
     self.targets: dict[str, tuple[Callable, tuple, dict]] = {}
-    self.processes: dict[str, Process] = {}

func start_all(self)

说明: 对外启动方法,启动所有进程,创建asyncio task

源代码在GitHub上查看
python
def start_all(self):
+    self.processes: dict[str, Process] = {}

func start_all(self)

说明: 对外启动方法,启动所有进程,创建asyncio task

源代码在GitHub上查看
python
def start_all(self):
     for name in self.targets:
         logger.debug(f'Starting process {name}')
-        threading.Thread(target=self._run_process, args=(name,), daemon=True).start()

func add_target(self, name: str, target: TARGET_FUNC, args: tuple = (), kwargs = None)

说明: 添加进程

参数:

  • name: 进程名,用于获取和唯一标识
  • target: 进程函数
  • args: 进程函数参数
  • kwargs: 进程函数关键字参数,通常会默认传入chan_active和chan_passive
源代码在GitHub上查看
python
def add_target(self, name: str, target: TARGET_FUNC, args: tuple=(), kwargs=None):
+        threading.Thread(target=self._run_process, args=(name,), daemon=True).start()

func add_target(self, name: str, target: TARGET_FUNC, args: tuple = (), kwargs = None)

说明: 添加进程

参数:

  • name: 进程名,用于获取和唯一标识
  • target: 进程函数
  • args: 进程函数参数
  • kwargs: 进程函数关键字参数,通常会默认传入chan_active和chan_passive
源代码在GitHub上查看
python
def add_target(self, name: str, target: TARGET_FUNC, args: tuple=(), kwargs=None):
     if kwargs is None:
         kwargs = {}
     chan_active: Channel = Channel(name=f'{name}-active')
     chan_passive: Channel = Channel(name=f'{name}-passive')
     channel_deliver = ChannelDeliver(active=chan_active, passive=chan_passive, channel_deliver_active=channel_deliver_active_channel, channel_deliver_passive=channel_deliver_passive_channel, publish=publish_channel)
-    self.targets[name] = (_delivery_channel_wrapper, (target, channel_deliver, shared_memory, *args), kwargs)

func join_all(self)

源代码在GitHub上查看
python
def join_all(self):
+    self.targets[name] = (_delivery_channel_wrapper, (target, channel_deliver, shared_memory, *args), kwargs)

func join_all(self)

源代码在GitHub上查看
python
def join_all(self):
     for name, process in self.targets:
-        process.join()

func terminate(self, name: str)

说明: 终止进程并从进程字典中删除

参数:

  • name:
源代码在GitHub上查看
python
def terminate(self, name: str):
+        process.join()

func terminate(self, name: str)

说明: 终止进程并从进程字典中删除

参数:

  • name:
源代码在GitHub上查看
python
def terminate(self, name: str):
     if name not in self.processes:
         logger.warning(f'Process {name} not found.')
         return
@@ -26,9 +26,9 @@ import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const c
     process.join(TIMEOUT)
     if process.is_alive():
         process.kill()
-    logger.success(f'Process {name} terminated.')

func terminate_all(self)

源代码在GitHub上查看
python
def terminate_all(self):
+    logger.success(f'Process {name} terminated.')

func terminate_all(self)

源代码在GitHub上查看
python
def terminate_all(self):
     for name in self.targets:
-        self.terminate(name)

func is_process_alive(self, name: str) -> bool

说明: 检查进程是否存活

参数:

  • name:
源代码在GitHub上查看
python
def is_process_alive(self, name: str) -> bool:
+        self.terminate(name)

func is_process_alive(self, name: str) -> bool

说明: 检查进程是否存活

参数:

  • name:
源代码在GitHub上查看
python
def is_process_alive(self, name: str) -> bool:
     if name not in self.targets:
         logger.warning(f'Process {name} not found.')
-    return self.processes[name].is_alive()
`,31),l=[t];function h(k,p,r,d,E,g){return a(),i("div",null,l)}const o=s(e,[["render",h]]);export{c as __pageData,o as default}; + return self.processes[name].is_alive()
`,39),l=[t];function h(k,p,r,d,E,g){return a(),i("div",null,l)}const o=s(e,[["render",h]]);export{c as __pageData,o as default}; diff --git a/assets/dev_api_core_manager.md.CEfbZ5pK.lean.js b/assets/dev_api_core_manager.md.B3hq0Rpu.lean.js similarity index 86% rename from assets/dev_api_core_manager.md.CEfbZ5pK.lean.js rename to assets/dev_api_core_manager.md.B3hq0Rpu.lean.js index 34e7b79e..a51ef804 100644 --- a/assets/dev_api_core_manager.md.CEfbZ5pK.lean.js +++ b/assets/dev_api_core_manager.md.B3hq0Rpu.lean.js @@ -1 +1 @@ -import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const c=JSON.parse('{"title":"liteyuki.core.manager","description":"","frontmatter":{"title":"liteyuki.core.manager"},"headers":[],"relativePath":"dev/api/core/manager.md","filePath":"zh/dev/api/core/manager.md","lastUpdated":null}'),e={name:"dev/api/core/manager.md"},t=n("",31),l=[t];function h(k,p,r,d,E,g){return a(),i("div",null,l)}const o=s(e,[["render",h]]);export{c as __pageData,o as default}; +import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const c=JSON.parse('{"title":"liteyuki.core.manager","description":"","frontmatter":{"title":"liteyuki.core.manager"},"headers":[],"relativePath":"dev/api/core/manager.md","filePath":"zh/dev/api/core/manager.md","lastUpdated":null}'),e={name:"dev/api/core/manager.md"},t=n("",39),l=[t];function h(k,p,r,d,E,g){return a(),i("div",null,l)}const o=s(e,[["render",h]]);export{c as __pageData,o as default}; diff --git a/assets/dev_api_dev_observer.md.1UR7dS3y.js b/assets/dev_api_dev_observer.md.DXfnQgLO.js similarity index 56% rename from assets/dev_api_dev_observer.md.1UR7dS3y.js rename to assets/dev_api_dev_observer.md.DXfnQgLO.js index 3308cfbe..a2ed903d 100644 --- a/assets/dev_api_dev_observer.md.1UR7dS3y.js +++ b/assets/dev_api_dev_observer.md.DXfnQgLO.js @@ -1,4 +1,4 @@ -import{_ as s,c as i,o as e,a9 as a}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.dev.observer","description":"","frontmatter":{"title":"liteyuki.dev.observer"},"headers":[],"relativePath":"dev/api/dev/observer.md","filePath":"zh/dev/api/dev/observer.md","lastUpdated":null}'),n={name:"dev/api/dev/observer.md"},t=a(`

模块 liteyuki.dev.observer

此模块用于注册观察者函数,使用watchdog监控文件变化并重启bot 启用该模块需要在配置文件中设置dev_mode为True

var CALLBACK_FUNC

  • 说明: 位置1为FileSystemEvent

  • 类型: TypeAlias

  • 默认值: Callable[[FileSystemEvent], None]

var FILTER_FUNC

  • 说明: 位置1为FileSystemEvent

  • 类型: TypeAlias

  • 默认值: Callable[[FileSystemEvent], bool]

func debounce(wait)

说明: 防抖函数

源代码在GitHub上查看
python
def debounce(wait):
+import{_ as s,c as i,o as e,a9 as a}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.dev.observer","description":"","frontmatter":{"title":"liteyuki.dev.observer"},"headers":[],"relativePath":"dev/api/dev/observer.md","filePath":"zh/dev/api/dev/observer.md","lastUpdated":null}'),n={name:"dev/api/dev/observer.md"},t=a(`

模块 liteyuki.dev.observer

此模块用于注册观察者函数,使用watchdog监控文件变化并重启bot 启用该模块需要在配置文件中设置dev_mode为True

var CALLBACK_FUNC

  • 说明: 位置1为FileSystemEvent

  • 类型: TypeAlias

  • 默认值: Callable[[FileSystemEvent], None]

var FILTER_FUNC

  • 说明: 位置1为FileSystemEvent

  • 类型: TypeAlias

  • 默认值: Callable[[FileSystemEvent], bool]


func debounce(wait)

说明: 防抖函数

源代码在GitHub上查看
python
def debounce(wait):
 
     def decorator(func):
 
@@ -10,13 +10,13 @@ import{_ as s,c as i,o as e,a9 as a}from"./chunks/framework.C4_mTacX.js";const g
                 return func(*args, **kwargs)
         last_call_time = None
         return wrapper
-    return decorator

class CodeModifiedHandler(FileSystemEventHandler)

@debounce(1)

func on_modified(self, event)

源代码在GitHub上查看
python
@debounce(1)
+    return decorator

class CodeModifiedHandler(FileSystemEventHandler)


@debounce(1)

func on_modified(self, event)

源代码在GitHub上查看
python
@debounce(1)
 def on_modified(self, event):
-    raise NotImplementedError('on_modified must be implemented')

func on_created(self, event)

源代码在GitHub上查看
python
def on_created(self, event):
-    self.on_modified(event)

func on_deleted(self, event)

源代码在GitHub上查看
python
def on_deleted(self, event):
-    self.on_modified(event)

func on_moved(self, event)

源代码在GitHub上查看
python
def on_moved(self, event):
-    self.on_modified(event)

func on_any_event(self, event)

源代码在GitHub上查看
python
def on_any_event(self, event):
-    self.on_modified(event)

func on_file_system_event(directories: tuple[str], recursive: bool = True, event_filter: FILTER_FUNC = None) -> Callable[[CALLBACK_FUNC], CALLBACK_FUNC]

说明: 注册文件系统变化监听器

参数:

  • directories: 监听目录们
  • recursive: 是否递归监听子目录
  • event_filter: 事件过滤器, 返回True则执行回调函数

返回: 装饰器,装饰一个函数在接收到数据后执行

源代码在GitHub上查看
python
def on_file_system_event(directories: tuple[str], recursive: bool=True, event_filter: FILTER_FUNC=None) -> Callable[[CALLBACK_FUNC], CALLBACK_FUNC]:
+    raise NotImplementedError('on_modified must be implemented')

func on_created(self, event)

源代码在GitHub上查看
python
def on_created(self, event):
+    self.on_modified(event)

func on_deleted(self, event)

源代码在GitHub上查看
python
def on_deleted(self, event):
+    self.on_modified(event)

func on_moved(self, event)

源代码在GitHub上查看
python
def on_moved(self, event):
+    self.on_modified(event)

func on_any_event(self, event)

源代码在GitHub上查看
python
def on_any_event(self, event):
+    self.on_modified(event)

func on_file_system_event(directories: tuple[str], recursive: bool = True, event_filter: FILTER_FUNC = None) -> Callable[[CALLBACK_FUNC], CALLBACK_FUNC]

说明: 注册文件系统变化监听器

参数:

  • directories: 监听目录们
  • recursive: 是否递归监听子目录
  • event_filter: 事件过滤器, 返回True则执行回调函数

返回: 装饰器,装饰一个函数在接收到数据后执行

源代码在GitHub上查看
python
def on_file_system_event(directories: tuple[str], recursive: bool=True, event_filter: FILTER_FUNC=None) -> Callable[[CALLBACK_FUNC], CALLBACK_FUNC]:
 
     def decorator(func: CALLBACK_FUNC) -> CALLBACK_FUNC:
 
@@ -29,4 +29,4 @@ import{_ as s,c as i,o as e,a9 as a}from"./chunks/framework.C4_mTacX.js";const g
         for directory in directories:
             observer.schedule(code_modified_handler, directory, recursive=recursive)
         return func
-    return decorator
`,27),l=[t];function h(p,k,r,d,o,c){return e(),i("div",null,l)}const y=s(n,[["render",h]]);export{g as __pageData,y as default}; + return decorator
`,34),l=[t];function h(p,r,k,d,o,c){return e(),i("div",null,l)}const y=s(n,[["render",h]]);export{g as __pageData,y as default}; diff --git a/assets/dev_api_dev_observer.md.1UR7dS3y.lean.js b/assets/dev_api_dev_observer.md.DXfnQgLO.lean.js similarity index 86% rename from assets/dev_api_dev_observer.md.1UR7dS3y.lean.js rename to assets/dev_api_dev_observer.md.DXfnQgLO.lean.js index 8cf7077d..7883d94d 100644 --- a/assets/dev_api_dev_observer.md.1UR7dS3y.lean.js +++ b/assets/dev_api_dev_observer.md.DXfnQgLO.lean.js @@ -1 +1 @@ -import{_ as s,c as i,o as e,a9 as a}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.dev.observer","description":"","frontmatter":{"title":"liteyuki.dev.observer"},"headers":[],"relativePath":"dev/api/dev/observer.md","filePath":"zh/dev/api/dev/observer.md","lastUpdated":null}'),n={name:"dev/api/dev/observer.md"},t=a("",27),l=[t];function h(p,k,r,d,o,c){return e(),i("div",null,l)}const y=s(n,[["render",h]]);export{g as __pageData,y as default}; +import{_ as s,c as i,o as e,a9 as a}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.dev.observer","description":"","frontmatter":{"title":"liteyuki.dev.observer"},"headers":[],"relativePath":"dev/api/dev/observer.md","filePath":"zh/dev/api/dev/observer.md","lastUpdated":null}'),n={name:"dev/api/dev/observer.md"},t=a("",34),l=[t];function h(p,r,k,d,o,c){return e(),i("div",null,l)}const y=s(n,[["render",h]]);export{g as __pageData,y as default}; diff --git a/assets/dev_api_dev_plugin.md.C_CkUgwx.js b/assets/dev_api_dev_plugin.md.Cops7KZu.js similarity index 61% rename from assets/dev_api_dev_plugin.md.C_CkUgwx.js rename to assets/dev_api_dev_plugin.md.Cops7KZu.js index cf83d865..d9156366 100644 --- a/assets/dev_api_dev_plugin.md.C_CkUgwx.js +++ b/assets/dev_api_dev_plugin.md.Cops7KZu.js @@ -1,7 +1,7 @@ -import{_ as i,c as s,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const E=JSON.parse('{"title":"liteyuki.dev.plugin","description":"","frontmatter":{"title":"liteyuki.dev.plugin"},"headers":[],"relativePath":"dev/api/dev/plugin.md","filePath":"zh/dev/api/dev/plugin.md","lastUpdated":null}'),n={name:"dev/api/dev/plugin.md"},e=t(`

模块 liteyuki.dev.plugin

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/18 上午5:04 @Author : snowykami @Email : snowykami@outlook.com @File : plugin.py @Software: PyCharm

func run_plugins(*module_path: str | Path)

说明: 运行插件,无需手动初始化bot

参数:

  • module_path: 插件路径,参考liteyuki.load_plugin的函数签名
源代码在GitHub上查看
python
def run_plugins(*module_path: str | Path):
+import{_ as i,c as s,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const E=JSON.parse('{"title":"liteyuki.dev.plugin","description":"","frontmatter":{"title":"liteyuki.dev.plugin"},"headers":[],"relativePath":"dev/api/dev/plugin.md","filePath":"zh/dev/api/dev/plugin.md","lastUpdated":null}'),n={name:"dev/api/dev/plugin.md"},e=t(`

模块 liteyuki.dev.plugin

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/18 上午5:04 @Author : snowykami @Email : snowykami@outlook.com @File : plugin.py @Software: PyCharm


func run_plugins(*module_path: str | Path)

说明: 运行插件,无需手动初始化bot

参数:

  • module_path: 插件路径,参考liteyuki.load_plugin的函数签名
源代码在GitHub上查看
python
def run_plugins(*module_path: str | Path):
     cfg = load_config_in_default()
     plugins = cfg.get('liteyuki.plugins', [])
     plugins.extend(module_path)
     cfg['liteyuki.plugins'] = plugins
     bot = LiteyukiBot(**cfg)
-    bot.run()
`,8),l=[e];function p(h,k,r,d,o,u){return a(),s("div",null,l)}const c=i(n,[["render",p]]);export{E as __pageData,c as default}; + bot.run()
`,9),l=[e];function p(h,k,r,d,o,u){return a(),s("div",null,l)}const c=i(n,[["render",p]]);export{E as __pageData,c as default}; diff --git a/assets/dev_api_dev_plugin.md.C_CkUgwx.lean.js b/assets/dev_api_dev_plugin.md.Cops7KZu.lean.js similarity index 86% rename from assets/dev_api_dev_plugin.md.C_CkUgwx.lean.js rename to assets/dev_api_dev_plugin.md.Cops7KZu.lean.js index 880bce45..f1ce4465 100644 --- a/assets/dev_api_dev_plugin.md.C_CkUgwx.lean.js +++ b/assets/dev_api_dev_plugin.md.Cops7KZu.lean.js @@ -1 +1 @@ -import{_ as i,c as s,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const E=JSON.parse('{"title":"liteyuki.dev.plugin","description":"","frontmatter":{"title":"liteyuki.dev.plugin"},"headers":[],"relativePath":"dev/api/dev/plugin.md","filePath":"zh/dev/api/dev/plugin.md","lastUpdated":null}'),n={name:"dev/api/dev/plugin.md"},e=t("",8),l=[e];function p(h,k,r,d,o,u){return a(),s("div",null,l)}const c=i(n,[["render",p]]);export{E as __pageData,c as default}; +import{_ as i,c as s,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const E=JSON.parse('{"title":"liteyuki.dev.plugin","description":"","frontmatter":{"title":"liteyuki.dev.plugin"},"headers":[],"relativePath":"dev/api/dev/plugin.md","filePath":"zh/dev/api/dev/plugin.md","lastUpdated":null}'),n={name:"dev/api/dev/plugin.md"},e=t("",9),l=[e];function p(h,k,r,d,o,u){return a(),s("div",null,l)}const c=i(n,[["render",p]]);export{E as __pageData,c as default}; diff --git a/assets/dev_api_log.md.CJtELCL9.js b/assets/dev_api_log.md.B0RBm2Ui.js similarity index 82% rename from assets/dev_api_log.md.CJtELCL9.js rename to assets/dev_api_log.md.B0RBm2Ui.js index 233a1838..171fa0e6 100644 --- a/assets/dev_api_log.md.CJtELCL9.js +++ b/assets/dev_api_log.md.B0RBm2Ui.js @@ -1,8 +1,8 @@ -import{_ as s,c as i,o as a,a9 as h}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"liteyuki.log","description":"","frontmatter":{"title":"liteyuki.log"},"headers":[],"relativePath":"dev/api/log.md","filePath":"zh/dev/api/log.md","lastUpdated":null}'),t={name:"dev/api/log.md"},k=h(`

模块 liteyuki.log

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/27 上午9:12 @Author : snowykami @Email : snowykami@outlook.com @File : log.py @Software: PyCharm

func get_format(level: str) -> str

源代码在GitHub上查看
python
def get_format(level: str) -> str:
+import{_ as s,c as i,o as a,a9 as h}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"liteyuki.log","description":"","frontmatter":{"title":"liteyuki.log"},"headers":[],"relativePath":"dev/api/log.md","filePath":"zh/dev/api/log.md","lastUpdated":null}'),t={name:"dev/api/log.md"},k=h(`

模块 liteyuki.log

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/27 上午9:12 @Author : snowykami @Email : snowykami@outlook.com @File : log.py @Software: PyCharm


func get_format(level: str) -> str

源代码在GitHub上查看
python
def get_format(level: str) -> str:
     if level == 'DEBUG':
         return debug_format
     else:
-        return default_format

func init_log(config: dict)

说明: 在语言加载完成后执行

源代码在GitHub上查看
python
def init_log(config: dict):
+        return default_format

func init_log(config: dict)

说明: 在语言加载完成后执行

源代码在GitHub上查看
python
def init_log(config: dict):
     logger.remove()
     logger.add(sys.stdout, level=0, diagnose=False, format=get_format(config.get('log_level', 'INFO')))
     show_icon = config.get('log_icon', True)
@@ -10,4 +10,4 @@ import{_ as s,c as i,o as a,a9 as h}from"./chunks/framework.C4_mTacX.js";const y
     logger.level('INFO', color='<normal>', icon=f"{('ℹ️' if show_icon else '')}INFO")
     logger.level('SUCCESS', color='<green>', icon=f"{('✅' if show_icon else '')}SUCCESS")
     logger.level('WARNING', color='<yellow>', icon=f"{('⚠️' if show_icon else '')}WARNING")
-    logger.level('ERROR', color='<red>', icon=f"{('⭕' if show_icon else '')}ERROR")
`,8),l=[k];function n(p,e,E,r,g,d){return a(),i("div",null,l)}const o=s(t,[["render",n]]);export{y as __pageData,o as default}; + logger.level('ERROR', color='<red>', icon=f"{('⭕' if show_icon else '')}ERROR")
`,10),l=[k];function n(p,e,E,r,g,d){return a(),i("div",null,l)}const o=s(t,[["render",n]]);export{y as __pageData,o as default}; diff --git a/assets/dev_api_log.md.CJtELCL9.lean.js b/assets/dev_api_log.md.B0RBm2Ui.lean.js similarity index 59% rename from assets/dev_api_log.md.CJtELCL9.lean.js rename to assets/dev_api_log.md.B0RBm2Ui.lean.js index 1bedbfc3..e19c634d 100644 --- a/assets/dev_api_log.md.CJtELCL9.lean.js +++ b/assets/dev_api_log.md.B0RBm2Ui.lean.js @@ -1 +1 @@ -import{_ as s,c as i,o as a,a9 as h}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"liteyuki.log","description":"","frontmatter":{"title":"liteyuki.log"},"headers":[],"relativePath":"dev/api/log.md","filePath":"zh/dev/api/log.md","lastUpdated":null}'),t={name:"dev/api/log.md"},k=h("",8),l=[k];function n(p,e,E,r,g,d){return a(),i("div",null,l)}const o=s(t,[["render",n]]);export{y as __pageData,o as default}; +import{_ as s,c as i,o as a,a9 as h}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"liteyuki.log","description":"","frontmatter":{"title":"liteyuki.log"},"headers":[],"relativePath":"dev/api/log.md","filePath":"zh/dev/api/log.md","lastUpdated":null}'),t={name:"dev/api/log.md"},k=h("",10),l=[k];function n(p,e,E,r,g,d){return a(),i("div",null,l)}const o=s(t,[["render",n]]);export{y as __pageData,o as default}; diff --git a/assets/dev_api_message_event.md.z4kIykti.js b/assets/dev_api_message_event.md.DyDwsc6d.js similarity index 59% rename from assets/dev_api_message_event.md.z4kIykti.js rename to assets/dev_api_message_event.md.DyDwsc6d.js index bd335c17..dc8d6705 100644 --- a/assets/dev_api_message_event.md.z4kIykti.js +++ b/assets/dev_api_message_event.md.DyDwsc6d.js @@ -1,4 +1,4 @@ -import{_ as s,c as i,o as a,a9 as e}from"./chunks/framework.C4_mTacX.js";const o=JSON.parse('{"title":"liteyuki.message.event","description":"","frontmatter":{"title":"liteyuki.message.event"},"headers":[],"relativePath":"dev/api/message/event.md","filePath":"zh/dev/api/message/event.md","lastUpdated":null}'),t={name:"dev/api/message/event.md"},n=e(`

模块 liteyuki.message.event

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:47 @Author : snowykami @Email : snowykami@outlook.com @File : event.py @Software: PyCharm

class MessageEvent

func __init__(self, bot_id: str, message: list[dict[str, Any]] | str, message_type: str, raw_message: str, session_id: str, user_id: str, session_type: str, receive_channel: Optional[Channel[MessageEvent]] = None, data: Optional[dict[str, Any]] = None)

说明: 轻雪抽象消息事件

源代码在GitHub上查看
python
def __init__(self, bot_id: str, message: list[dict[str, Any]] | str, message_type: str, raw_message: str, session_id: str, user_id: str, session_type: str, receive_channel: Optional[Channel['MessageEvent']]=None, data: Optional[dict[str, Any]]=None):
+import{_ as s,c as i,o as a,a9 as e}from"./chunks/framework.C4_mTacX.js";const o=JSON.parse('{"title":"liteyuki.message.event","description":"","frontmatter":{"title":"liteyuki.message.event"},"headers":[],"relativePath":"dev/api/message/event.md","filePath":"zh/dev/api/message/event.md","lastUpdated":null}'),t={name:"dev/api/message/event.md"},n=e(`

模块 liteyuki.message.event

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:47 @Author : snowykami @Email : snowykami@outlook.com @File : event.py @Software: PyCharm

class MessageEvent


func __init__(self, bot_id: str, message: list[dict[str, Any]] | str, message_type: str, raw_message: str, session_id: str, user_id: str, session_type: str, receive_channel: Optional[Channel[MessageEvent]] = None, data: Optional[dict[str, Any]] = None)

说明: 轻雪抽象消息事件

源代码在GitHub上查看
python
def __init__(self, bot_id: str, message: list[dict[str, Any]] | str, message_type: str, raw_message: str, session_id: str, user_id: str, session_type: str, receive_channel: Optional[Channel['MessageEvent']]=None, data: Optional[dict[str, Any]]=None):
     if data is None:
         data = {}
     self.message_type = message_type
@@ -9,7 +9,7 @@ import{_ as s,c as i,o as a,a9 as e}from"./chunks/framework.C4_mTacX.js";const o
     self.session_id = session_id
     self.session_type = session_type
     self.user_id = user_id
-    self.receive_channel = receive_channel

func reply(self, message: str | dict[str, Any])

说明: 回复消息

参数:

  • message:
源代码在GitHub上查看
python
def reply(self, message: str | dict[str, Any]):
+    self.receive_channel = receive_channel

func reply(self, message: str | dict[str, Any])

说明: 回复消息

参数:

  • message:
源代码在GitHub上查看
python
def reply(self, message: str | dict[str, Any]):
     reply_event = MessageEvent(message_type=self.session_type, message=message, raw_message='', data={'message': message}, bot_id=self.bot_id, session_id=self.session_id, user_id=self.user_id, session_type=self.session_type, receive_channel=None)
     if self.receive_channel:
-        self.receive_channel.send(reply_event)
`,12),h=[n];function l(k,p,r,d,E,g){return a(),i("div",null,h)}const F=s(t,[["render",l]]);export{o as __pageData,F as default}; + self.receive_channel.send(reply_event)
`,14),h=[n];function l(k,p,r,d,E,g){return a(),i("div",null,h)}const F=s(t,[["render",l]]);export{o as __pageData,F as default}; diff --git a/assets/dev_api_message_event.md.z4kIykti.lean.js b/assets/dev_api_message_event.md.DyDwsc6d.lean.js similarity index 86% rename from assets/dev_api_message_event.md.z4kIykti.lean.js rename to assets/dev_api_message_event.md.DyDwsc6d.lean.js index 553fe0b4..275e8403 100644 --- a/assets/dev_api_message_event.md.z4kIykti.lean.js +++ b/assets/dev_api_message_event.md.DyDwsc6d.lean.js @@ -1 +1 @@ -import{_ as s,c as i,o as a,a9 as e}from"./chunks/framework.C4_mTacX.js";const o=JSON.parse('{"title":"liteyuki.message.event","description":"","frontmatter":{"title":"liteyuki.message.event"},"headers":[],"relativePath":"dev/api/message/event.md","filePath":"zh/dev/api/message/event.md","lastUpdated":null}'),t={name:"dev/api/message/event.md"},n=e("",12),h=[n];function l(k,p,r,d,E,g){return a(),i("div",null,h)}const F=s(t,[["render",l]]);export{o as __pageData,F as default}; +import{_ as s,c as i,o as a,a9 as e}from"./chunks/framework.C4_mTacX.js";const o=JSON.parse('{"title":"liteyuki.message.event","description":"","frontmatter":{"title":"liteyuki.message.event"},"headers":[],"relativePath":"dev/api/message/event.md","filePath":"zh/dev/api/message/event.md","lastUpdated":null}'),t={name:"dev/api/message/event.md"},n=e("",14),h=[n];function l(k,p,r,d,E,g){return a(),i("div",null,h)}const F=s(t,[["render",l]]);export{o as __pageData,F as default}; diff --git a/assets/dev_api_message_matcher.md.Dl6noJmI.js b/assets/dev_api_message_matcher.md.DVuQfqJD.js similarity index 53% rename from assets/dev_api_message_matcher.md.Dl6noJmI.js rename to assets/dev_api_message_matcher.md.DVuQfqJD.js index 3b4a68df..64296183 100644 --- a/assets/dev_api_message_matcher.md.Dl6noJmI.js +++ b/assets/dev_api_message_matcher.md.DVuQfqJD.js @@ -1,17 +1,17 @@ -import{_ as s,c as i,o as a,a9 as e}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"liteyuki.message.matcher","description":"","frontmatter":{"title":"liteyuki.message.matcher"},"headers":[],"relativePath":"dev/api/message/matcher.md","filePath":"zh/dev/api/message/matcher.md","lastUpdated":null}'),t={name:"dev/api/message/matcher.md"},n=e(`

模块 liteyuki.message.matcher

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:51 @Author : snowykami @Email : snowykami@outlook.com @File : matcher.py @Software: PyCharm

class Matcher

func __init__(self, rule: Rule, priority: int, block: bool)

说明: 匹配器

参数:

  • rule: 规则
  • priority: 优先级 >= 0
  • block: 是否阻断后续优先级更低的匹配器
源代码在GitHub上查看
python
def __init__(self, rule: Rule, priority: int, block: bool):
+import{_ as s,c as i,o as a,a9 as e}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"liteyuki.message.matcher","description":"","frontmatter":{"title":"liteyuki.message.matcher"},"headers":[],"relativePath":"dev/api/message/matcher.md","filePath":"zh/dev/api/message/matcher.md","lastUpdated":null}'),t={name:"dev/api/message/matcher.md"},n=e(`

模块 liteyuki.message.matcher

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:51 @Author : snowykami @Email : snowykami@outlook.com @File : matcher.py @Software: PyCharm

class Matcher


func __init__(self, rule: Rule, priority: int, block: bool)

说明: 匹配器

参数:

  • rule: 规则
  • priority: 优先级 >= 0
  • block: 是否阻断后续优先级更低的匹配器
源代码在GitHub上查看
python
def __init__(self, rule: Rule, priority: int, block: bool):
     self.rule = rule
     self.priority = priority
     self.block = block
-    self.handlers: list[EventHandler] = []

func handle(self) -> Callable[[EventHandler], EventHandler]

说明: 添加处理函数,装饰器

返回: 装饰器 handler

源代码在GitHub上查看
python
def handle(self) -> Callable[[EventHandler], EventHandler]:
+    self.handlers: list[EventHandler] = []

func handle(self) -> Callable[[EventHandler], EventHandler]

说明: 添加处理函数,装饰器

返回: 装饰器 handler

源代码在GitHub上查看
python
def handle(self) -> Callable[[EventHandler], EventHandler]:
 
     def decorator(handler: EventHandler) -> EventHandler:
         self.handlers.append(handler)
         return handler
-    return decorator

async func run(self, event: MessageEvent) -> None

说明: 运行处理函数

参数:

  • event:
源代码在GitHub上查看
python
async def run(self, event: MessageEvent) -> None:
+    return decorator

async func run(self, event: MessageEvent) -> None

说明: 运行处理函数

参数:

  • event:
源代码在GitHub上查看
python
async def run(self, event: MessageEvent) -> None:
     if not await self.rule(event):
         return
     for handler in self.handlers:
         try:
             await handler(event)
         except Exception:
-            traceback.print_exc()
`,18),l=[n];function h(r,p,k,o,d,c){return a(),i("div",null,l)}const E=s(t,[["render",h]]);export{y as __pageData,E as default}; + traceback.print_exc()
`,21),l=[n];function h(r,p,k,o,d,c){return a(),i("div",null,l)}const E=s(t,[["render",h]]);export{y as __pageData,E as default}; diff --git a/assets/dev_api_message_matcher.md.Dl6noJmI.lean.js b/assets/dev_api_message_matcher.md.DVuQfqJD.lean.js similarity index 86% rename from assets/dev_api_message_matcher.md.Dl6noJmI.lean.js rename to assets/dev_api_message_matcher.md.DVuQfqJD.lean.js index 71363c80..baa11698 100644 --- a/assets/dev_api_message_matcher.md.Dl6noJmI.lean.js +++ b/assets/dev_api_message_matcher.md.DVuQfqJD.lean.js @@ -1 +1 @@ -import{_ as s,c as i,o as a,a9 as e}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"liteyuki.message.matcher","description":"","frontmatter":{"title":"liteyuki.message.matcher"},"headers":[],"relativePath":"dev/api/message/matcher.md","filePath":"zh/dev/api/message/matcher.md","lastUpdated":null}'),t={name:"dev/api/message/matcher.md"},n=e("",18),l=[n];function h(r,p,k,o,d,c){return a(),i("div",null,l)}const E=s(t,[["render",h]]);export{y as __pageData,E as default}; +import{_ as s,c as i,o as a,a9 as e}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"liteyuki.message.matcher","description":"","frontmatter":{"title":"liteyuki.message.matcher"},"headers":[],"relativePath":"dev/api/message/matcher.md","filePath":"zh/dev/api/message/matcher.md","lastUpdated":null}'),t={name:"dev/api/message/matcher.md"},n=e("",21),l=[n];function h(r,p,k,o,d,c){return a(),i("div",null,l)}const E=s(t,[["render",h]]);export{y as __pageData,E as default}; diff --git a/assets/dev_api_message_on.md.C1h6vNQo.js b/assets/dev_api_message_on.md.CApMkdr1.js similarity index 58% rename from assets/dev_api_message_on.md.C1h6vNQo.js rename to assets/dev_api_message_on.md.CApMkdr1.js index 758d6ef9..f7245253 100644 --- a/assets/dev_api_message_on.md.C1h6vNQo.js +++ b/assets/dev_api_message_on.md.CApMkdr1.js @@ -1,15 +1,15 @@ -import{_ as s,c as i,o as a,a9 as e}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.message.on","description":"","frontmatter":{"title":"liteyuki.message.on"},"headers":[],"relativePath":"dev/api/message/on.md","filePath":"zh/dev/api/message/on.md","lastUpdated":null}'),t={name:"dev/api/message/on.md"},n=e(`

模块 liteyuki.message.on

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:52 @Author : snowykami @Email : snowykami@outlook.com @File : on.py @Software: PyCharm

func add_matcher(matcher: Matcher)

源代码在GitHub上查看
python
def add_matcher(matcher: Matcher):
+import{_ as s,c as i,o as a,a9 as e}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.message.on","description":"","frontmatter":{"title":"liteyuki.message.on"},"headers":[],"relativePath":"dev/api/message/on.md","filePath":"zh/dev/api/message/on.md","lastUpdated":null}'),t={name:"dev/api/message/on.md"},n=e(`

模块 liteyuki.message.on

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:52 @Author : snowykami @Email : snowykami@outlook.com @File : on.py @Software: PyCharm


func add_matcher(matcher: Matcher)

源代码在GitHub上查看
python
def add_matcher(matcher: Matcher):
     for i, m in enumerate(_matcher_list):
         if m.priority < matcher.priority:
             _matcher_list.insert(i, matcher)
             break
     else:
-        _matcher_list.append(matcher)

func on_message(rule: Rule = empty_rule, priority: int = 0, block: bool = False) -> Matcher

源代码在GitHub上查看
python
def on_message(rule: Rule=empty_rule, priority: int=0, block: bool=False) -> Matcher:
+        _matcher_list.append(matcher)

func on_message(rule: Rule = empty_rule, priority: int = 0, block: bool = False) -> Matcher

源代码在GitHub上查看
python
def on_message(rule: Rule=empty_rule, priority: int=0, block: bool=False) -> Matcher:
     matcher = Matcher(rule, priority, block)
     add_matcher(matcher)
-    return matcher

func on_keywords(keywords: list[str], rule = empty_rule, priority: int = 0, block: bool = False) -> Matcher

源代码在GitHub上查看
python
def on_keywords(keywords: list[str], rule=empty_rule, priority: int=0, block: bool=False) -> Matcher:
+    return matcher

func on_keywords(keywords: list[str], rule = empty_rule, priority: int = 0, block: bool = False) -> Matcher

源代码在GitHub上查看
python
def on_keywords(keywords: list[str], rule=empty_rule, priority: int=0, block: bool=False) -> Matcher:
 
     @Rule
     async def on_keywords_rule(event: MessageEvent):
         return any((keyword in event.raw_message for keyword in keywords))
-    return on_message(on_keywords_rule & rule, priority, block)
`,9),l=[n];function h(k,r,p,o,d,y){return a(),i("div",null,l)}const E=s(t,[["render",h]]);export{g as __pageData,E as default}; + return on_message(on_keywords_rule & rule, priority, block)
`,12),l=[n];function h(r,k,p,o,d,y){return a(),i("div",null,l)}const E=s(t,[["render",h]]);export{g as __pageData,E as default}; diff --git a/assets/dev_api_message_on.md.C1h6vNQo.lean.js b/assets/dev_api_message_on.md.CApMkdr1.lean.js similarity index 68% rename from assets/dev_api_message_on.md.C1h6vNQo.lean.js rename to assets/dev_api_message_on.md.CApMkdr1.lean.js index ea05b2f2..7b29bb79 100644 --- a/assets/dev_api_message_on.md.C1h6vNQo.lean.js +++ b/assets/dev_api_message_on.md.CApMkdr1.lean.js @@ -1 +1 @@ -import{_ as s,c as i,o as a,a9 as e}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.message.on","description":"","frontmatter":{"title":"liteyuki.message.on"},"headers":[],"relativePath":"dev/api/message/on.md","filePath":"zh/dev/api/message/on.md","lastUpdated":null}'),t={name:"dev/api/message/on.md"},n=e("",9),l=[n];function h(k,r,p,o,d,y){return a(),i("div",null,l)}const E=s(t,[["render",h]]);export{g as __pageData,E as default}; +import{_ as s,c as i,o as a,a9 as e}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.message.on","description":"","frontmatter":{"title":"liteyuki.message.on"},"headers":[],"relativePath":"dev/api/message/on.md","filePath":"zh/dev/api/message/on.md","lastUpdated":null}'),t={name:"dev/api/message/on.md"},n=e("",12),l=[n];function h(r,k,p,o,d,y){return a(),i("div",null,l)}const E=s(t,[["render",h]]);export{g as __pageData,E as default}; diff --git a/assets/dev_api_message_rule.md.D55CYU4N.js b/assets/dev_api_message_rule.md.D55CYU4N.js deleted file mode 100644 index 5619a2ab..00000000 --- a/assets/dev_api_message_rule.md.D55CYU4N.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as i,o as a,a9 as e}from"./chunks/framework.C4_mTacX.js";const c=JSON.parse('{"title":"liteyuki.message.rule","description":"","frontmatter":{"title":"liteyuki.message.rule"},"headers":[],"relativePath":"dev/api/message/rule.md","filePath":"zh/dev/api/message/rule.md","lastUpdated":null}'),t={name:"dev/api/message/rule.md"},n=e('

模块 liteyuki.message.rule

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:55 @Author : snowykami @Email : snowykami@outlook.com @File : rule.py @Software: PyCharm

var RuleHandlerFunc

  • 说明: 规则函数签名

  • 类型: TypeAlias

  • 默认值: Callable[[MessageEvent], Coroutine[None, None, bool]]

class Rule

func __init__(self, handler: RuleHandlerFunc)

源代码在GitHub上查看
python
def __init__(self, handler: RuleHandlerFunc):\n    self.handler = handler

func self | other: Rule => Rule

源代码在GitHub上查看
python
def __or__(self, other: 'Rule') -> 'Rule':\n\n    async def combined_handler(event: MessageEvent) -> bool:\n        return await self.handler(event) or await other.handler(event)\n    return Rule(combined_handler)

func self & other: Rule => Rule

源代码在GitHub上查看
python
def __and__(self, other: 'Rule') -> 'Rule':\n\n    async def combined_handler(event: MessageEvent) -> bool:\n        return await self.handler(event) and await other.handler(event)\n    return Rule(combined_handler)

async func self () event: MessageEvent => bool

源代码在GitHub上查看
python
async def __call__(self, event: MessageEvent) -> bool:\n    if self.handler is None:\n        return True\n    return await self.handler(event)

@Rule

async func empty_rule(event: MessageEvent) -> bool

源代码在GitHub上查看
python
@Rule\nasync def empty_rule(event: MessageEvent) -> bool:\n    return True

@Rule

async func is_su_rule(event: MessageEvent) -> bool

源代码在GitHub上查看
python
@Rule\nasync def is_su_rule(event: MessageEvent) -> bool:\n    return str(event.user_id) in _superusers
',20),l=[n];function h(r,p,k,d,o,u){return a(),i("div",null,l)}const y=s(t,[["render",h]]);export{c as __pageData,y as default}; diff --git a/assets/dev_api_message_rule.md.DtsqYM0_.js b/assets/dev_api_message_rule.md.DtsqYM0_.js new file mode 100644 index 00000000..599071d8 --- /dev/null +++ b/assets/dev_api_message_rule.md.DtsqYM0_.js @@ -0,0 +1 @@ +import{_ as s,c as i,o as a,a9 as e}from"./chunks/framework.C4_mTacX.js";const c=JSON.parse('{"title":"liteyuki.message.rule","description":"","frontmatter":{"title":"liteyuki.message.rule"},"headers":[],"relativePath":"dev/api/message/rule.md","filePath":"zh/dev/api/message/rule.md","lastUpdated":null}'),t={name:"dev/api/message/rule.md"},n=e('

模块 liteyuki.message.rule

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:55 @Author : snowykami @Email : snowykami@outlook.com @File : rule.py @Software: PyCharm

var RuleHandlerFunc

  • 说明: 规则函数签名

  • 类型: TypeAlias

  • 默认值: Callable[[MessageEvent], Coroutine[None, None, bool]]

class Rule


func __init__(self, handler: RuleHandlerFunc)

源代码在GitHub上查看
python
def __init__(self, handler: RuleHandlerFunc):\n    self.handler = handler

func self | other: Rule => Rule

源代码在GitHub上查看
python
def __or__(self, other: 'Rule') -> 'Rule':\n\n    async def combined_handler(event: MessageEvent) -> bool:\n        return await self.handler(event) or await other.handler(event)\n    return Rule(combined_handler)

func self & other: Rule => Rule

源代码在GitHub上查看
python
def __and__(self, other: 'Rule') -> 'Rule':\n\n    async def combined_handler(event: MessageEvent) -> bool:\n        return await self.handler(event) and await other.handler(event)\n    return Rule(combined_handler)

async func self () event: MessageEvent => bool

源代码在GitHub上查看
python
async def __call__(self, event: MessageEvent) -> bool:\n    if self.handler is None:\n        return True\n    return await self.handler(event)

@Rule

async func empty_rule(event: MessageEvent) -> bool

源代码在GitHub上查看
python
@Rule\nasync def empty_rule(event: MessageEvent) -> bool:\n    return True

@Rule

async func is_su_rule(event: MessageEvent) -> bool

源代码在GitHub上查看
python
@Rule\nasync def is_su_rule(event: MessageEvent) -> bool:\n    return str(event.user_id) in _superusers
',26),l=[n];function h(r,p,k,d,o,u){return a(),i("div",null,l)}const y=s(t,[["render",h]]);export{c as __pageData,y as default}; diff --git a/assets/dev_api_message_rule.md.D55CYU4N.lean.js b/assets/dev_api_message_rule.md.DtsqYM0_.lean.js similarity index 86% rename from assets/dev_api_message_rule.md.D55CYU4N.lean.js rename to assets/dev_api_message_rule.md.DtsqYM0_.lean.js index e9ee76a0..ba500885 100644 --- a/assets/dev_api_message_rule.md.D55CYU4N.lean.js +++ b/assets/dev_api_message_rule.md.DtsqYM0_.lean.js @@ -1 +1 @@ -import{_ as s,c as i,o as a,a9 as e}from"./chunks/framework.C4_mTacX.js";const c=JSON.parse('{"title":"liteyuki.message.rule","description":"","frontmatter":{"title":"liteyuki.message.rule"},"headers":[],"relativePath":"dev/api/message/rule.md","filePath":"zh/dev/api/message/rule.md","lastUpdated":null}'),t={name:"dev/api/message/rule.md"},n=e("",20),l=[n];function h(r,p,k,d,o,u){return a(),i("div",null,l)}const y=s(t,[["render",h]]);export{c as __pageData,y as default}; +import{_ as s,c as i,o as a,a9 as e}from"./chunks/framework.C4_mTacX.js";const c=JSON.parse('{"title":"liteyuki.message.rule","description":"","frontmatter":{"title":"liteyuki.message.rule"},"headers":[],"relativePath":"dev/api/message/rule.md","filePath":"zh/dev/api/message/rule.md","lastUpdated":null}'),t={name:"dev/api/message/rule.md"},n=e("",26),l=[n];function h(r,p,k,d,o,u){return a(),i("div",null,l)}const y=s(t,[["render",h]]);export{c as __pageData,y as default}; diff --git a/assets/dev_api_mkdoc.md.KHhZ0jbQ.js b/assets/dev_api_mkdoc.md.BQNdAtbl.js similarity index 89% rename from assets/dev_api_mkdoc.md.KHhZ0jbQ.js rename to assets/dev_api_mkdoc.md.BQNdAtbl.js index c2e3b67d..df3b4393 100644 --- a/assets/dev_api_mkdoc.md.KHhZ0jbQ.js +++ b/assets/dev_api_mkdoc.md.BQNdAtbl.js @@ -1,16 +1,16 @@ -import{_ as s,c as i,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"liteyuki.mkdoc","description":"","frontmatter":{"title":"liteyuki.mkdoc"},"headers":[],"relativePath":"dev/api/mkdoc.md","filePath":"zh/dev/api/mkdoc.md","lastUpdated":null}'),n={name:"dev/api/mkdoc.md"},h=t(`

模块 liteyuki.mkdoc

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 上午6:23 @Author : snowykami @Email : snowykami@outlook.com @File : mkdoc.py @Software: PyCharm

class DefType(Enum)

attr FUNCTION = 'function'

attr METHOD = 'method'

attr STATIC_METHOD = 'staticmethod'

attr CLASS_METHOD = 'classmethod'

attr PROPERTY = 'property'

class FunctionInfo(BaseModel)

attr name: str = NO_DEFAULT

attr args: list[tuple[str, str]] = NO_DEFAULT

attr return_type: str = NO_DEFAULT

attr docstring: str = NO_DEFAULT

attr source_code: str = ''

attr type: DefType = NO_DEFAULT

attr is_async: bool = NO_DEFAULT

class AttributeInfo(BaseModel)

attr name: str = NO_DEFAULT

attr type: str = NO_DEFAULT

attr value: Any = None

attr docstring: str = ''

class ClassInfo(BaseModel)

attr name: str = NO_DEFAULT

attr docstring: str = NO_DEFAULT

attr methods: list[FunctionInfo] = NO_DEFAULT

attr attributes: list[AttributeInfo] = NO_DEFAULT

attr inherit: list[str] = NO_DEFAULT

class ModuleInfo(BaseModel)

attr module_path: str = NO_DEFAULT

attr functions: list[FunctionInfo] = NO_DEFAULT

attr classes: list[ClassInfo] = NO_DEFAULT

attr attributes: list[AttributeInfo] = NO_DEFAULT

attr docstring: str = NO_DEFAULT

func get_relative_path(base_path: str, target_path: str) -> str

说明: 获取相对路径

参数:

  • base_path: 基础路径
  • target_path: 目标路径
源代码在GitHub上查看
python
def get_relative_path(base_path: str, target_path: str) -> str:
-    return os.path.relpath(target_path, base_path)

func write_to_files(file_data: dict[str, str])

说明: 输出文件

参数:

  • file_data: 文件数据 相对路径
源代码在GitHub上查看
python
def write_to_files(file_data: dict[str, str]):
+import{_ as s,c as i,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"liteyuki.mkdoc","description":"","frontmatter":{"title":"liteyuki.mkdoc"},"headers":[],"relativePath":"dev/api/mkdoc.md","filePath":"zh/dev/api/mkdoc.md","lastUpdated":null}'),n={name:"dev/api/mkdoc.md"},h=t(`

模块 liteyuki.mkdoc

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 上午6:23 @Author : snowykami @Email : snowykami@outlook.com @File : mkdoc.py @Software: PyCharm

class DefType(Enum)

attr FUNCTION = 'function'

attr METHOD = 'method'

attr STATIC_METHOD = 'staticmethod'

attr CLASS_METHOD = 'classmethod'

attr PROPERTY = 'property'

class FunctionInfo(BaseModel)

attr name: str = NO_DEFAULT

attr args: list[tuple[str, str]] = NO_DEFAULT

attr return_type: str = NO_DEFAULT

attr docstring: str = NO_DEFAULT

attr source_code: str = ''

attr type: DefType = NO_DEFAULT

attr is_async: bool = NO_DEFAULT

class AttributeInfo(BaseModel)

attr name: str = NO_DEFAULT

attr type: str = NO_DEFAULT

attr value: Any = None

attr docstring: str = ''

class ClassInfo(BaseModel)

attr name: str = NO_DEFAULT

attr docstring: str = NO_DEFAULT

attr methods: list[FunctionInfo] = NO_DEFAULT

attr attributes: list[AttributeInfo] = NO_DEFAULT

attr inherit: list[str] = NO_DEFAULT

class ModuleInfo(BaseModel)

attr module_path: str = NO_DEFAULT

attr functions: list[FunctionInfo] = NO_DEFAULT

attr classes: list[ClassInfo] = NO_DEFAULT

attr attributes: list[AttributeInfo] = NO_DEFAULT

attr docstring: str = NO_DEFAULT


func get_relative_path(base_path: str, target_path: str) -> str

说明: 获取相对路径

参数:

  • base_path: 基础路径
  • target_path: 目标路径
源代码在GitHub上查看
python
def get_relative_path(base_path: str, target_path: str) -> str:
+    return os.path.relpath(target_path, base_path)

func write_to_files(file_data: dict[str, str])

说明: 输出文件

参数:

  • file_data: 文件数据 相对路径
源代码在GitHub上查看
python
def write_to_files(file_data: dict[str, str]):
     for rp, data in file_data.items():
         if not os.path.exists(os.path.dirname(rp)):
             os.makedirs(os.path.dirname(rp))
         with open(rp, 'w', encoding='utf-8') as f:
-            f.write(data)

func get_file_list(module_folder: str)

源代码在GitHub上查看
python
def get_file_list(module_folder: str):
+            f.write(data)

func get_file_list(module_folder: str)

源代码在GitHub上查看
python
def get_file_list(module_folder: str):
     file_list = []
     for root, dirs, files in os.walk(module_folder):
         for file in files:
             if file.endswith(('.py', '.pyi')):
                 file_list.append(os.path.join(root, file))
-    return file_list

func get_module_info_normal(file_path: str, ignore_private: bool = True) -> ModuleInfo

说明: 获取函数和类

参数:

  • file_path: Python 文件路径
  • ignore_private: 忽略私有函数和类

返回: 模块信息

源代码在GitHub上查看
python
def get_module_info_normal(file_path: str, ignore_private: bool=True) -> ModuleInfo:
+    return file_list

func get_module_info_normal(file_path: str, ignore_private: bool = True) -> ModuleInfo

说明: 获取函数和类

参数:

  • file_path: Python 文件路径
  • ignore_private: 忽略私有函数和类

返回: 模块信息

源代码在GitHub上查看
python
def get_module_info_normal(file_path: str, ignore_private: bool=True) -> ModuleInfo:
     with open(file_path, 'r', encoding='utf-8') as file:
         file_content = file.read()
         tree = ast.parse(file_content)
@@ -55,7 +55,7 @@ import{_ as s,c as i,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const y
                         if isinstance(node.value, ast.AnnAssign) and node.value.annotation:
                             attr_type = ast.unparse(node.value.annotation)
                         module_info.attributes.append(AttributeInfo(name=target.id, type=attr_type, value=ast.unparse(node.value) if node.value else None))
-    return module_info

func generate_markdown(module_info: ModuleInfo, front_matter = None, lang: str = 'zh-CN') -> str

说明: 生成模块的Markdown 你可在此自定义生成的Markdown格式

参数:

  • module_info: 模块信息
  • front_matter: 自定义选项title, index, icon, category
  • lang: 语言

返回: Markdown 字符串

源代码在GitHub上查看
python
def generate_markdown(module_info: ModuleInfo, front_matter=None, lang: str='zh-CN') -> str:
+    return module_info

func generate_markdown(module_info: ModuleInfo, front_matter = None, lang: str = 'zh-CN') -> str

说明: 生成模块的Markdown 你可在此自定义生成的Markdown格式

参数:

  • module_info: 模块信息
  • front_matter: 自定义选项title, index, icon, category
  • lang: 语言

返回: Markdown 字符串

源代码在GitHub上查看
python
def generate_markdown(module_info: ModuleInfo, front_matter=None, lang: str='zh-CN') -> str:
     content = ''
     front_matter = '---\\n' + '\\n'.join([f'{k}: {v}' for k, v in front_matter.items()]) + '\\n---\\n\\n'
     content += front_matter
@@ -96,7 +96,7 @@ import{_ as s,c as i,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const y
             content += f'### ***var*** \`{attr.name}: {attr.type} = {attr.value}\`\\n\\n'
         attr.docstring = attr.docstring.replace('\\n', '\\n\\n')
         content += f'{attr.docstring}\\n\\n'
-    return content

func generate_docs(module_folder: str, output_dir: str, with_top: bool = False, lang: str = 'zh-CN', ignored_paths = None)

说明: 生成文档

参数:

  • module_folder: 模块文件夹
  • output_dir: 输出文件夹
  • with_top: 是否包含顶层文件夹 False时例如docs/api/module_a, docs/api/module_b, True时例如docs/api/module/module_a.md, docs/api/module/module_b.md
  • ignored_paths: 忽略的路径
  • lang: 语言
源代码在GitHub上查看
python
def generate_docs(module_folder: str, output_dir: str, with_top: bool=False, lang: str='zh-CN', ignored_paths=None):
+    return content

func generate_docs(module_folder: str, output_dir: str, with_top: bool = False, lang: str = 'zh-CN', ignored_paths = None)

说明: 生成文档

参数:

  • module_folder: 模块文件夹
  • output_dir: 输出文件夹
  • with_top: 是否包含顶层文件夹 False时例如docs/api/module_a, docs/api/module_b, True时例如docs/api/module/module_a.md, docs/api/module/module_b.md
  • ignored_paths: 忽略的路径
  • lang: 语言
源代码在GitHub上查看
python
def generate_docs(module_folder: str, output_dir: str, with_top: bool=False, lang: str='zh-CN', ignored_paths=None):
     if ignored_paths is None:
         ignored_paths = []
     file_data: dict[str, str] = {}
@@ -120,4 +120,4 @@ import{_ as s,c as i,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const y
         md_content = generate_markdown(module_info, front_matter)
         print(f'Generate {pyfile_path} -> {abs_md_path}')
         file_data[abs_md_path] = md_content
-    write_to_files(file_data)

var no_module_name_pyfile_path

  • 说明: 去头路径

  • 默认值: get_relative_path(module_folder, pyfile_path)

`,65),k=[h];function l(p,e,r,E,d,g){return a(),i("div",null,k)}const o=s(n,[["render",l]]);export{y as __pageData,o as default}; + write_to_files(file_data)

var no_module_name_pyfile_path

  • 说明: 去头路径

  • 默认值: get_relative_path(module_folder, pyfile_path)

`,71),k=[h];function l(p,e,r,E,d,g){return a(),i("div",null,k)}const o=s(n,[["render",l]]);export{y as __pageData,o as default}; diff --git a/assets/dev_api_mkdoc.md.KHhZ0jbQ.lean.js b/assets/dev_api_mkdoc.md.BQNdAtbl.lean.js similarity index 85% rename from assets/dev_api_mkdoc.md.KHhZ0jbQ.lean.js rename to assets/dev_api_mkdoc.md.BQNdAtbl.lean.js index 7c8ff2b9..0bee5aee 100644 --- a/assets/dev_api_mkdoc.md.KHhZ0jbQ.lean.js +++ b/assets/dev_api_mkdoc.md.BQNdAtbl.lean.js @@ -1 +1 @@ -import{_ as s,c as i,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"liteyuki.mkdoc","description":"","frontmatter":{"title":"liteyuki.mkdoc"},"headers":[],"relativePath":"dev/api/mkdoc.md","filePath":"zh/dev/api/mkdoc.md","lastUpdated":null}'),n={name:"dev/api/mkdoc.md"},h=t("",65),k=[h];function l(p,e,r,E,d,g){return a(),i("div",null,k)}const o=s(n,[["render",l]]);export{y as __pageData,o as default}; +import{_ as s,c as i,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"liteyuki.mkdoc","description":"","frontmatter":{"title":"liteyuki.mkdoc"},"headers":[],"relativePath":"dev/api/mkdoc.md","filePath":"zh/dev/api/mkdoc.md","lastUpdated":null}'),n={name:"dev/api/mkdoc.md"},h=t("",71),k=[h];function l(p,e,r,E,d,g){return a(),i("div",null,k)}const o=s(n,[["render",l]]);export{y as __pageData,o as default}; diff --git a/assets/dev_api_plugin_index.md.CcmFWY5K.js b/assets/dev_api_plugin_index.md.CcmFWY5K.js deleted file mode 100644 index f8702e10..00000000 --- a/assets/dev_api_plugin_index.md.CcmFWY5K.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as i,c as t,o as e,a9 as s}from"./chunks/framework.C4_mTacX.js";const _=JSON.parse('{"title":"liteyuki.plugin","description":"","frontmatter":{"title":"liteyuki.plugin","collapsed":true},"headers":[],"relativePath":"dev/api/plugin/index.md","filePath":"zh/dev/api/plugin/index.md","lastUpdated":null}'),a={name:"dev/api/plugin/index.md"},n=s('

模块 liteyuki.plugin

func get_loaded_plugins() -> dict[str, Plugin]

说明: 获取已加载的插件

返回: dict[str, Plugin]: 插件字典

源代码在GitHub上查看
python
def get_loaded_plugins() -> dict[str, Plugin]:\n    return _plugins
',5),l=[n];function d(p,o,r,u,g,h){return e(),t("div",null,l)}const k=i(a,[["render",d]]);export{_ as __pageData,k as default}; diff --git a/assets/dev_api_plugin_index.md.DyFjlTCa.js b/assets/dev_api_plugin_index.md.DyFjlTCa.js new file mode 100644 index 00000000..fb6d762e --- /dev/null +++ b/assets/dev_api_plugin_index.md.DyFjlTCa.js @@ -0,0 +1 @@ +import{_ as i,c as t,o as e,a9 as s}from"./chunks/framework.C4_mTacX.js";const _=JSON.parse('{"title":"liteyuki.plugin","description":"","frontmatter":{"title":"liteyuki.plugin","collapsed":true},"headers":[],"relativePath":"dev/api/plugin/index.md","filePath":"zh/dev/api/plugin/index.md","lastUpdated":null}'),a={name:"dev/api/plugin/index.md"},n=s('

模块 liteyuki.plugin


func get_loaded_plugins() -> dict[str, Plugin]

说明: 获取已加载的插件

返回: dict[str, Plugin]: 插件字典

源代码在GitHub上查看
python
def get_loaded_plugins() -> dict[str, Plugin]:\n    return _plugins
',6),l=[n];function d(p,r,o,u,g,h){return e(),t("div",null,l)}const k=i(a,[["render",d]]);export{_ as __pageData,k as default}; diff --git a/assets/dev_api_plugin_index.md.CcmFWY5K.lean.js b/assets/dev_api_plugin_index.md.DyFjlTCa.lean.js similarity index 86% rename from assets/dev_api_plugin_index.md.CcmFWY5K.lean.js rename to assets/dev_api_plugin_index.md.DyFjlTCa.lean.js index 4e99daa4..27033e4a 100644 --- a/assets/dev_api_plugin_index.md.CcmFWY5K.lean.js +++ b/assets/dev_api_plugin_index.md.DyFjlTCa.lean.js @@ -1 +1 @@ -import{_ as i,c as t,o as e,a9 as s}from"./chunks/framework.C4_mTacX.js";const _=JSON.parse('{"title":"liteyuki.plugin","description":"","frontmatter":{"title":"liteyuki.plugin","collapsed":true},"headers":[],"relativePath":"dev/api/plugin/index.md","filePath":"zh/dev/api/plugin/index.md","lastUpdated":null}'),a={name:"dev/api/plugin/index.md"},n=s("",5),l=[n];function d(p,o,r,u,g,h){return e(),t("div",null,l)}const k=i(a,[["render",d]]);export{_ as __pageData,k as default}; +import{_ as i,c as t,o as e,a9 as s}from"./chunks/framework.C4_mTacX.js";const _=JSON.parse('{"title":"liteyuki.plugin","description":"","frontmatter":{"title":"liteyuki.plugin","collapsed":true},"headers":[],"relativePath":"dev/api/plugin/index.md","filePath":"zh/dev/api/plugin/index.md","lastUpdated":null}'),a={name:"dev/api/plugin/index.md"},n=s("",6),l=[n];function d(p,r,o,u,g,h){return e(),t("div",null,l)}const k=i(a,[["render",d]]);export{_ as __pageData,k as default}; diff --git a/assets/dev_api_plugin_load.md.CssacMr6.js b/assets/dev_api_plugin_load.md.CqVkk0P5.js similarity index 85% rename from assets/dev_api_plugin_load.md.CssacMr6.js rename to assets/dev_api_plugin_load.md.CqVkk0P5.js index 59088955..3d5bba3b 100644 --- a/assets/dev_api_plugin_load.md.CssacMr6.js +++ b/assets/dev_api_plugin_load.md.CqVkk0P5.js @@ -1,4 +1,4 @@ -import{_ as h,D as l,c as k,j as i,a as s,I as t,w as p,a9 as a,o as e}from"./chunks/framework.C4_mTacX.js";const B=JSON.parse('{"title":"liteyuki.plugin.load","description":"","frontmatter":{"title":"liteyuki.plugin.load"},"headers":[],"relativePath":"dev/api/plugin/load.md","filePath":"zh/dev/api/plugin/load.md","lastUpdated":null}'),E={name:"dev/api/plugin/load.md"},d=a(`

模块 liteyuki.plugin.load

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/23 下午11:59 @Author : snowykami @Email : snowykami@outlook.com @File : load.py @Software: PyCharm

func load_plugin(module_path: str | Path) -> Optional[Plugin]

说明: 加载单个插件,可以是本地插件或是通过 pip 安装的插件。

参数:

  • module_path: 插件名称 path.to.your.plugin
  • 或插件路径 pathlib.Path(path/to/your/plugin):
源代码在GitHub上查看
python
def load_plugin(module_path: str | Path) -> Optional[Plugin]:
+import{_ as h,D as l,c as k,j as i,a as s,I as t,w as p,a9 as a,o as e}from"./chunks/framework.C4_mTacX.js";const B=JSON.parse('{"title":"liteyuki.plugin.load","description":"","frontmatter":{"title":"liteyuki.plugin.load"},"headers":[],"relativePath":"dev/api/plugin/load.md","filePath":"zh/dev/api/plugin/load.md","lastUpdated":null}'),E={name:"dev/api/plugin/load.md"},d=a(`

模块 liteyuki.plugin.load

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/23 下午11:59 @Author : snowykami @Email : snowykami@outlook.com @File : load.py @Software: PyCharm


func load_plugin(module_path: str | Path) -> Optional[Plugin]

说明: 加载单个插件,可以是本地插件或是通过 pip 安装的插件。

参数:

  • module_path: 插件名称 path.to.your.plugin
  • 或插件路径 pathlib.Path(path/to/your/plugin):
源代码在GitHub上查看
python
def load_plugin(module_path: str | Path) -> Optional[Plugin]:
     module_path = path_to_module_name(Path(module_path)) if isinstance(module_path, Path) else module_path
     try:
         module = import_module(module_path)
@@ -22,7 +22,7 @@ import{_ as h,D as l,c as k,j as i,a as s,I as t,w as p,a9 as a,o as e}from"./ch
     except Exception as e:
         logger.opt(colors=True).success(f'Failed to load liteyuki plugin "<r>{module_path}</r>"')
         traceback.print_exc()
-        return None

func load_plugins(*plugin_dir: str, *, ignore_warning: bool = True) -> set[Plugin]

说明: 导入文件夹下多个插件

参数:

  • plugin_dir: 文件夹路径
  • ignore_warning: 是否忽略警告,通常是目录不存在或目录为空
源代码在GitHub上查看
python
def load_plugins(*plugin_dir: str, ignore_warning: bool=True) -> set[Plugin]:
+        return None

func load_plugins(*plugin_dir: str, *, ignore_warning: bool = True) -> set[Plugin]

说明: 导入文件夹下多个插件

参数:

  • plugin_dir: 文件夹路径
  • ignore_warning: 是否忽略警告,通常是目录不存在或目录为空
源代码在GitHub上查看
python
def load_plugins(*plugin_dir: str, ignore_warning: bool=True) -> set[Plugin]:
     plugins = set()
     for dir_path in plugin_dir:
         if not os.path.exists(dir_path):
@@ -48,7 +48,7 @@ import{_ as h,D as l,c as k,j as i,a as s,I as t,w as p,a9 as a,o as e}from"./ch
                 load_plugin(module_name)
                 if _plugins.get(module_name):
                     plugins.add(_plugins[module_name])
-    return plugins

func format_display_name(display_name: str, plugin_type: PluginType) -> str

说明: 设置插件名称颜色,根据不同类型插件设置颜色

参数:

  • display_name: 插件名称
  • plugin_type: 插件类型
`,17),r=i("strong",null,"返回",-1),g=a(`
源代码在GitHub上查看
python
def format_display_name(display_name: str, plugin_type: PluginType) -> str:
+    return plugins

func format_display_name(display_name: str, plugin_type: PluginType) -> str

说明: 设置插件名称颜色,根据不同类型插件设置颜色

参数:

  • display_name: 插件名称
  • plugin_type: 插件类型
`,20),r=i("strong",null,"返回",-1),g=a(`
源代码在GitHub上查看
python
def format_display_name(display_name: str, plugin_type: PluginType) -> str:
     color = 'y'
     match plugin_type:
         case PluginType.APPLICATION:
diff --git a/assets/dev_api_plugin_load.md.CssacMr6.lean.js b/assets/dev_api_plugin_load.md.CqVkk0P5.lean.js
similarity index 90%
rename from assets/dev_api_plugin_load.md.CssacMr6.lean.js
rename to assets/dev_api_plugin_load.md.CqVkk0P5.lean.js
index 10d1c557..b98d87c2 100644
--- a/assets/dev_api_plugin_load.md.CssacMr6.lean.js
+++ b/assets/dev_api_plugin_load.md.CqVkk0P5.lean.js
@@ -1 +1 @@
-import{_ as h,D as l,c as k,j as i,a as s,I as t,w as p,a9 as a,o as e}from"./chunks/framework.C4_mTacX.js";const B=JSON.parse('{"title":"liteyuki.plugin.load","description":"","frontmatter":{"title":"liteyuki.plugin.load"},"headers":[],"relativePath":"dev/api/plugin/load.md","filePath":"zh/dev/api/plugin/load.md","lastUpdated":null}'),E={name:"dev/api/plugin/load.md"},d=a("",17),r=i("strong",null,"返回",-1),g=a("",1);function y(F,o,u,_,C,c){const n=l("y");return e(),k("div",null,[d,i("p",null,[r,s(": str: 设置后的插件名称 "),t(n,null,{default:p(()=>[s("name")]),_:1})]),g])}const A=h(E,[["render",y]]);export{B as __pageData,A as default};
+import{_ as h,D as l,c as k,j as i,a as s,I as t,w as p,a9 as a,o as e}from"./chunks/framework.C4_mTacX.js";const B=JSON.parse('{"title":"liteyuki.plugin.load","description":"","frontmatter":{"title":"liteyuki.plugin.load"},"headers":[],"relativePath":"dev/api/plugin/load.md","filePath":"zh/dev/api/plugin/load.md","lastUpdated":null}'),E={name:"dev/api/plugin/load.md"},d=a("",20),r=i("strong",null,"返回",-1),g=a("",1);function y(F,o,u,_,C,c){const n=l("y");return e(),k("div",null,[d,i("p",null,[r,s(": str: 设置后的插件名称 "),t(n,null,{default:p(()=>[s("name")]),_:1})]),g])}const A=h(E,[["render",y]]);export{B as __pageData,A as default};
diff --git a/assets/dev_api_plugin_model.md.CSS29TEc.js b/assets/dev_api_plugin_model.md.BmVr2u82.js
similarity index 61%
rename from assets/dev_api_plugin_model.md.CSS29TEc.js
rename to assets/dev_api_plugin_model.md.BmVr2u82.js
index 83598e5d..9bd8d0e0 100644
--- a/assets/dev_api_plugin_model.md.CSS29TEc.js
+++ b/assets/dev_api_plugin_model.md.BmVr2u82.js
@@ -1 +1 @@
-import{_ as a,c as t,o as e,a9 as r}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.plugin.model","description":"","frontmatter":{"title":"liteyuki.plugin.model"},"headers":[],"relativePath":"dev/api/plugin/model.md","filePath":"zh/dev/api/plugin/model.md","lastUpdated":null}'),o={name:"dev/api/plugin/model.md"},s=r('

模块 liteyuki.plugin.model

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/24 上午12:02 @Author : snowykami @Email : snowykami@outlook.com @File : model.py @Software: PyCharm

class PluginType(Enum)

attr APPLICATION = 'application'

attr SERVICE = 'service'

attr MODULE = 'module'

attr UNCLASSIFIED = 'unclassified'

attr TEST = 'test'

class PluginMetadata(BaseModel)

attr name: str = NO_DEFAULT

attr description: str = ''

attr usage: str = ''

attr type: PluginType = PluginType.UNCLASSIFIED

attr author: str = ''

attr homepage: str = ''

attr extra: dict[str, Any] = {}

class Plugin(BaseModel)

func hash self

源代码在GitHub上查看
python
def __hash__(self):\n    return hash(self.module_name)

attr model_config = {'arbitrary_types_allowed': True}

attr name: str = NO_DEFAULT

attr module: ModuleType = NO_DEFAULT

attr module_name: str = NO_DEFAULT

attr metadata: Optional[PluginMetadata] = None

',25),i=[s];function l(n,d,h,c,u,m){return e(),t("div",null,i)}const k=a(o,[["render",l]]);export{g as __pageData,k as default}; +import{_ as a,c as t,o as e,a9 as r}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.plugin.model","description":"","frontmatter":{"title":"liteyuki.plugin.model"},"headers":[],"relativePath":"dev/api/plugin/model.md","filePath":"zh/dev/api/plugin/model.md","lastUpdated":null}'),o={name:"dev/api/plugin/model.md"},s=r('

模块 liteyuki.plugin.model

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/24 上午12:02 @Author : snowykami @Email : snowykami@outlook.com @File : model.py @Software: PyCharm

class PluginType(Enum)

attr APPLICATION = 'application'

attr SERVICE = 'service'

attr MODULE = 'module'

attr UNCLASSIFIED = 'unclassified'

attr TEST = 'test'

class PluginMetadata(BaseModel)

attr name: str = NO_DEFAULT

attr description: str = ''

attr usage: str = ''

attr type: PluginType = PluginType.UNCLASSIFIED

attr author: str = ''

attr homepage: str = ''

attr extra: dict[str, Any] = {}

class Plugin(BaseModel)


func hash self

源代码在GitHub上查看
python
def __hash__(self):\n    return hash(self.module_name)

attr model_config = {'arbitrary_types_allowed': True}

attr name: str = NO_DEFAULT

attr module: ModuleType = NO_DEFAULT

attr module_name: str = NO_DEFAULT

attr metadata: Optional[PluginMetadata] = None

',26),i=[s];function l(n,d,h,c,u,m){return e(),t("div",null,i)}const k=a(o,[["render",l]]);export{g as __pageData,k as default}; diff --git a/assets/dev_api_plugin_model.md.CSS29TEc.lean.js b/assets/dev_api_plugin_model.md.BmVr2u82.lean.js similarity index 86% rename from assets/dev_api_plugin_model.md.CSS29TEc.lean.js rename to assets/dev_api_plugin_model.md.BmVr2u82.lean.js index b37dd805..7e776a66 100644 --- a/assets/dev_api_plugin_model.md.CSS29TEc.lean.js +++ b/assets/dev_api_plugin_model.md.BmVr2u82.lean.js @@ -1 +1 @@ -import{_ as a,c as t,o as e,a9 as r}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.plugin.model","description":"","frontmatter":{"title":"liteyuki.plugin.model"},"headers":[],"relativePath":"dev/api/plugin/model.md","filePath":"zh/dev/api/plugin/model.md","lastUpdated":null}'),o={name:"dev/api/plugin/model.md"},s=r("",25),i=[s];function l(n,d,h,c,u,m){return e(),t("div",null,i)}const k=a(o,[["render",l]]);export{g as __pageData,k as default}; +import{_ as a,c as t,o as e,a9 as r}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.plugin.model","description":"","frontmatter":{"title":"liteyuki.plugin.model"},"headers":[],"relativePath":"dev/api/plugin/model.md","filePath":"zh/dev/api/plugin/model.md","lastUpdated":null}'),o={name:"dev/api/plugin/model.md"},s=r("",26),i=[s];function l(n,d,h,c,u,m){return e(),t("div",null,i)}const k=a(o,[["render",l]]);export{g as __pageData,k as default}; diff --git a/assets/dev_api_plugins_liteecho.md.a-DHFJ66.js b/assets/dev_api_plugins_liteecho.md.a-DHFJ66.js deleted file mode 100644 index e05dcfeb..00000000 --- a/assets/dev_api_plugins_liteecho.md.a-DHFJ66.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e,c as i,o as s,a9 as t}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.plugins.liteecho","description":"","frontmatter":{"title":"liteyuki.plugins.liteecho"},"headers":[],"relativePath":"dev/api/plugins/liteecho.md","filePath":"zh/dev/api/plugins/liteecho.md","lastUpdated":null}'),a={name:"dev/api/plugins/liteecho.md"},l=t('

模块 liteyuki.plugins.liteecho

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/22 下午12:31 @Author : snowykami @Email : snowykami@outlook.com @File : liteecho.py @Software: PyCharm

@on_startswith(['liteecho'], rule=is_su_rule).handle()

async func liteecho(event: MessageEvent)

源代码在GitHub上查看
python
@on_startswith(['liteecho'], rule=is_su_rule).handle()\nasync def liteecho(event: MessageEvent):\n    event.reply(event.raw_message.strip()[8:].strip())
',6),n=[l];function h(o,p,r,c,k,d){return s(),i("div",null,n)}const y=e(a,[["render",h]]);export{g as __pageData,y as default}; diff --git a/assets/dev_api_plugins_liteecho.md.sryx6SuS.js b/assets/dev_api_plugins_liteecho.md.sryx6SuS.js new file mode 100644 index 00000000..88c7970c --- /dev/null +++ b/assets/dev_api_plugins_liteecho.md.sryx6SuS.js @@ -0,0 +1 @@ +import{_ as e,c as i,o as s,a9 as t}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.plugins.liteecho","description":"","frontmatter":{"title":"liteyuki.plugins.liteecho"},"headers":[],"relativePath":"dev/api/plugins/liteecho.md","filePath":"zh/dev/api/plugins/liteecho.md","lastUpdated":null}'),a={name:"dev/api/plugins/liteecho.md"},l=t('

模块 liteyuki.plugins.liteecho

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/22 下午12:31 @Author : snowykami @Email : snowykami@outlook.com @File : liteecho.py @Software: PyCharm


@on_startswith(['liteecho'], rule=is_su_rule).handle()

async func liteecho(event: MessageEvent)

源代码在GitHub上查看
python
@on_startswith(['liteecho'], rule=is_su_rule).handle()\nasync def liteecho(event: MessageEvent):\n    event.reply(event.raw_message.strip()[8:].strip())
',7),n=[l];function h(o,p,r,c,k,d){return s(),i("div",null,n)}const y=e(a,[["render",h]]);export{g as __pageData,y as default}; diff --git a/assets/dev_api_plugins_liteecho.md.a-DHFJ66.lean.js b/assets/dev_api_plugins_liteecho.md.sryx6SuS.lean.js similarity index 87% rename from assets/dev_api_plugins_liteecho.md.a-DHFJ66.lean.js rename to assets/dev_api_plugins_liteecho.md.sryx6SuS.lean.js index 6be5095b..15709b9c 100644 --- a/assets/dev_api_plugins_liteecho.md.a-DHFJ66.lean.js +++ b/assets/dev_api_plugins_liteecho.md.sryx6SuS.lean.js @@ -1 +1 @@ -import{_ as e,c as i,o as s,a9 as t}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.plugins.liteecho","description":"","frontmatter":{"title":"liteyuki.plugins.liteecho"},"headers":[],"relativePath":"dev/api/plugins/liteecho.md","filePath":"zh/dev/api/plugins/liteecho.md","lastUpdated":null}'),a={name:"dev/api/plugins/liteecho.md"},l=t("",6),n=[l];function h(o,p,r,c,k,d){return s(),i("div",null,n)}const y=e(a,[["render",h]]);export{g as __pageData,y as default}; +import{_ as e,c as i,o as s,a9 as t}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.plugins.liteecho","description":"","frontmatter":{"title":"liteyuki.plugins.liteecho"},"headers":[],"relativePath":"dev/api/plugins/liteecho.md","filePath":"zh/dev/api/plugins/liteecho.md","lastUpdated":null}'),a={name:"dev/api/plugins/liteecho.md"},l=t("",7),n=[l];function h(o,p,r,c,k,d){return s(),i("div",null,n)}const y=e(a,[["render",h]]);export{g as __pageData,y as default}; diff --git a/assets/dev_api_plugins_plugin_loader_index.md.DVvGETw-.js b/assets/dev_api_plugins_plugin_loader_index.md.DVvGETw-.js new file mode 100644 index 00000000..de403ebc --- /dev/null +++ b/assets/dev_api_plugins_plugin_loader_index.md.DVvGETw-.js @@ -0,0 +1 @@ +import{_ as i,c as s,o as a,a9 as l}from"./chunks/framework.C4_mTacX.js";const _=JSON.parse('{"title":"liteyuki.plugins.plugin_loader","description":"","frontmatter":{"title":"liteyuki.plugins.plugin_loader","collapsed":true},"headers":[],"relativePath":"dev/api/plugins/plugin_loader/index.md","filePath":"zh/dev/api/plugins/plugin_loader/index.md","lastUpdated":null}'),n={name:"dev/api/plugins/plugin_loader/index.md"},e=l('

模块 liteyuki.plugins.plugin_loader

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/11 下午10:02 @Author : snowykami @Email : snowykami@outlook.com @File : init.py.py @Software: PyCharm


func default_plugins_loader()

说明: 默认插件加载器,应在初始化时调用

源代码在GitHub上查看
python
def default_plugins_loader():\n    for plugin in get_config('liteyuki.plugins', []):\n        load_plugin(plugin)\n    for plugin_dir in get_config('liteyuki.plugin_dirs', ['src/liteyuki_plugins']):\n        load_plugins(plugin_dir)
',7),t=[e];function p(r,o,d,h,k,u){return a(),s("div",null,t)}const c=i(n,[["render",p]]);export{_ as __pageData,c as default}; diff --git a/assets/dev_api_plugins_plugin_loader_index.md.VShWijpV.lean.js b/assets/dev_api_plugins_plugin_loader_index.md.DVvGETw-.lean.js similarity index 88% rename from assets/dev_api_plugins_plugin_loader_index.md.VShWijpV.lean.js rename to assets/dev_api_plugins_plugin_loader_index.md.DVvGETw-.lean.js index 6f06207a..7a81e083 100644 --- a/assets/dev_api_plugins_plugin_loader_index.md.VShWijpV.lean.js +++ b/assets/dev_api_plugins_plugin_loader_index.md.DVvGETw-.lean.js @@ -1 +1 @@ -import{_ as i,c as s,o as a,a9 as l}from"./chunks/framework.C4_mTacX.js";const _=JSON.parse('{"title":"liteyuki.plugins.plugin_loader","description":"","frontmatter":{"title":"liteyuki.plugins.plugin_loader","collapsed":true},"headers":[],"relativePath":"dev/api/plugins/plugin_loader/index.md","filePath":"zh/dev/api/plugins/plugin_loader/index.md","lastUpdated":null}'),n={name:"dev/api/plugins/plugin_loader/index.md"},e=l("",6),t=[e];function p(r,o,d,h,k,u){return a(),s("div",null,t)}const c=i(n,[["render",p]]);export{_ as __pageData,c as default}; +import{_ as i,c as s,o as a,a9 as l}from"./chunks/framework.C4_mTacX.js";const _=JSON.parse('{"title":"liteyuki.plugins.plugin_loader","description":"","frontmatter":{"title":"liteyuki.plugins.plugin_loader","collapsed":true},"headers":[],"relativePath":"dev/api/plugins/plugin_loader/index.md","filePath":"zh/dev/api/plugins/plugin_loader/index.md","lastUpdated":null}'),n={name:"dev/api/plugins/plugin_loader/index.md"},e=l("",7),t=[e];function p(r,o,d,h,k,u){return a(),s("div",null,t)}const c=i(n,[["render",p]]);export{_ as __pageData,c as default}; diff --git a/assets/dev_api_plugins_plugin_loader_index.md.VShWijpV.js b/assets/dev_api_plugins_plugin_loader_index.md.VShWijpV.js deleted file mode 100644 index bb8adc76..00000000 --- a/assets/dev_api_plugins_plugin_loader_index.md.VShWijpV.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as i,c as s,o as a,a9 as l}from"./chunks/framework.C4_mTacX.js";const _=JSON.parse('{"title":"liteyuki.plugins.plugin_loader","description":"","frontmatter":{"title":"liteyuki.plugins.plugin_loader","collapsed":true},"headers":[],"relativePath":"dev/api/plugins/plugin_loader/index.md","filePath":"zh/dev/api/plugins/plugin_loader/index.md","lastUpdated":null}'),n={name:"dev/api/plugins/plugin_loader/index.md"},e=l('

模块 liteyuki.plugins.plugin_loader

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/11 下午10:02 @Author : snowykami @Email : snowykami@outlook.com @File : init.py.py @Software: PyCharm

func default_plugins_loader()

说明: 默认插件加载器,应在初始化时调用

源代码在GitHub上查看
python
def default_plugins_loader():\n    for plugin in get_config('liteyuki.plugins', []):\n        load_plugin(plugin)\n    for plugin_dir in get_config('liteyuki.plugin_dirs', ['src/liteyuki_plugins']):\n        load_plugins(plugin_dir)
',6),t=[e];function p(r,o,d,h,k,u){return a(),s("div",null,t)}const c=i(n,[["render",p]]);export{_ as __pageData,c as default}; diff --git a/assets/dev_api_utils.md.BCCrA2Tn.js b/assets/dev_api_utils.md.wryzX8vr.js similarity index 58% rename from assets/dev_api_utils.md.BCCrA2Tn.js rename to assets/dev_api_utils.md.wryzX8vr.js index 8455d445..24632686 100644 --- a/assets/dev_api_utils.md.BCCrA2Tn.js +++ b/assets/dev_api_utils.md.wryzX8vr.js @@ -1,10 +1,10 @@ -import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.utils","description":"","frontmatter":{"title":"liteyuki.utils"},"headers":[],"relativePath":"dev/api/utils.md","filePath":"zh/dev/api/utils.md","lastUpdated":null}'),t={name:"dev/api/utils.md"},l=n(`

模块 liteyuki.utils

一些常用的工具类,部分来源于 nonebot 并遵循其许可进行修改

func is_coroutine_callable(call: Callable[..., Any]) -> bool

说明: 判断是否为协程可调用对象

参数:

  • call: 可调用对象

返回: bool: 是否为协程可调用对象

源代码在GitHub上查看
python
def is_coroutine_callable(call: Callable[..., Any]) -> bool:
+import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.utils","description":"","frontmatter":{"title":"liteyuki.utils"},"headers":[],"relativePath":"dev/api/utils.md","filePath":"zh/dev/api/utils.md","lastUpdated":null}'),t={name:"dev/api/utils.md"},l=n(`

模块 liteyuki.utils

一些常用的工具类,部分来源于 nonebot 并遵循其许可进行修改


func is_coroutine_callable(call: Callable[..., Any]) -> bool

说明: 判断是否为协程可调用对象

参数:

  • call: 可调用对象

返回: bool: 是否为协程可调用对象

源代码在GitHub上查看
python
def is_coroutine_callable(call: Callable[..., Any]) -> bool:
     if inspect.isroutine(call):
         return inspect.iscoroutinefunction(call)
     if inspect.isclass(call):
         return False
     func_ = getattr(call, '__call__', None)
-    return inspect.iscoroutinefunction(func_)

func run_coroutine(*coro: Coroutine)

说明: 运行协程

参数:

  • coro:
源代码在GitHub上查看
python
def run_coroutine(*coro: Coroutine):
+    return inspect.iscoroutinefunction(func_)

func run_coroutine(*coro: Coroutine)

说明: 运行协程

参数:

  • coro:
源代码在GitHub上查看
python
def run_coroutine(*coro: Coroutine):
     try:
         loop = asyncio.get_running_loop()
         if loop.is_running():
@@ -19,15 +19,15 @@ import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const g
         loop.run_until_complete(asyncio.gather(*coro))
         loop.close()
     except Exception as e:
-        logger.error(f'Exception occurred: {e}')

func run_coroutine_in_thread(*coro: Coroutine)

说明: 在新线程中运行协程

参数:

  • coro:
源代码在GitHub上查看
python
def run_coroutine_in_thread(*coro: Coroutine):
-    threading.Thread(target=run_coroutine, args=coro, daemon=True).start()

func path_to_module_name(path: Path) -> str

说明: 转换路径为模块名

参数:

  • path: 路径a/b/c/d -> a.b.c.d

返回: str: 模块名

源代码在GitHub上查看
python
def path_to_module_name(path: Path) -> str:
+        logger.error(f'Exception occurred: {e}')

func run_coroutine_in_thread(*coro: Coroutine)

说明: 在新线程中运行协程

参数:

  • coro:
源代码在GitHub上查看
python
def run_coroutine_in_thread(*coro: Coroutine):
+    threading.Thread(target=run_coroutine, args=coro, daemon=True).start()

func path_to_module_name(path: Path) -> str

说明: 转换路径为模块名

参数:

  • path: 路径a/b/c/d -> a.b.c.d

返回: str: 模块名

源代码在GitHub上查看
python
def path_to_module_name(path: Path) -> str:
     rel_path = path.resolve().relative_to(Path.cwd().resolve())
     if rel_path.stem == '__init__':
         return '.'.join(rel_path.parts[:-1])
     else:
-        return '.'.join(rel_path.parts[:-1] + (rel_path.stem,))

func async_wrapper(func: Callable[..., Any]) -> Callable[..., Coroutine]

说明: 异步包装器

参数:

  • func: Sync Callable

返回: Coroutine: Asynchronous Callable

源代码在GitHub上查看
python
def async_wrapper(func: Callable[..., Any]) -> Callable[..., Coroutine]:
+        return '.'.join(rel_path.parts[:-1] + (rel_path.stem,))

func async_wrapper(func: Callable[..., Any]) -> Callable[..., Coroutine]

说明: 异步包装器

参数:

  • func: Sync Callable

返回: Coroutine: Asynchronous Callable

源代码在GitHub上查看
python
def async_wrapper(func: Callable[..., Any]) -> Callable[..., Coroutine]:
 
     async def wrapper(*args, **kwargs):
         return func(*args, **kwargs)
     wrapper.__signature__ = inspect.signature(func)
-    return wrapper
`,30),h=[l];function e(p,k,r,o,d,E){return a(),i("div",null,h)}const u=s(t,[["render",e]]);export{g as __pageData,u as default}; + return wrapper
`,35),h=[l];function e(p,k,r,o,d,E){return a(),i("div",null,h)}const u=s(t,[["render",e]]);export{g as __pageData,u as default}; diff --git a/assets/dev_api_utils.md.BCCrA2Tn.lean.js b/assets/dev_api_utils.md.wryzX8vr.lean.js similarity index 85% rename from assets/dev_api_utils.md.BCCrA2Tn.lean.js rename to assets/dev_api_utils.md.wryzX8vr.lean.js index 70d833c7..94021da9 100644 --- a/assets/dev_api_utils.md.BCCrA2Tn.lean.js +++ b/assets/dev_api_utils.md.wryzX8vr.lean.js @@ -1 +1 @@ -import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.utils","description":"","frontmatter":{"title":"liteyuki.utils"},"headers":[],"relativePath":"dev/api/utils.md","filePath":"zh/dev/api/utils.md","lastUpdated":null}'),t={name:"dev/api/utils.md"},l=n("",30),h=[l];function e(p,k,r,o,d,E){return a(),i("div",null,h)}const u=s(t,[["render",e]]);export{g as __pageData,u as default}; +import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.utils","description":"","frontmatter":{"title":"liteyuki.utils"},"headers":[],"relativePath":"dev/api/utils.md","filePath":"zh/dev/api/utils.md","lastUpdated":null}'),t={name:"dev/api/utils.md"},l=n("",35),h=[l];function e(p,k,r,o,d,E){return a(),i("div",null,h)}const u=s(t,[["render",e]]);export{g as __pageData,u as default}; diff --git a/assets/dev_guide.md.CeOBWODY.js b/assets/dev_guide.md.S84qIxk3.js similarity index 97% rename from assets/dev_guide.md.CeOBWODY.js rename to assets/dev_guide.md.S84qIxk3.js index 8a81ff65..68bf4278 100644 --- a/assets/dev_guide.md.CeOBWODY.js +++ b/assets/dev_guide.md.S84qIxk3.js @@ -1 +1 @@ -import{C as e}from"./chunks/ContributorBar.BzBe6oi1.js";import{c as o,I as i,a9 as l,o as t}from"./chunks/framework.C4_mTacX.js";import"./chunks/theme.pz_Nliu9.js";const a=l('

开发指南

如何开发

插件开发无需阅读本文档,请阅读插件开发文档API 引用

如需往轻雪仓库提交代码,请阅读以下内容:

  1. 首先fork一份轻雪仓库到你的个人/组织账户下。
  2. 在你的仓库中进行开发。
  3. 在你的仓库中创建一个新的分支,将你的代码提交到这个分支。
  4. 在你的仓库中创建一个Pull Request,将你的分支合并到轻雪仓库的main分支。

参与开发默认你已经了解Python语言和轻雪框架的基本使用方法,如果是文档相关的开发,请确保你了解Markdown语法和基本前端知识。 出现冲突请与仓库维护者联系。

建议

  • 开发过程中可以使用mypy, flake8, black等工具进行代码检查和格式化。
  • 启用开发者模式,可以在config.yml中设置dev_mode: true,这样可以在控制台看到更多的调试信息。

项目结构

  • main.py: 机器人入口文件
  • liteyuki: 框架目录(liteyukibot)
  • src: 机器人源码目录
    • liteyuki_plugins: 轻雪插件目录
    • nonebot_plugins: Nonebot插件目录
    • resources: 内置资源包目录
    • utils: 工具目录
  • tests: 单元测试目录
  • docs: 文档目录
    • en: 英文文档
    • zh: 中文文档
  • docker: Docker相关内容目录

其中,liteyuki框架是包含在LiteyukiBot应用中的,所以此项目既是LiteyukiBot应用仓库,同时也是liteyuki框架的仓库

src目录下为应用程序部分,业务逻辑请在此目录下进行开发,liteyuki_pluginsnonebot_plugins目录下为插件目录,插件开发请在此目录下进行开发。

规范化

  • 代码请遵循PEP8Google Python Style Guide
  • 提交到轻雪仓库的代码,请遵循以下规范:
    • 请确保代码是可运行的,没有危害的。
    • 请确保代码的类型提示是正确的。
    • 请确保注释风格为Google DocstringLiteyuki Docstring(推荐)以保证Litedoc能够正确解析并生成文档。
    • 字符串请使用双引号",尽量避免使用单引号',但在嵌套字符串时可以使用单引号。
    • 若有面向普通用户部分,请确保文档是完善的(每种语言都有对应的文档)。
  • commit message请遵循以下规范:
    • 应在每次完成一个功能或修复一个bug后提交代码,不要将多个功能或多个bug的代码混在一起提交。
    • 我们使用gitmoji来标记commit的类型,如:sparkles:表示引入新功能,:bug:表示修复bug等,具体请参考gitmoji
    • commit message的格式为<emoji> [type:] <message>,如:sparkles: feat: 给event添加新字段, 其中type字段为commit类型且可选,message字段为简短的描述,总结来说就是你干了什么。
    • 不限制commit message的语言,有条件可以使用中英双语。
  • 文档请遵循Markdown语法,并且支持vitepress相关内容:
    • 修订文档时,每个语言的文档都要修订。
    • 请确保文档内的链接是正确的,不要出现无法访问的死链接。
    • 请确保用户文档是通俗易懂的,开发文档是详细的。

最后

  • 本项目是一个非盈利的开源项目,我们欢迎任何人参与开发,你的贡献将会使轻雪变得更好。
',16),g=JSON.parse('{"title":"开发指南","description":"","frontmatter":{"title":"开发指南","order":0},"headers":[],"relativePath":"dev/guide.md","filePath":"zh/dev/guide.md","lastUpdated":1725389024000}'),r={name:"dev/guide.md"},m=Object.assign(r,{setup(d){return(c,u)=>(t(),o("div",null,[a,i(e)]))}});export{g as __pageData,m as default}; +import{C as e}from"./chunks/ContributorBar.DSe5HslA.js";import{c as o,I as i,a9 as l,o as t}from"./chunks/framework.C4_mTacX.js";import"./chunks/theme.CVtOlEkl.js";const a=l('

开发指南

如何开发

插件开发无需阅读本文档,请阅读插件开发文档API 引用

如需往轻雪仓库提交代码,请阅读以下内容:

  1. 首先fork一份轻雪仓库到你的个人/组织账户下。
  2. 在你的仓库中进行开发。
  3. 在你的仓库中创建一个新的分支,将你的代码提交到这个分支。
  4. 在你的仓库中创建一个Pull Request,将你的分支合并到轻雪仓库的main分支。

参与开发默认你已经了解Python语言和轻雪框架的基本使用方法,如果是文档相关的开发,请确保你了解Markdown语法和基本前端知识。 出现冲突请与仓库维护者联系。

建议

  • 开发过程中可以使用mypy, flake8, black等工具进行代码检查和格式化。
  • 启用开发者模式,可以在config.yml中设置dev_mode: true,这样可以在控制台看到更多的调试信息。

项目结构

  • main.py: 机器人入口文件
  • liteyuki: 框架目录(liteyukibot)
  • src: 机器人源码目录
    • liteyuki_plugins: 轻雪插件目录
    • nonebot_plugins: Nonebot插件目录
    • resources: 内置资源包目录
    • utils: 工具目录
  • tests: 单元测试目录
  • docs: 文档目录
    • en: 英文文档
    • zh: 中文文档
  • docker: Docker相关内容目录

其中,liteyuki框架是包含在LiteyukiBot应用中的,所以此项目既是LiteyukiBot应用仓库,同时也是liteyuki框架的仓库

src目录下为应用程序部分,业务逻辑请在此目录下进行开发,liteyuki_pluginsnonebot_plugins目录下为插件目录,插件开发请在此目录下进行开发。

规范化

  • 代码请遵循PEP8Google Python Style Guide
  • 提交到轻雪仓库的代码,请遵循以下规范:
    • 请确保代码是可运行的,没有危害的。
    • 请确保代码的类型提示是正确的。
    • 请确保注释风格为Google DocstringLiteyuki Docstring(推荐)以保证Litedoc能够正确解析并生成文档。
    • 字符串请使用双引号",尽量避免使用单引号',但在嵌套字符串时可以使用单引号。
    • 若有面向普通用户部分,请确保文档是完善的(每种语言都有对应的文档)。
  • commit message请遵循以下规范:
    • 应在每次完成一个功能或修复一个bug后提交代码,不要将多个功能或多个bug的代码混在一起提交。
    • 我们使用gitmoji来标记commit的类型,如:sparkles:表示引入新功能,:bug:表示修复bug等,具体请参考gitmoji
    • commit message的格式为<emoji> [type:] <message>,如:sparkles: feat: 给event添加新字段, 其中type字段为commit类型且可选,message字段为简短的描述,总结来说就是你干了什么。
    • 不限制commit message的语言,有条件可以使用中英双语。
  • 文档请遵循Markdown语法,并且支持vitepress相关内容:
    • 修订文档时,每个语言的文档都要修订。
    • 请确保文档内的链接是正确的,不要出现无法访问的死链接。
    • 请确保用户文档是通俗易懂的,开发文档是详细的。

最后

  • 本项目是一个非盈利的开源项目,我们欢迎任何人参与开发,你的贡献将会使轻雪变得更好。
',16),g=JSON.parse('{"title":"开发指南","description":"","frontmatter":{"title":"开发指南","order":0},"headers":[],"relativePath":"dev/guide.md","filePath":"zh/dev/guide.md","lastUpdated":1725389024000}'),r={name:"dev/guide.md"},m=Object.assign(r,{setup(d){return(c,u)=>(t(),o("div",null,[a,i(e)]))}});export{g as __pageData,m as default}; diff --git a/assets/dev_guide.md.CeOBWODY.lean.js b/assets/dev_guide.md.S84qIxk3.lean.js similarity index 75% rename from assets/dev_guide.md.CeOBWODY.lean.js rename to assets/dev_guide.md.S84qIxk3.lean.js index d05ba9b0..06cff63b 100644 --- a/assets/dev_guide.md.CeOBWODY.lean.js +++ b/assets/dev_guide.md.S84qIxk3.lean.js @@ -1 +1 @@ -import{C as e}from"./chunks/ContributorBar.BzBe6oi1.js";import{c as o,I as i,a9 as l,o as t}from"./chunks/framework.C4_mTacX.js";import"./chunks/theme.pz_Nliu9.js";const a=l("",16),g=JSON.parse('{"title":"开发指南","description":"","frontmatter":{"title":"开发指南","order":0},"headers":[],"relativePath":"dev/guide.md","filePath":"zh/dev/guide.md","lastUpdated":1725389024000}'),r={name:"dev/guide.md"},m=Object.assign(r,{setup(d){return(c,u)=>(t(),o("div",null,[a,i(e)]))}});export{g as __pageData,m as default}; +import{C as e}from"./chunks/ContributorBar.DSe5HslA.js";import{c as o,I as i,a9 as l,o as t}from"./chunks/framework.C4_mTacX.js";import"./chunks/theme.CVtOlEkl.js";const a=l("",16),g=JSON.parse('{"title":"开发指南","description":"","frontmatter":{"title":"开发指南","order":0},"headers":[],"relativePath":"dev/guide.md","filePath":"zh/dev/guide.md","lastUpdated":1725389024000}'),r={name:"dev/guide.md"},m=Object.assign(r,{setup(d){return(c,u)=>(t(),o("div",null,[a,i(e)]))}});export{g as __pageData,m as default}; diff --git a/assets/en_dev_api_bot_index.md.Etpbg95G.js b/assets/en_dev_api_bot_index.md.C4r8HhEl.js similarity index 55% rename from assets/en_dev_api_bot_index.md.Etpbg95G.js rename to assets/en_dev_api_bot_index.md.C4r8HhEl.js index a7a53c74..0ca4566e 100644 --- a/assets/en_dev_api_bot_index.md.Etpbg95G.js +++ b/assets/en_dev_api_bot_index.md.C4r8HhEl.js @@ -1,4 +1,4 @@ -import{_ as s,c as i,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const c=JSON.parse('{"title":"liteyuki.bot","description":"","frontmatter":{"title":"liteyuki.bot","collapsed":true},"headers":[],"relativePath":"en/dev/api/bot/index.md","filePath":"en/dev/api/bot/index.md","lastUpdated":null}'),n={name:"en/dev/api/bot/index.md"},e=t(`

Module liteyuki.bot

class LiteyukiBot

func __init__(self, **kwargs) -> None

Description: 初始化轻雪实例

Arguments:

  • **kwargs: 配置
Source code or View on GitHub
python
def __init__(self, **kwargs) -> None:
+import{_ as s,c as i,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const c=JSON.parse('{"title":"liteyuki.bot","description":"","frontmatter":{"title":"liteyuki.bot","collapsed":true},"headers":[],"relativePath":"en/dev/api/bot/index.md","filePath":"en/dev/api/bot/index.md","lastUpdated":null}'),n={name:"en/dev/api/bot/index.md"},e=t(`

Module liteyuki.bot

class LiteyukiBot


func __init__(self, **kwargs) -> None

Description: 初始化轻雪实例

Arguments:

  • **kwargs: 配置
Source code or View on GitHub
python
def __init__(self, **kwargs) -> None:
     """常规操作"""
     print_logo()
     global _BOT_INSTANCE
@@ -17,21 +17,21 @@ import{_ as s,c as i,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const c
     self.stop_event = threading.Event()
     self.call_restart_count = 0
     '加载插件加载器'
-    load_plugin('liteyuki.plugins.plugin_loader')

func run(self)

Description: 外部启动接口

Source code or View on GitHub
python
def run(self):
+    load_plugin('liteyuki.plugins.plugin_loader')

func run(self)

Description: 外部启动接口

Source code or View on GitHub
python
def run(self):
     self.process_manager.start_all()
     try:
         asyncio.run(self._run())
     except KeyboardInterrupt:
         logger.opt(colors=True).info('<y>Liteyuki is stopping...</y>')
         self.stop()
-    logger.opt(colors=True).info('<y>Liteyuki is stopped...</y>')

async func keep_alive(self)

Description: 保持轻雪运行

Source code or View on GitHub
python
async def keep_alive(self):
+    logger.opt(colors=True).info('<y>Liteyuki is stopped...</y>')

async func keep_alive(self)

Description: 保持轻雪运行

Source code or View on GitHub
python
async def keep_alive(self):
     logger.info('Liteyuki is keeping alive...')
     try:
         while not self.stop_event.is_set():
             await asyncio.sleep(0.1)
     except Exception:
         logger.info('Liteyuki is exiting...')
-        self.stop()

func restart(self, delay: int = 0)

Description: 重启轻雪本体

Arguments:

  • delay (int, optional): 延迟重启时间. Defaults to 0.
Source code or View on GitHub
python
def restart(self, delay: int=0):
+        self.stop()

func restart(self, delay: int = 0)

Description: 重启轻雪本体

Arguments:

  • delay (int, optional): 延迟重启时间. Defaults to 0.
Source code or View on GitHub
python
def restart(self, delay: int=0):
     if self.call_restart_count < 1:
         executable = sys.executable
         args = sys.argv
@@ -48,35 +48,35 @@ import{_ as s,c as i,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const c
         self.process_manager.terminate_all()
         threading.Thread(target=os.system, args=(f"{cmd} {executable} {' '.join(args)}",), daemon=True).start()
         sys.exit(0)
-    self.call_restart_count += 1

func restart_process(self, name: Optional[str] = None)

Description: 停止轻雪

Arguments:

Source code or View on GitHub
python
def restart_process(self, name: Optional[str]=None):
+    self.call_restart_count += 1

func restart_process(self, name: Optional[str] = None)

Description: 停止轻雪

Arguments:

Source code or View on GitHub
python
def restart_process(self, name: Optional[str]=None):
     if name is not None:
         chan_active = get_channel(f'{name}-active')
         chan_active.send(1)
     else:
         for process_name in self.process_manager.processes:
             chan_active = get_channel(f'{process_name}-active')
-            chan_active.send(1)

func init(self, *args, **kwargs)

Description: 初始化轻雪, 自动调用

Arguments:

  • *args: 参数
  • **kwargs: 关键字参数
Source code or View on GitHub
python
def init(self, *args, **kwargs):
-    self.init_logger()

func init_logger(self)

Description: 初始化日志

Source code or View on GitHub
python
def init_logger(self):
-    init_log(config=self.config)

func stop(self)

Description: 停止轻雪

Source code or View on GitHub
python
def stop(self):
+            chan_active.send(1)

func init(self, *args, **kwargs)

Description: 初始化轻雪, 自动调用

Arguments:

  • *args: 参数
  • **kwargs: 关键字参数
Source code or View on GitHub
python
def init(self, *args, **kwargs):
+    self.init_logger()

func init_logger(self)

Description: 初始化日志

Source code or View on GitHub
python
def init_logger(self):
+    init_log(config=self.config)

func stop(self)

Description: 停止轻雪

Source code or View on GitHub
python
def stop(self):
     self.process_manager.terminate_all()
-    self.stop_event.set()

func on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

Description: 注册启动前的函数

Arguments:

Return: LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:
-    return self.lifespan.on_before_start(func)

func on_after_start(self, func: LIFESPAN_FUNC)

Description: 注册启动后的函数

Arguments:

Return: LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_after_start(self, func: LIFESPAN_FUNC):
-    return self.lifespan.on_after_start(func)

func on_after_shutdown(self, func: LIFESPAN_FUNC)

Description: 注册停止后的函数:未实现

Arguments:

Return: LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_after_shutdown(self, func: LIFESPAN_FUNC):
-    return self.lifespan.on_after_shutdown(func)

func on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC)

Description: 注册进程停止前的函数,为子进程停止时调用

Arguments:

Return: PROCESS_LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC):
-    return self.lifespan.on_before_process_shutdown(func)

func on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC

Description: 注册进程重启前的函数,为子进程重启时调用

Arguments:

Return: PROCESS_LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC:
-    return self.lifespan.on_before_process_restart(func)

func on_after_restart(self, func: LIFESPAN_FUNC)

Description: 注册重启后的函数:未实现

Arguments:

Return: LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_after_restart(self, func: LIFESPAN_FUNC):
-    return self.lifespan.on_after_restart(func)

func get_bot() -> LiteyukiBot

Description: 获取轻雪实例

Return: LiteyukiBot: 轻雪实例

Source code or View on GitHub
python
def get_bot() -> LiteyukiBot:
+    self.stop_event.set()

func on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

Description: 注册启动前的函数

Arguments:

Return: LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:
+    return self.lifespan.on_before_start(func)

func on_after_start(self, func: LIFESPAN_FUNC)

Description: 注册启动后的函数

Arguments:

Return: LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_after_start(self, func: LIFESPAN_FUNC):
+    return self.lifespan.on_after_start(func)

func on_after_shutdown(self, func: LIFESPAN_FUNC)

Description: 注册停止后的函数:未实现

Arguments:

Return: LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_after_shutdown(self, func: LIFESPAN_FUNC):
+    return self.lifespan.on_after_shutdown(func)

func on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC)

Description: 注册进程停止前的函数,为子进程停止时调用

Arguments:

Return: PROCESS_LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC):
+    return self.lifespan.on_before_process_shutdown(func)

func on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC

Description: 注册进程重启前的函数,为子进程重启时调用

Arguments:

Return: PROCESS_LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC:
+    return self.lifespan.on_before_process_restart(func)

func on_after_restart(self, func: LIFESPAN_FUNC)

Description: 注册重启后的函数:未实现

Arguments:

Return: LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_after_restart(self, func: LIFESPAN_FUNC):
+    return self.lifespan.on_after_restart(func)

func get_bot() -> LiteyukiBot

Description: 获取轻雪实例

Return: LiteyukiBot: 轻雪实例

Source code or View on GitHub
python
def get_bot() -> LiteyukiBot:
     if IS_MAIN_PROCESS:
         if _BOT_INSTANCE is None:
             raise RuntimeError('Liteyuki instance not initialized.')
         return _BOT_INSTANCE
     else:
-        raise RuntimeError("Can't get bot instance in sub process.")

func get_config(key: str, default: Any = None) -> Any

Description: 获取配置

Arguments:

  • key (str): 配置键
  • default (Any, optional): 默认值. Defaults to None.

Return: Any: 配置值

Source code or View on GitHub
python
def get_config(key: str, default: Any=None) -> Any:
-    return get_bot().config.get(key, default)

func get_config_with_compat(key: str, compat_keys: tuple[str], default: Any = None) -> Any

Description: 获取配置,兼容旧版本

Arguments:

  • key (str): 配置键
  • compat_keys (tuplestr): 兼容键
  • default (Any, optional): 默认值. Defaults to None.

Return: Any: 配置值

Source code or View on GitHub
python
def get_config_with_compat(key: str, compat_keys: tuple[str], default: Any=None) -> Any:
+        raise RuntimeError("Can't get bot instance in sub process.")

func get_config(key: str, default: Any = None) -> Any

Description: 获取配置

Arguments:

  • key (str): 配置键
  • default (Any, optional): 默认值. Defaults to None.

Return: Any: 配置值

Source code or View on GitHub
python
def get_config(key: str, default: Any=None) -> Any:
+    return get_bot().config.get(key, default)

func get_config_with_compat(key: str, compat_keys: tuple[str], default: Any = None) -> Any

Description: 获取配置,兼容旧版本

Arguments:

  • key (str): 配置键
  • compat_keys (tuplestr): 兼容键
  • default (Any, optional): 默认值. Defaults to None.

Return: Any: 配置值

Source code or View on GitHub
python
def get_config_with_compat(key: str, compat_keys: tuple[str], default: Any=None) -> Any:
     if key in get_bot().config:
         return get_bot().config[key]
     for compat_key in compat_keys:
         if compat_key in get_bot().config:
             logger.warning(f'Config key "{compat_key}" will be deprecated, use "{key}" instead.')
             return get_bot().config[compat_key]
-    return default
`,86),l=[e];function h(p,k,r,o,d,g){return a(),i("div",null,l)}const y=s(n,[["render",h]]);export{c as __pageData,y as default}; + return default
`,103),l=[e];function h(p,k,r,o,d,g){return a(),i("div",null,l)}const y=s(n,[["render",h]]);export{c as __pageData,y as default}; diff --git a/assets/en_dev_api_bot_index.md.Etpbg95G.lean.js b/assets/en_dev_api_bot_index.md.C4r8HhEl.lean.js similarity index 67% rename from assets/en_dev_api_bot_index.md.Etpbg95G.lean.js rename to assets/en_dev_api_bot_index.md.C4r8HhEl.lean.js index b99ab286..c154d56b 100644 --- a/assets/en_dev_api_bot_index.md.Etpbg95G.lean.js +++ b/assets/en_dev_api_bot_index.md.C4r8HhEl.lean.js @@ -1 +1 @@ -import{_ as s,c as i,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const c=JSON.parse('{"title":"liteyuki.bot","description":"","frontmatter":{"title":"liteyuki.bot","collapsed":true},"headers":[],"relativePath":"en/dev/api/bot/index.md","filePath":"en/dev/api/bot/index.md","lastUpdated":null}'),n={name:"en/dev/api/bot/index.md"},e=t("",86),l=[e];function h(p,k,r,o,d,g){return a(),i("div",null,l)}const y=s(n,[["render",h]]);export{c as __pageData,y as default}; +import{_ as s,c as i,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const c=JSON.parse('{"title":"liteyuki.bot","description":"","frontmatter":{"title":"liteyuki.bot","collapsed":true},"headers":[],"relativePath":"en/dev/api/bot/index.md","filePath":"en/dev/api/bot/index.md","lastUpdated":null}'),n={name:"en/dev/api/bot/index.md"},e=t("",103),l=[e];function h(p,k,r,o,d,g){return a(),i("div",null,l)}const y=s(n,[["render",h]]);export{c as __pageData,y as default}; diff --git a/assets/en_dev_api_bot_lifespan.md.B-nofctY.js b/assets/en_dev_api_bot_lifespan.md.B-nofctY.js new file mode 100644 index 00000000..c166c42d --- /dev/null +++ b/assets/en_dev_api_bot_lifespan.md.B-nofctY.js @@ -0,0 +1 @@ +import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const u=JSON.parse('{"title":"liteyuki.bot.lifespan","description":"","frontmatter":{"title":"liteyuki.bot.lifespan"},"headers":[],"relativePath":"en/dev/api/bot/lifespan.md","filePath":"en/dev/api/bot/lifespan.md","lastUpdated":1725101868000}'),e={name:"en/dev/api/bot/lifespan.md"},t=n('

Module liteyuki.bot.lifespan

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/23 下午8:24 @Author : snowykami @Email : snowykami@outlook.com @File : lifespan.py @Software: PyCharm

var SYNC_LIFESPAN_FUNC

  • Description: 同步生命周期函数

  • Type: TypeAlias

  • Default: Callable[[], Any]

var ASYNC_LIFESPAN_FUNC

  • Description: 异步生命周期函数

  • Type: TypeAlias

  • Default: Callable[[], Awaitable[Any]]

var LIFESPAN_FUNC

  • Description: 生命周期函数

  • Type: TypeAlias

  • Default: SYNC_LIFESPAN_FUNC | ASYNC_LIFESPAN_FUNC

var SYNC_PROCESS_LIFESPAN_FUNC

  • Description: 同步进程生命周期函数

  • Type: TypeAlias

  • Default: Callable[[str], Any]

var ASYNC_PROCESS_LIFESPAN_FUNC

  • Description: 异步进程生命周期函数

  • Type: TypeAlias

  • Default: Callable[[str], Awaitable[Any]]

var PROCESS_LIFESPAN_FUNC

  • Description: 进程函数

  • Type: TypeAlias

  • Default: SYNC_PROCESS_LIFESPAN_FUNC | ASYNC_PROCESS_LIFESPAN_FUNC

class Lifespan


func __init__(self) -> None

Description: 轻雪生命周期管理,启动、停止、重启

Source code or View on GitHub
python
def __init__(self) -> None:\n    self.life_flag: int = 0\n    self._before_start_funcs: list[LIFESPAN_FUNC] = []\n    self._after_start_funcs: list[LIFESPAN_FUNC] = []\n    self._before_process_shutdown_funcs: list[PROCESS_LIFESPAN_FUNC] = []\n    self._after_shutdown_funcs: list[LIFESPAN_FUNC] = []\n    self._before_process_restart_funcs: list[PROCESS_LIFESPAN_FUNC] = []\n    self._after_restart_funcs: list[LIFESPAN_FUNC] = []

@staticmethod

async func run_funcs(funcs: Sequence[LIFESPAN_FUNC | PROCESS_LIFESPAN_FUNC], *args, **kwargs) -> None

Description: 并发运行异步函数

Arguments:

Source code or View on GitHub
python
@staticmethod\nasync def run_funcs(funcs: Sequence[LIFESPAN_FUNC | PROCESS_LIFESPAN_FUNC], *args, **kwargs) -> None:\n    tasks = [func(*args, **kwargs) if is_coroutine_callable(func) else async_wrapper(func)(*args, **kwargs) for func in funcs]\n    await asyncio.gather(*tasks)

func on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

Description: 注册启动时的函数

Arguments:

Return: LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:\n    self._before_start_funcs.append(func)\n    return func

func on_after_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

Description: 注册启动时的函数

Arguments:

Return: LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_after_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:\n    self._after_start_funcs.append(func)\n    return func

func on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC

Description: 注册进程停止前的函数

Arguments:

Return: PROCESS_LIFESPAN_FUNC: 进程生命周期函数

Source code or View on GitHub
python
def on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC:\n    self._before_process_shutdown_funcs.append(func)\n    return func

func on_after_shutdown(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

Description: 注册停止后的函数

Arguments:

Return: LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_after_shutdown(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:\n    self._after_shutdown_funcs.append(func)\n    return func

func on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC

Description: 注册进程重启前的函数

Arguments:

Return: PROCESS_LIFESPAN_FUNC: 进程生命周期函数

Source code or View on GitHub
python
def on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC:\n    self._before_process_restart_funcs.append(func)\n    return func

func on_after_restart(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

Description: 注册重启后的函数

Arguments:

Return: LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_after_restart(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:\n    self._after_restart_funcs.append(func)\n    return func

async func before_start(self) -> None

Description: 启动前钩子

Source code or View on GitHub
python
async def before_start(self) -> None:\n    logger.debug('Running before_start functions')\n    await self.run_funcs(self._before_start_funcs)

async func after_start(self) -> None

Description: 启动后钩子

Source code or View on GitHub
python
async def after_start(self) -> None:\n    logger.debug('Running after_start functions')\n    await self.run_funcs(self._after_start_funcs)

async func before_process_shutdown(self, *args, **kwargs) -> None

Description: 停止前钩子

Source code or View on GitHub
python
async def before_process_shutdown(self, *args, **kwargs) -> None:\n    logger.debug('Running before_shutdown functions')\n    await self.run_funcs(self._before_process_shutdown_funcs, *args, **kwargs)

async func after_shutdown(self) -> None

Description: 停止后钩子 未实现

Source code or View on GitHub
python
async def after_shutdown(self) -> None:\n    logger.debug('Running after_shutdown functions')\n    await self.run_funcs(self._after_shutdown_funcs)

async func before_process_restart(self, *args, **kwargs) -> None

Description: 重启前钩子

Source code or View on GitHub
python
async def before_process_restart(self, *args, **kwargs) -> None:\n    logger.debug('Running before_restart functions')\n    await self.run_funcs(self._before_process_restart_funcs, *args, **kwargs)

async func after_restart(self) -> None

Description: 重启后钩子 未实现

Source code or View on GitHub
python
async def after_restart(self) -> None:\n    logger.debug('Running after_restart functions')\n    await self.run_funcs(self._after_restart_funcs)
',93),l=[t];function h(p,r,k,o,c,d){return a(),i("div",null,l)}const E=s(e,[["render",h]]);export{u as __pageData,E as default}; diff --git a/assets/en_dev_api_bot_lifespan.md.B5dt163D.lean.js b/assets/en_dev_api_bot_lifespan.md.B-nofctY.lean.js similarity index 86% rename from assets/en_dev_api_bot_lifespan.md.B5dt163D.lean.js rename to assets/en_dev_api_bot_lifespan.md.B-nofctY.lean.js index 0e9d0b04..dd49a56e 100644 --- a/assets/en_dev_api_bot_lifespan.md.B5dt163D.lean.js +++ b/assets/en_dev_api_bot_lifespan.md.B-nofctY.lean.js @@ -1 +1 @@ -import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const u=JSON.parse('{"title":"liteyuki.bot.lifespan","description":"","frontmatter":{"title":"liteyuki.bot.lifespan"},"headers":[],"relativePath":"en/dev/api/bot/lifespan.md","filePath":"en/dev/api/bot/lifespan.md","lastUpdated":1725101868000}'),e={name:"en/dev/api/bot/lifespan.md"},t=n("",79),l=[t];function h(p,r,k,o,c,d){return a(),i("div",null,l)}const E=s(e,[["render",h]]);export{u as __pageData,E as default}; +import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const u=JSON.parse('{"title":"liteyuki.bot.lifespan","description":"","frontmatter":{"title":"liteyuki.bot.lifespan"},"headers":[],"relativePath":"en/dev/api/bot/lifespan.md","filePath":"en/dev/api/bot/lifespan.md","lastUpdated":1725101868000}'),e={name:"en/dev/api/bot/lifespan.md"},t=n("",93),l=[t];function h(p,r,k,o,c,d){return a(),i("div",null,l)}const E=s(e,[["render",h]]);export{u as __pageData,E as default}; diff --git a/assets/en_dev_api_bot_lifespan.md.B5dt163D.js b/assets/en_dev_api_bot_lifespan.md.B5dt163D.js deleted file mode 100644 index 7c1c96bc..00000000 --- a/assets/en_dev_api_bot_lifespan.md.B5dt163D.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const u=JSON.parse('{"title":"liteyuki.bot.lifespan","description":"","frontmatter":{"title":"liteyuki.bot.lifespan"},"headers":[],"relativePath":"en/dev/api/bot/lifespan.md","filePath":"en/dev/api/bot/lifespan.md","lastUpdated":1725101868000}'),e={name:"en/dev/api/bot/lifespan.md"},t=n('

Module liteyuki.bot.lifespan

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/23 下午8:24 @Author : snowykami @Email : snowykami@outlook.com @File : lifespan.py @Software: PyCharm

var SYNC_LIFESPAN_FUNC

  • Description: 同步生命周期函数

  • Type: TypeAlias

  • Default: Callable[[], Any]

var ASYNC_LIFESPAN_FUNC

  • Description: 异步生命周期函数

  • Type: TypeAlias

  • Default: Callable[[], Awaitable[Any]]

var LIFESPAN_FUNC

  • Description: 生命周期函数

  • Type: TypeAlias

  • Default: SYNC_LIFESPAN_FUNC | ASYNC_LIFESPAN_FUNC

var SYNC_PROCESS_LIFESPAN_FUNC

  • Description: 同步进程生命周期函数

  • Type: TypeAlias

  • Default: Callable[[str], Any]

var ASYNC_PROCESS_LIFESPAN_FUNC

  • Description: 异步进程生命周期函数

  • Type: TypeAlias

  • Default: Callable[[str], Awaitable[Any]]

var PROCESS_LIFESPAN_FUNC

  • Description: 进程函数

  • Type: TypeAlias

  • Default: SYNC_PROCESS_LIFESPAN_FUNC | ASYNC_PROCESS_LIFESPAN_FUNC

class Lifespan

func __init__(self) -> None

Description: 轻雪生命周期管理,启动、停止、重启

Source code or View on GitHub
python
def __init__(self) -> None:\n    self.life_flag: int = 0\n    self._before_start_funcs: list[LIFESPAN_FUNC] = []\n    self._after_start_funcs: list[LIFESPAN_FUNC] = []\n    self._before_process_shutdown_funcs: list[PROCESS_LIFESPAN_FUNC] = []\n    self._after_shutdown_funcs: list[LIFESPAN_FUNC] = []\n    self._before_process_restart_funcs: list[PROCESS_LIFESPAN_FUNC] = []\n    self._after_restart_funcs: list[LIFESPAN_FUNC] = []

@staticmethod

async func run_funcs(funcs: Sequence[LIFESPAN_FUNC | PROCESS_LIFESPAN_FUNC], *args, **kwargs) -> None

Description: 并发运行异步函数

Arguments:

Source code or View on GitHub
python
@staticmethod\nasync def run_funcs(funcs: Sequence[LIFESPAN_FUNC | PROCESS_LIFESPAN_FUNC], *args, **kwargs) -> None:\n    tasks = [func(*args, **kwargs) if is_coroutine_callable(func) else async_wrapper(func)(*args, **kwargs) for func in funcs]\n    await asyncio.gather(*tasks)

func on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

Description: 注册启动时的函数

Arguments:

Return: LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:\n    self._before_start_funcs.append(func)\n    return func

func on_after_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

Description: 注册启动时的函数

Arguments:

Return: LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_after_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:\n    self._after_start_funcs.append(func)\n    return func

func on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC

Description: 注册进程停止前的函数

Arguments:

Return: PROCESS_LIFESPAN_FUNC: 进程生命周期函数

Source code or View on GitHub
python
def on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC:\n    self._before_process_shutdown_funcs.append(func)\n    return func

func on_after_shutdown(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

Description: 注册停止后的函数

Arguments:

Return: LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_after_shutdown(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:\n    self._after_shutdown_funcs.append(func)\n    return func

func on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC

Description: 注册进程重启前的函数

Arguments:

Return: PROCESS_LIFESPAN_FUNC: 进程生命周期函数

Source code or View on GitHub
python
def on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC:\n    self._before_process_restart_funcs.append(func)\n    return func

func on_after_restart(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

Description: 注册重启后的函数

Arguments:

Return: LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_after_restart(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:\n    self._after_restart_funcs.append(func)\n    return func

async func before_start(self) -> None

Description: 启动前钩子

Source code or View on GitHub
python
async def before_start(self) -> None:\n    logger.debug('Running before_start functions')\n    await self.run_funcs(self._before_start_funcs)

async func after_start(self) -> None

Description: 启动后钩子

Source code or View on GitHub
python
async def after_start(self) -> None:\n    logger.debug('Running after_start functions')\n    await self.run_funcs(self._after_start_funcs)

async func before_process_shutdown(self, *args, **kwargs) -> None

Description: 停止前钩子

Source code or View on GitHub
python
async def before_process_shutdown(self, *args, **kwargs) -> None:\n    logger.debug('Running before_shutdown functions')\n    await self.run_funcs(self._before_process_shutdown_funcs, *args, **kwargs)

async func after_shutdown(self) -> None

Description: 停止后钩子 未实现

Source code or View on GitHub
python
async def after_shutdown(self) -> None:\n    logger.debug('Running after_shutdown functions')\n    await self.run_funcs(self._after_shutdown_funcs)

async func before_process_restart(self, *args, **kwargs) -> None

Description: 重启前钩子

Source code or View on GitHub
python
async def before_process_restart(self, *args, **kwargs) -> None:\n    logger.debug('Running before_restart functions')\n    await self.run_funcs(self._before_process_restart_funcs, *args, **kwargs)

async func after_restart(self) -> None

Description: 重启后钩子 未实现

Source code or View on GitHub
python
async def after_restart(self) -> None:\n    logger.debug('Running after_restart functions')\n    await self.run_funcs(self._after_restart_funcs)
',79),l=[t];function h(p,r,k,o,c,d){return a(),i("div",null,l)}const E=s(e,[["render",h]]);export{u as __pageData,E as default}; diff --git a/assets/en_dev_api_comm_channel.md.Db8NECOS.js b/assets/en_dev_api_comm_channel.md.VoA9irwY.js similarity index 68% rename from assets/en_dev_api_comm_channel.md.Db8NECOS.js rename to assets/en_dev_api_comm_channel.md.VoA9irwY.js index 235d75c7..7906afde 100644 --- a/assets/en_dev_api_comm_channel.md.Db8NECOS.js +++ b/assets/en_dev_api_comm_channel.md.VoA9irwY.js @@ -1,4 +1,4 @@ -import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.comm.channel","description":"","frontmatter":{"title":"liteyuki.comm.channel"},"headers":[],"relativePath":"en/dev/api/comm/channel.md","filePath":"en/dev/api/comm/channel.md","lastUpdated":1725101868000}'),e={name:"en/dev/api/comm/channel.md"},l=n(`

Module liteyuki.comm.channel

本模块定义了一个通用的通道类,用于进程间通信

var SYNC_ON_RECEIVE_FUNC

  • Description: 同步接收函数

  • Type: TypeAlias

  • Default: Callable[[T], Any]

var ASYNC_ON_RECEIVE_FUNC

  • Description: 异步接收函数

  • Type: TypeAlias

  • Default: Callable[[T], Coroutine[Any, Any, Any]]

var ON_RECEIVE_FUNC

  • Description: 接收函数

  • Type: TypeAlias

  • Default: SYNC_ON_RECEIVE_FUNC | ASYNC_ON_RECEIVE_FUNC

var SYNC_FILTER_FUNC

  • Description: 同步过滤函数

  • Type: TypeAlias

  • Default: Callable[[T], bool]

var ASYNC_FILTER_FUNC

  • Description: 异步过滤函数

  • Type: TypeAlias

  • Default: Callable[[T], Coroutine[Any, Any, bool]]

var FILTER_FUNC

  • Description: 过滤函数

  • Type: TypeAlias

  • Default: SYNC_FILTER_FUNC | ASYNC_FILTER_FUNC

class Channel(Generic[T])

func __init__(self, name: str, type_check: Optional[bool] = None)

Description: 初始化通道

Arguments:

  • name: 通道ID
  • type_check: 是否开启类型检查, 若为空,则传入泛型默认开启,否则默认关闭
Source code or View on GitHub
python
def __init__(self, name: str, type_check: Optional[bool]=None):
+import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.comm.channel","description":"","frontmatter":{"title":"liteyuki.comm.channel"},"headers":[],"relativePath":"en/dev/api/comm/channel.md","filePath":"en/dev/api/comm/channel.md","lastUpdated":1725101868000}'),e={name:"en/dev/api/comm/channel.md"},l=n(`

Module liteyuki.comm.channel

本模块定义了一个通用的通道类,用于进程间通信

var SYNC_ON_RECEIVE_FUNC

  • Description: 同步接收函数

  • Type: TypeAlias

  • Default: Callable[[T], Any]

var ASYNC_ON_RECEIVE_FUNC

  • Description: 异步接收函数

  • Type: TypeAlias

  • Default: Callable[[T], Coroutine[Any, Any, Any]]

var ON_RECEIVE_FUNC

  • Description: 接收函数

  • Type: TypeAlias

  • Default: SYNC_ON_RECEIVE_FUNC | ASYNC_ON_RECEIVE_FUNC

var SYNC_FILTER_FUNC

  • Description: 同步过滤函数

  • Type: TypeAlias

  • Default: Callable[[T], bool]

var ASYNC_FILTER_FUNC

  • Description: 异步过滤函数

  • Type: TypeAlias

  • Default: Callable[[T], Coroutine[Any, Any, bool]]

var FILTER_FUNC

  • Description: 过滤函数

  • Type: TypeAlias

  • Default: SYNC_FILTER_FUNC | ASYNC_FILTER_FUNC

class Channel(Generic[T])


func __init__(self, name: str, type_check: Optional[bool] = None)

Description: 初始化通道

Arguments:

  • name: 通道ID
  • type_check: 是否开启类型检查, 若为空,则传入泛型默认开启,否则默认关闭
Source code or View on GitHub
python
def __init__(self, name: str, type_check: Optional[bool]=None):
     self.conn_send, self.conn_recv = Pipe()
     self._conn_send_inner, self._conn_recv_inner = Pipe()
     self._closed = False
@@ -20,22 +20,22 @@ import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const g
         _channel[name] = self
         logger.debug(f'Channel {name} initialized in main process')
     else:
-        logger.debug(f'Channel {name} initialized in sub process, should manually set in main process')

func send(self, data: T)

Description: 发送数据,发送函数为同步函数,没有异步的必要

Arguments:

  • data (T): 数据
Source code or View on GitHub
python
def send(self, data: T):
+        logger.debug(f'Channel {name} initialized in sub process, should manually set in main process')

func send(self, data: T)

Description: 发送数据,发送函数为同步函数,没有异步的必要

Arguments:

  • data (T): 数据
Source code or View on GitHub
python
def send(self, data: T):
     if self.type_check:
         _type = self._get_generic_type()
         if _type is not None and (not self._validate_structure(data, _type)):
             raise TypeError(f'Data must be an instance of {_type}, {type(data)} found')
     if self._closed:
         raise RuntimeError('Cannot send to a closed channel_')
-    self.conn_send.send(data)

func receive(self) -> T

Description: 同步接收数据,会阻塞线程

Return: T: 数据

Source code or View on GitHub
python
def receive(self) -> T:
+    self.conn_send.send(data)

func receive(self) -> T

Description: 同步接收数据,会阻塞线程

Return: T: 数据

Source code or View on GitHub
python
def receive(self) -> T:
     if self._closed:
         raise RuntimeError('Cannot receive from a closed channel_')
     while True:
         data = self.conn_recv.recv()
-        return data

async func async_receive(self) -> T

Description: 异步接收数据,会挂起等待

Return: T: 数据

Source code or View on GitHub
python
async def async_receive(self) -> T:
+        return data

async func async_receive(self) -> T

Description: 异步接收数据,会挂起等待

Return: T: 数据

Source code or View on GitHub
python
async def async_receive(self) -> T:
     loop = asyncio.get_running_loop()
     data = await loop.run_in_executor(None, self.receive)
-    return data

func on_receive(self, filter_func: Optional[FILTER_FUNC] = None) -> Callable[[Callable[[T], Any]], Callable[[T], Any]]

Description: 接收数据并执行函数

Arguments:

Return: Callable[[Callable[[T], Any]], Callable[[T], Any]]: 装饰器

Source code or View on GitHub
python
def on_receive(self, filter_func: Optional[FILTER_FUNC]=None) -> Callable[[Callable[[T], Any]], Callable[[T], Any]]:
+    return data

func on_receive(self, filter_func: Optional[FILTER_FUNC] = None) -> Callable[[Callable[[T], Any]], Callable[[T], Any]]

Description: 接收数据并执行函数

Arguments:

Return: Callable[[Callable[[T], Any]], Callable[[T], Any]]: 装饰器

Source code or View on GitHub
python
def on_receive(self, filter_func: Optional[FILTER_FUNC]=None) -> Callable[[Callable[[T], Any]], Callable[[T], Any]]:
     if not IS_MAIN_PROCESS:
         raise RuntimeError('on_receive can only be used in main process')
 
@@ -60,7 +60,7 @@ import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const g
             self._on_sub_receive_func_ids.append(_func_id)
         _func_id += 1
         return func
-    return decorator

var active_channel

  • Description: 子进程可用的主动和被动通道

  • Type: Channel

  • Default: Channel(name='active_channel')

var passive_channel

  • Description: 被动通道

  • Type: Channel

  • Default: Channel(name='passive_channel')

var publish_channel

  • Description: 通道传递通道,主进程创建单例,子进程初始化时实例化

  • Type: Channel[tuple[str, dict[str, Any]]]

  • Default: Channel(name='publish_channel')

var channel_deliver_active_channel

  • Description: 通道传递通道,主进程创建单例,子进程初始化时实例化

  • Type: Channel[Channel[Any]]

  • Default: NO_DEFAULT

var channel_deliver_passive_channel

  • Description: 被动通道传递通道

  • Type: Channel[tuple[str, dict[str, Any]]]

  • Default: NO_DEFAULT

func set_channel(name: str, channel: Channel)

Description: 设置通道实例

Arguments:

  • name (str): 通道名称
  • channel (Channel): 通道实例
Source code or View on GitHub
python
def set_channel(name: str, channel: 'Channel'):
+    return decorator

var active_channel

  • Description: 子进程可用的主动和被动通道

  • Type: Channel

  • Default: Channel(name='active_channel')

var passive_channel

  • Description: 被动通道

  • Type: Channel

  • Default: Channel(name='passive_channel')

var publish_channel

  • Description: 通道传递通道,主进程创建单例,子进程初始化时实例化

  • Type: Channel[tuple[str, dict[str, Any]]]

  • Default: Channel(name='publish_channel')

var channel_deliver_active_channel

  • Description: 通道传递通道,主进程创建单例,子进程初始化时实例化

  • Type: Channel[Channel[Any]]

  • Default: NO_DEFAULT

var channel_deliver_passive_channel

  • Description: 被动通道传递通道

  • Type: Channel[tuple[str, dict[str, Any]]]

  • Default: NO_DEFAULT


func set_channel(name: str, channel: Channel)

Description: 设置通道实例

Arguments:

  • name (str): 通道名称
  • channel (Channel): 通道实例
Source code or View on GitHub
python
def set_channel(name: str, channel: 'Channel'):
     if not isinstance(channel, Channel):
         raise TypeError(f'channel_ must be an instance of Channel, {type(channel)} found')
     if IS_MAIN_PROCESS:
@@ -68,27 +68,27 @@ import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const g
             raise ValueError(f'Channel {name} already exists')
         _channel[name] = channel
     else:
-        channel_deliver_passive_channel.send(('set_channel', {'name': name, 'channel_': channel}))

func set_channels(channels: dict[str, Channel])

Description: 设置通道实例

Arguments:

Source code or View on GitHub
python
def set_channels(channels: dict[str, 'Channel']):
+        channel_deliver_passive_channel.send(('set_channel', {'name': name, 'channel_': channel}))

func set_channels(channels: dict[str, Channel])

Description: 设置通道实例

Arguments:

Source code or View on GitHub
python
def set_channels(channels: dict[str, 'Channel']):
     for name, channel in channels.items():
-        set_channel(name, channel)

func get_channel(name: str) -> Channel

Description: 获取通道实例

Arguments:

  • name (str): 通道名称

Return: Channel: 通道实例

Source code or View on GitHub
python
def get_channel(name: str) -> 'Channel':
+        set_channel(name, channel)

func get_channel(name: str) -> Channel

Description: 获取通道实例

Arguments:

  • name (str): 通道名称

Return: Channel: 通道实例

Source code or View on GitHub
python
def get_channel(name: str) -> 'Channel':
     if IS_MAIN_PROCESS:
         return _channel[name]
     else:
         recv_chan = Channel[Channel[Any]]('recv_chan')
         channel_deliver_passive_channel.send(('get_channel', {'name': name, 'recv_chan': recv_chan}))
-        return recv_chan.receive()

func get_channels() -> dict[str, Channel]

Description: 获取通道实例们

Return: dict[str, Channel]: 通道实例

Source code or View on GitHub
python
def get_channels() -> dict[str, 'Channel']:
+        return recv_chan.receive()

func get_channels() -> dict[str, Channel]

Description: 获取通道实例们

Return: dict[str, Channel]: 通道实例

Source code or View on GitHub
python
def get_channels() -> dict[str, 'Channel']:
     if IS_MAIN_PROCESS:
         return _channel
     else:
         recv_chan = Channel[dict[str, Channel[Any]]]('recv_chan')
         channel_deliver_passive_channel.send(('get_channels', {'recv_chan': recv_chan}))
-        return recv_chan.receive()

var channel_deliver_active_channel

  • Description: 主动通道传递通道

  • Default: Channel(name='channel_deliver_active_channel')

var channel_deliver_passive_channel

  • Description: 被动通道传递通道

  • Default: Channel(name='channel_deliver_passive_channel')

@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'set_channel')

func on_set_channel(data: tuple[str, dict[str, Any]])

Source code or View on GitHub
python
@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'set_channel')
+        return recv_chan.receive()

var channel_deliver_active_channel

  • Description: 主动通道传递通道

  • Default: Channel(name='channel_deliver_active_channel')

var channel_deliver_passive_channel

  • Description: 被动通道传递通道

  • Default: Channel(name='channel_deliver_passive_channel')


@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'set_channel')

func on_set_channel(data: tuple[str, dict[str, Any]])

Source code or View on GitHub
python
@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'set_channel')
 def on_set_channel(data: tuple[str, dict[str, Any]]):
     name, channel = (data[1]['name'], data[1]['channel_'])
-    set_channel(name, channel)

@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'get_channel')

func on_get_channel(data: tuple[str, dict[str, Any]])

Source code or View on GitHub
python
@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'get_channel')
+    set_channel(name, channel)

@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'get_channel')

func on_get_channel(data: tuple[str, dict[str, Any]])

Source code or View on GitHub
python
@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'get_channel')
 def on_get_channel(data: tuple[str, dict[str, Any]]):
     name, recv_chan = (data[1]['name'], data[1]['recv_chan'])
-    recv_chan.send(get_channel(name))

@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'get_channels')

func on_get_channels(data: tuple[str, dict[str, Any]])

Source code or View on GitHub
python
@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'get_channels')
+    recv_chan.send(get_channel(name))

@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'get_channels')

func on_get_channels(data: tuple[str, dict[str, Any]])

Source code or View on GitHub
python
@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'get_channels')
 def on_get_channels(data: tuple[str, dict[str, Any]]):
     recv_chan = data[1]['recv_chan']
-    recv_chan.send(get_channels())
`,82),t=[l];function h(p,k,r,d,c,E){return a(),i("div",null,t)}const y=s(e,[["render",h]]);export{g as __pageData,y as default}; + recv_chan.send(get_channels())
`,94),t=[l];function h(p,k,r,d,c,E){return a(),i("div",null,t)}const y=s(e,[["render",h]]);export{g as __pageData,y as default}; diff --git a/assets/en_dev_api_comm_channel.md.Db8NECOS.lean.js b/assets/en_dev_api_comm_channel.md.VoA9irwY.lean.js similarity index 86% rename from assets/en_dev_api_comm_channel.md.Db8NECOS.lean.js rename to assets/en_dev_api_comm_channel.md.VoA9irwY.lean.js index f1c36964..b10df491 100644 --- a/assets/en_dev_api_comm_channel.md.Db8NECOS.lean.js +++ b/assets/en_dev_api_comm_channel.md.VoA9irwY.lean.js @@ -1 +1 @@ -import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.comm.channel","description":"","frontmatter":{"title":"liteyuki.comm.channel"},"headers":[],"relativePath":"en/dev/api/comm/channel.md","filePath":"en/dev/api/comm/channel.md","lastUpdated":1725101868000}'),e={name:"en/dev/api/comm/channel.md"},l=n("",82),t=[l];function h(p,k,r,d,c,E){return a(),i("div",null,t)}const y=s(e,[["render",h]]);export{g as __pageData,y as default}; +import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.comm.channel","description":"","frontmatter":{"title":"liteyuki.comm.channel"},"headers":[],"relativePath":"en/dev/api/comm/channel.md","filePath":"en/dev/api/comm/channel.md","lastUpdated":1725101868000}'),e={name:"en/dev/api/comm/channel.md"},l=n("",94),t=[l];function h(p,k,r,d,c,E){return a(),i("div",null,t)}const y=s(e,[["render",h]]);export{g as __pageData,y as default}; diff --git a/assets/en_dev_api_comm_event.md.Crpo-bJ4.js b/assets/en_dev_api_comm_event.md.Crpo-bJ4.js new file mode 100644 index 00000000..38bae7d8 --- /dev/null +++ b/assets/en_dev_api_comm_event.md.Crpo-bJ4.js @@ -0,0 +1 @@ +import{_ as e,c as s,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const _=JSON.parse('{"title":"liteyuki.comm.event","description":"","frontmatter":{"title":"liteyuki.comm.event"},"headers":[],"relativePath":"en/dev/api/comm/event.md","filePath":"en/dev/api/comm/event.md","lastUpdated":1725101868000}'),i={name:"en/dev/api/comm/event.md"},n=t('

Module liteyuki.comm.event

本模块用于轻雪主进程和子进程之间的通信的事件类

class Event


func __init__(self, name: str, data: dict[str, Any])

Source code or View on GitHub
python
def __init__(self, name: str, data: dict[str, Any]):\n    self.name = name\n    self.data = data
',6),l=[n];function h(d,o,r,c,p,k){return a(),s("div",null,l)}const u=e(i,[["render",h]]);export{_ as __pageData,u as default}; diff --git a/assets/en_dev_api_comm_event.md.DVEQ_riJ.lean.js b/assets/en_dev_api_comm_event.md.Crpo-bJ4.lean.js similarity index 73% rename from assets/en_dev_api_comm_event.md.DVEQ_riJ.lean.js rename to assets/en_dev_api_comm_event.md.Crpo-bJ4.lean.js index e393c1d2..22c9205b 100644 --- a/assets/en_dev_api_comm_event.md.DVEQ_riJ.lean.js +++ b/assets/en_dev_api_comm_event.md.Crpo-bJ4.lean.js @@ -1 +1 @@ -import{_ as e,c as s,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const _=JSON.parse('{"title":"liteyuki.comm.event","description":"","frontmatter":{"title":"liteyuki.comm.event"},"headers":[],"relativePath":"en/dev/api/comm/event.md","filePath":"en/dev/api/comm/event.md","lastUpdated":1725101868000}'),i={name:"en/dev/api/comm/event.md"},n=t("",5),l=[n];function d(h,o,r,c,p,k){return a(),s("div",null,l)}const u=e(i,[["render",d]]);export{_ as __pageData,u as default}; +import{_ as e,c as s,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const _=JSON.parse('{"title":"liteyuki.comm.event","description":"","frontmatter":{"title":"liteyuki.comm.event"},"headers":[],"relativePath":"en/dev/api/comm/event.md","filePath":"en/dev/api/comm/event.md","lastUpdated":1725101868000}'),i={name:"en/dev/api/comm/event.md"},n=t("",6),l=[n];function h(d,o,r,c,p,k){return a(),s("div",null,l)}const u=e(i,[["render",h]]);export{_ as __pageData,u as default}; diff --git a/assets/en_dev_api_comm_event.md.DVEQ_riJ.js b/assets/en_dev_api_comm_event.md.DVEQ_riJ.js deleted file mode 100644 index 5af462d4..00000000 --- a/assets/en_dev_api_comm_event.md.DVEQ_riJ.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e,c as s,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const _=JSON.parse('{"title":"liteyuki.comm.event","description":"","frontmatter":{"title":"liteyuki.comm.event"},"headers":[],"relativePath":"en/dev/api/comm/event.md","filePath":"en/dev/api/comm/event.md","lastUpdated":1725101868000}'),i={name:"en/dev/api/comm/event.md"},n=t('

Module liteyuki.comm.event

本模块用于轻雪主进程和子进程之间的通信的事件类

class Event

func __init__(self, name: str, data: dict[str, Any])

Source code or View on GitHub
python
def __init__(self, name: str, data: dict[str, Any]):\n    self.name = name\n    self.data = data
',5),l=[n];function d(h,o,r,c,p,k){return a(),s("div",null,l)}const u=e(i,[["render",d]]);export{_ as __pageData,u as default}; diff --git a/assets/en_dev_api_comm_rpc.md.CY-ENZCj.js b/assets/en_dev_api_comm_rpc.md.CY-ENZCj.js deleted file mode 100644 index 0af27239..00000000 --- a/assets/en_dev_api_comm_rpc.md.CY-ENZCj.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as i,c as s,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const u=JSON.parse('{"title":"liteyuki.comm.rpc","description":"","frontmatter":{"title":"liteyuki.comm.rpc"},"headers":[],"relativePath":"en/dev/api/comm/rpc.md","filePath":"en/dev/api/comm/rpc.md","lastUpdated":null}'),e={name:"en/dev/api/comm/rpc.md"},n=t('

Module liteyuki.comm.rpc

本模块用于实现RPC(基于IPC)通信

class RPC

func __init__(self, on_calling: ON_CALLING_FUNC) -> None

Source code or View on GitHub
python
def __init__(self, on_calling: ON_CALLING_FUNC) -> None:\n    self.on_calling = on_calling

func call(self, args: tuple, kwargs: dict) -> Any

Description: 调用

Source code or View on GitHub
python
def call(self, args: tuple, kwargs: dict) -> Any:\n    return self.on_calling(args, kwargs)
',8),l=[n];function c(o,r,p,h,d,k){return a(),s("div",null,l)}const m=i(e,[["render",c]]);export{u as __pageData,m as default}; diff --git a/assets/en_dev_api_comm_rpc.md.DKVp72_P.js b/assets/en_dev_api_comm_rpc.md.DKVp72_P.js new file mode 100644 index 00000000..e1ce822d --- /dev/null +++ b/assets/en_dev_api_comm_rpc.md.DKVp72_P.js @@ -0,0 +1 @@ +import{_ as i,c as s,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const u=JSON.parse('{"title":"liteyuki.comm.rpc","description":"","frontmatter":{"title":"liteyuki.comm.rpc"},"headers":[],"relativePath":"en/dev/api/comm/rpc.md","filePath":"en/dev/api/comm/rpc.md","lastUpdated":null}'),e={name:"en/dev/api/comm/rpc.md"},n=t('

Module liteyuki.comm.rpc

本模块用于实现RPC(基于IPC)通信

class RPC


func __init__(self, on_calling: ON_CALLING_FUNC) -> None

Source code or View on GitHub
python
def __init__(self, on_calling: ON_CALLING_FUNC) -> None:\n    self.on_calling = on_calling

func call(self, args: tuple, kwargs: dict) -> Any

Description: 调用

Source code or View on GitHub
python
def call(self, args: tuple, kwargs: dict) -> Any:\n    return self.on_calling(args, kwargs)
',10),l=[n];function c(o,r,h,p,d,k){return a(),s("div",null,l)}const m=i(e,[["render",c]]);export{u as __pageData,m as default}; diff --git a/assets/en_dev_api_comm_rpc.md.CY-ENZCj.lean.js b/assets/en_dev_api_comm_rpc.md.DKVp72_P.lean.js similarity index 69% rename from assets/en_dev_api_comm_rpc.md.CY-ENZCj.lean.js rename to assets/en_dev_api_comm_rpc.md.DKVp72_P.lean.js index aa98c8d2..640bc8b1 100644 --- a/assets/en_dev_api_comm_rpc.md.CY-ENZCj.lean.js +++ b/assets/en_dev_api_comm_rpc.md.DKVp72_P.lean.js @@ -1 +1 @@ -import{_ as i,c as s,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const u=JSON.parse('{"title":"liteyuki.comm.rpc","description":"","frontmatter":{"title":"liteyuki.comm.rpc"},"headers":[],"relativePath":"en/dev/api/comm/rpc.md","filePath":"en/dev/api/comm/rpc.md","lastUpdated":null}'),e={name:"en/dev/api/comm/rpc.md"},n=t("",8),l=[n];function c(o,r,p,h,d,k){return a(),s("div",null,l)}const m=i(e,[["render",c]]);export{u as __pageData,m as default}; +import{_ as i,c as s,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const u=JSON.parse('{"title":"liteyuki.comm.rpc","description":"","frontmatter":{"title":"liteyuki.comm.rpc"},"headers":[],"relativePath":"en/dev/api/comm/rpc.md","filePath":"en/dev/api/comm/rpc.md","lastUpdated":null}'),e={name:"en/dev/api/comm/rpc.md"},n=t("",10),l=[n];function c(o,r,h,p,d,k){return a(),s("div",null,l)}const m=i(e,[["render",c]]);export{u as __pageData,m as default}; diff --git a/assets/en_dev_api_comm_socks_channel.md.B8_s4Hv_.js b/assets/en_dev_api_comm_socks_channel.md.B8_s4Hv_.js new file mode 100644 index 00000000..f160ae5d --- /dev/null +++ b/assets/en_dev_api_comm_socks_channel.md.B8_s4Hv_.js @@ -0,0 +1 @@ +import{_ as s,c as a,o as i,a9 as e}from"./chunks/framework.C4_mTacX.js";const m=JSON.parse('{"title":"liteyuki.comm.socks_channel","description":"","frontmatter":{"title":"liteyuki.comm.socks_channel"},"headers":[],"relativePath":"en/dev/api/comm/socks_channel.md","filePath":"en/dev/api/comm/socks_channel.md","lastUpdated":null}'),n={name:"en/dev/api/comm/socks_channel.md"},t=e('

Module liteyuki.comm.socks_channel

基于socket的通道

class SocksChannel


func __init__(self, name: str)

Description: 初始化通道

Arguments:

  • name: 通道ID
Source code or View on GitHub
python
def __init__(self, name: str):\n    self._name = name\n    self._conn_send = None\n    self._conn_recv = None\n    self._closed = False

func send(self, data)

Description: 发送数据

Arguments:

  • data: 数据
Source code or View on GitHub
python
def send(self, data):\n    pass

func receive(self)

Description: 接收数据

Return: data: 数据

Source code or View on GitHub
python
def receive(self):\n    pass

func close(self)

Description: 关闭通道

Source code or View on GitHub
python
def close(self):\n    pass
',24),l=[t];function o(h,c,p,r,k,d){return i(),a("div",null,l)}const g=s(n,[["render",o]]);export{m as __pageData,g as default}; diff --git a/assets/en_dev_api_comm_socks_channel.md.CndQIApl.lean.js b/assets/en_dev_api_comm_socks_channel.md.B8_s4Hv_.lean.js similarity index 87% rename from assets/en_dev_api_comm_socks_channel.md.CndQIApl.lean.js rename to assets/en_dev_api_comm_socks_channel.md.B8_s4Hv_.lean.js index b4168eb6..f27d675e 100644 --- a/assets/en_dev_api_comm_socks_channel.md.CndQIApl.lean.js +++ b/assets/en_dev_api_comm_socks_channel.md.B8_s4Hv_.lean.js @@ -1 +1 @@ -import{_ as s,c as a,o as i,a9 as e}from"./chunks/framework.C4_mTacX.js";const m=JSON.parse('{"title":"liteyuki.comm.socks_channel","description":"","frontmatter":{"title":"liteyuki.comm.socks_channel"},"headers":[],"relativePath":"en/dev/api/comm/socks_channel.md","filePath":"en/dev/api/comm/socks_channel.md","lastUpdated":null}'),n={name:"en/dev/api/comm/socks_channel.md"},t=e("",20),l=[t];function o(h,c,p,r,k,d){return i(),a("div",null,l)}const g=s(n,[["render",o]]);export{m as __pageData,g as default}; +import{_ as s,c as a,o as i,a9 as e}from"./chunks/framework.C4_mTacX.js";const m=JSON.parse('{"title":"liteyuki.comm.socks_channel","description":"","frontmatter":{"title":"liteyuki.comm.socks_channel"},"headers":[],"relativePath":"en/dev/api/comm/socks_channel.md","filePath":"en/dev/api/comm/socks_channel.md","lastUpdated":null}'),n={name:"en/dev/api/comm/socks_channel.md"},t=e("",24),l=[t];function o(h,c,p,r,k,d){return i(),a("div",null,l)}const g=s(n,[["render",o]]);export{m as __pageData,g as default}; diff --git a/assets/en_dev_api_comm_socks_channel.md.CndQIApl.js b/assets/en_dev_api_comm_socks_channel.md.CndQIApl.js deleted file mode 100644 index c0908718..00000000 --- a/assets/en_dev_api_comm_socks_channel.md.CndQIApl.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as a,o as i,a9 as e}from"./chunks/framework.C4_mTacX.js";const m=JSON.parse('{"title":"liteyuki.comm.socks_channel","description":"","frontmatter":{"title":"liteyuki.comm.socks_channel"},"headers":[],"relativePath":"en/dev/api/comm/socks_channel.md","filePath":"en/dev/api/comm/socks_channel.md","lastUpdated":null}'),n={name:"en/dev/api/comm/socks_channel.md"},t=e('

Module liteyuki.comm.socks_channel

基于socket的通道

class SocksChannel

func __init__(self, name: str)

Description: 初始化通道

Arguments:

  • name: 通道ID
Source code or View on GitHub
python
def __init__(self, name: str):\n    self._name = name\n    self._conn_send = None\n    self._conn_recv = None\n    self._closed = False

func send(self, data)

Description: 发送数据

Arguments:

  • data: 数据
Source code or View on GitHub
python
def send(self, data):\n    pass

func receive(self)

Description: 接收数据

Return: data: 数据

Source code or View on GitHub
python
def receive(self):\n    pass

func close(self)

Description: 关闭通道

Source code or View on GitHub
python
def close(self):\n    pass
',20),l=[t];function o(h,c,p,r,k,d){return i(),a("div",null,l)}const g=s(n,[["render",o]]);export{m as __pageData,g as default}; diff --git a/assets/en_dev_api_comm_storage.md.CBNLmX3O.js b/assets/en_dev_api_comm_storage.md.WX6gT40z.js similarity index 63% rename from assets/en_dev_api_comm_storage.md.CBNLmX3O.js rename to assets/en_dev_api_comm_storage.md.WX6gT40z.js index f3e02465..fe1d7dcb 100644 --- a/assets/en_dev_api_comm_storage.md.CBNLmX3O.js +++ b/assets/en_dev_api_comm_storage.md.WX6gT40z.js @@ -1,16 +1,16 @@ -import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.comm.storage","description":"","frontmatter":{"title":"liteyuki.comm.storage"},"headers":[],"relativePath":"en/dev/api/comm/storage.md","filePath":"en/dev/api/comm/storage.md","lastUpdated":1725101868000}'),t={name:"en/dev/api/comm/storage.md"},e=n(`

Module liteyuki.comm.storage

共享内存模块。类似于redis,但是更加轻量级并且线程安全

var _on_main_subscriber_receive_funcs

  • Description: 主进程订阅者接收函数

  • Type: dict[str, list[ASYNC_ON_RECEIVE_FUNC]]

  • Default: {}

var _on_sub_subscriber_receive_funcs

  • Description: 子进程订阅者接收函数

  • Type: dict[str, list[ASYNC_ON_RECEIVE_FUNC]]

  • Default: {}

class KeyValueStore

func __init__(self)

Source code or View on GitHub
python
def __init__(self):
+import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.comm.storage","description":"","frontmatter":{"title":"liteyuki.comm.storage"},"headers":[],"relativePath":"en/dev/api/comm/storage.md","filePath":"en/dev/api/comm/storage.md","lastUpdated":1725101868000}'),t={name:"en/dev/api/comm/storage.md"},e=n(`

Module liteyuki.comm.storage

共享内存模块。类似于redis,但是更加轻量级并且线程安全

var _on_main_subscriber_receive_funcs

  • Description: 主进程订阅者接收函数

  • Type: dict[str, list[ASYNC_ON_RECEIVE_FUNC]]

  • Default: {}

var _on_sub_subscriber_receive_funcs

  • Description: 子进程订阅者接收函数

  • Type: dict[str, list[ASYNC_ON_RECEIVE_FUNC]]

  • Default: {}

class KeyValueStore


func __init__(self)

Source code or View on GitHub
python
def __init__(self):
     self._store = {}
     self.active_chan = Channel[tuple[str, Optional[dict[str, Any]]]](name='shared_memory-active')
     self.passive_chan = Channel[tuple[str, Optional[dict[str, Any]]]](name='shared_memory-passive')
     self.publish_channel = Channel[tuple[str, Any]](name='shared_memory-publish')
     self.is_main_receive_loop_running = False
-    self.is_sub_receive_loop_running = False

func set(self, key: str, value: Any) -> None

Description: 设置键值对

Arguments:

  • key: 键
  • value: 值
Source code or View on GitHub
python
def set(self, key: str, value: Any) -> None:
+    self.is_sub_receive_loop_running = False

func set(self, key: str, value: Any) -> None

Description: 设置键值对

Arguments:

  • key: 键
  • value: 值
Source code or View on GitHub
python
def set(self, key: str, value: Any) -> None:
     if IS_MAIN_PROCESS:
         lock = _get_lock(key)
         with lock:
             self._store[key] = value
     else:
-        self.passive_chan.send(('set', {'key': key, 'value': value}))

func get(self, key: str, default: Optional[Any] = None) -> Optional[Any]

Description: 获取键值对

Arguments:

  • key: 键
  • default: 默认值

Return: Any: 值

Source code or View on GitHub
python
def get(self, key: str, default: Optional[Any]=None) -> Optional[Any]:
+        self.passive_chan.send(('set', {'key': key, 'value': value}))

func get(self, key: str, default: Optional[Any] = None) -> Optional[Any]

Description: 获取键值对

Arguments:

  • key: 键
  • default: 默认值

Return: Any: 值

Source code or View on GitHub
python
def get(self, key: str, default: Optional[Any]=None) -> Optional[Any]:
     if IS_MAIN_PROCESS:
         lock = _get_lock(key)
         with lock:
@@ -18,7 +18,7 @@ import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const g
     else:
         recv_chan = Channel[Optional[Any]]('recv_chan')
         self.passive_chan.send(('get', {'key': key, 'default': default, 'recv_chan': recv_chan}))
-        return recv_chan.receive()

func delete(self, key: str, ignore_key_error: bool = True) -> None

Description: 删除键值对

Arguments:

  • key: 键
  • ignore_key_error: 是否忽略键不存在的错误
Source code or View on GitHub
python
def delete(self, key: str, ignore_key_error: bool=True) -> None:
+        return recv_chan.receive()

func delete(self, key: str, ignore_key_error: bool = True) -> None

Description: 删除键值对

Arguments:

  • key: 键
  • ignore_key_error: 是否忽略键不存在的错误
Source code or View on GitHub
python
def delete(self, key: str, ignore_key_error: bool=True) -> None:
     if IS_MAIN_PROCESS:
         lock = _get_lock(key)
         with lock:
@@ -30,14 +30,14 @@ import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const g
                     if not ignore_key_error:
                         raise e
     else:
-        self.passive_chan.send(('delete', {'key': key}))

func get_all(self) -> dict[str, Any]

Description: 获取所有键值对

Return: dict[str, Any]: 键值对

Source code or View on GitHub
python
def get_all(self) -> dict[str, Any]:
+        self.passive_chan.send(('delete', {'key': key}))

func get_all(self) -> dict[str, Any]

Description: 获取所有键值对

Return: dict[str, Any]: 键值对

Source code or View on GitHub
python
def get_all(self) -> dict[str, Any]:
     if IS_MAIN_PROCESS:
         return self._store
     else:
         recv_chan = Channel[dict[str, Any]]('recv_chan')
         self.passive_chan.send(('get_all', {'recv_chan': recv_chan}))
-        return recv_chan.receive()

func publish(self, channel_: str, data: Any) -> None

Description: 发布消息

Arguments:

  • channel_: 频道
  • data: 数据
Source code or View on GitHub
python
def publish(self, channel_: str, data: Any) -> None:
-    self.active_chan.send(('publish', {'channel': channel_, 'data': data}))

func on_subscriber_receive(self, channel_: str) -> Callable[[ON_RECEIVE_FUNC], ON_RECEIVE_FUNC]

Description: 订阅者接收消息时的回调

Arguments:

  • channel_: 频道

Return: 装饰器

Source code or View on GitHub
python
def on_subscriber_receive(self, channel_: str) -> Callable[[ON_RECEIVE_FUNC], ON_RECEIVE_FUNC]:
+        return recv_chan.receive()

func publish(self, channel_: str, data: Any) -> None

Description: 发布消息

Arguments:

  • channel_: 频道
  • data: 数据
Source code or View on GitHub
python
def publish(self, channel_: str, data: Any) -> None:
+    self.active_chan.send(('publish', {'channel': channel_, 'data': data}))

func on_subscriber_receive(self, channel_: str) -> Callable[[ON_RECEIVE_FUNC], ON_RECEIVE_FUNC]

Description: 订阅者接收消息时的回调

Arguments:

  • channel_: 频道

Return: 装饰器

Source code or View on GitHub
python
def on_subscriber_receive(self, channel_: str) -> Callable[[ON_RECEIVE_FUNC], ON_RECEIVE_FUNC]:
     if not IS_MAIN_PROCESS:
         raise RuntimeError('Cannot subscribe in sub process.')
 
@@ -57,34 +57,34 @@ import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const g
                 _on_sub_subscriber_receive_funcs[channel_] = []
             _on_sub_subscriber_receive_funcs[channel_].append(wrapper)
         return wrapper
-    return decorator

@staticmethod

async func run_subscriber_receive_funcs(channel_: str, data: Any)

Description: 运行订阅者接收函数

Arguments:

  • channel_: 频道
  • data: 数据
Source code or View on GitHub
python
@staticmethod
+    return decorator

@staticmethod

async func run_subscriber_receive_funcs(channel_: str, data: Any)

Description: 运行订阅者接收函数

Arguments:

  • channel_: 频道
  • data: 数据
Source code or View on GitHub
python
@staticmethod
 async def run_subscriber_receive_funcs(channel_: str, data: Any):
-    [asyncio.create_task(func(data)) for func in _on_main_subscriber_receive_funcs[channel_]]

async func start_receive_loop(self)

Description: 启动发布订阅接收器循环,在主进程中运行,若有子进程订阅则推送给子进程

Source code or View on GitHub
python
async def start_receive_loop(self):
+    [asyncio.create_task(func(data)) for func in _on_main_subscriber_receive_funcs[channel_]]

async func start_receive_loop(self)

Description: 启动发布订阅接收器循环,在主进程中运行,若有子进程订阅则推送给子进程

Source code or View on GitHub
python
async def start_receive_loop(self):
     if not IS_MAIN_PROCESS:
         raise RuntimeError('Cannot start receive loop in sub process.')
     while True:
         data = await self.active_chan.async_receive()
         if data[0] == 'publish':
             await self.run_subscriber_receive_funcs(data[1]['channel'], data[1]['data'])
-            self.publish_channel.send(data)

class GlobalKeyValueStore

@classmethod

func get_instance(cls)

Source code or View on GitHub
python
@classmethod
+            self.publish_channel.send(data)

class GlobalKeyValueStore


@classmethod

func get_instance(cls)

Source code or View on GitHub
python
@classmethod
 def get_instance(cls):
     if cls._instance is None:
         with cls._lock:
             if cls._instance is None:
                 cls._instance = KeyValueStore()
-    return cls._instance

attr _instance = None

attr _lock = threading.Lock()

var shared_memory

  • Description: 共享内存对象

  • Type: KeyValueStore

  • Default: GlobalKeyValueStore.get_instance()

var _ref_count

  • Description: import 引用计数, 防止获取空指针

  • Default: 0

@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'get')

func on_get(data: tuple[str, dict[str, Any]])

Source code or View on GitHub
python
@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'get')
+    return cls._instance

attr _instance = None

attr _lock = threading.Lock()

var shared_memory

  • Description: 共享内存对象

  • Type: KeyValueStore

  • Default: GlobalKeyValueStore.get_instance()

var _ref_count

  • Description: import 引用计数, 防止获取空指针

  • Default: 0


@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'get')

func on_get(data: tuple[str, dict[str, Any]])

Source code or View on GitHub
python
@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'get')
 def on_get(data: tuple[str, dict[str, Any]]):
     key = data[1]['key']
     default = data[1]['default']
     recv_chan = data[1]['recv_chan']
-    recv_chan.send(shared_memory.get(key, default))

@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'set')

func on_set(data: tuple[str, dict[str, Any]])

Source code or View on GitHub
python
@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'set')
+    recv_chan.send(shared_memory.get(key, default))

@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'set')

func on_set(data: tuple[str, dict[str, Any]])

Source code or View on GitHub
python
@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'set')
 def on_set(data: tuple[str, dict[str, Any]]):
     key = data[1]['key']
     value = data[1]['value']
-    shared_memory.set(key, value)

@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'delete')

func on_delete(data: tuple[str, dict[str, Any]])

Source code or View on GitHub
python
@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'delete')
+    shared_memory.set(key, value)

@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'delete')

func on_delete(data: tuple[str, dict[str, Any]])

Source code or View on GitHub
python
@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'delete')
 def on_delete(data: tuple[str, dict[str, Any]]):
     key = data[1]['key']
-    shared_memory.delete(key)

@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'get_all')

func on_get_all(data: tuple[str, dict[str, Any]])

Source code or View on GitHub
python
@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'get_all')
+    shared_memory.delete(key)

@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'get_all')

func on_get_all(data: tuple[str, dict[str, Any]])

Source code or View on GitHub
python
@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'get_all')
 def on_get_all(data: tuple[str, dict[str, Any]]):
     recv_chan = data[1]['recv_chan']
-    recv_chan.send(shared_memory.get_all())
`,71),l=[e];function h(k,p,r,d,E,o){return a(),i("div",null,l)}const y=s(t,[["render",h]]);export{g as __pageData,y as default}; + recv_chan.send(shared_memory.get_all())
`,85),l=[e];function h(k,p,r,d,E,o){return a(),i("div",null,l)}const y=s(t,[["render",h]]);export{g as __pageData,y as default}; diff --git a/assets/en_dev_api_comm_storage.md.CBNLmX3O.lean.js b/assets/en_dev_api_comm_storage.md.WX6gT40z.lean.js similarity index 86% rename from assets/en_dev_api_comm_storage.md.CBNLmX3O.lean.js rename to assets/en_dev_api_comm_storage.md.WX6gT40z.lean.js index 48a54230..092a265a 100644 --- a/assets/en_dev_api_comm_storage.md.CBNLmX3O.lean.js +++ b/assets/en_dev_api_comm_storage.md.WX6gT40z.lean.js @@ -1 +1 @@ -import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.comm.storage","description":"","frontmatter":{"title":"liteyuki.comm.storage"},"headers":[],"relativePath":"en/dev/api/comm/storage.md","filePath":"en/dev/api/comm/storage.md","lastUpdated":1725101868000}'),t={name:"en/dev/api/comm/storage.md"},e=n("",71),l=[e];function h(k,p,r,d,E,o){return a(),i("div",null,l)}const y=s(t,[["render",h]]);export{g as __pageData,y as default}; +import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.comm.storage","description":"","frontmatter":{"title":"liteyuki.comm.storage"},"headers":[],"relativePath":"en/dev/api/comm/storage.md","filePath":"en/dev/api/comm/storage.md","lastUpdated":1725101868000}'),t={name:"en/dev/api/comm/storage.md"},e=n("",85),l=[e];function h(k,p,r,d,E,o){return a(),i("div",null,l)}const y=s(t,[["render",h]]);export{g as __pageData,y as default}; diff --git a/assets/en_dev_api_config.md.Dm7JCHCl.js b/assets/en_dev_api_config.md.CRNFMcJd.js similarity index 64% rename from assets/en_dev_api_config.md.Dm7JCHCl.js rename to assets/en_dev_api_config.md.CRNFMcJd.js index d2254d31..e8560597 100644 --- a/assets/en_dev_api_config.md.Dm7JCHCl.js +++ b/assets/en_dev_api_config.md.CRNFMcJd.js @@ -1,19 +1,19 @@ -import{_ as s,c as a,o as n,a9 as i,j as t}from"./chunks/framework.C4_mTacX.js";const f=JSON.parse('{"title":"liteyuki.config","description":"","frontmatter":{"title":"liteyuki.config"},"headers":[],"relativePath":"en/dev/api/config.md","filePath":"en/dev/api/config.md","lastUpdated":1725101868000}'),h={name:"en/dev/api/config.md"},l=i('

Module liteyuki.config

该模块用于常用配置文件的加载 多配置文件编写原则:

  1. 尽量不要冲突: 一个键不要多次出现
  2. 分工明确: 每个配置文件给一个或一类服务提供配置
  3. 扁平化编写: 配置文件尽量扁平化,不要出现过多的嵌套
  4. 注意冲突时的优先级: 项目目录下的配置文件优先级高于config目录下的配置文件
  5. 请不要将需要动态加载的内容写入配置文件,你应该使用其他储存方式

func flat_config(config: dict[str, Any]) -> dict[str, Any]

Description: 扁平化配置文件

',5),k=t("p",{"a.b.c:":"",1:""},"{a:{b:{c:1}}} ->",-1),p=i(`

Arguments:

  • config: 配置项目

Return: 扁平化后的配置文件,但也包含原有的键值对

Source code or View on GitHub
python
def flat_config(config: dict[str, Any]) -> dict[str, Any]:
+import{_ as s,c as a,o as n,a9 as i,j as t}from"./chunks/framework.C4_mTacX.js";const f=JSON.parse('{"title":"liteyuki.config","description":"","frontmatter":{"title":"liteyuki.config"},"headers":[],"relativePath":"en/dev/api/config.md","filePath":"en/dev/api/config.md","lastUpdated":1725101868000}'),h={name:"en/dev/api/config.md"},l=i('

Module liteyuki.config

该模块用于常用配置文件的加载 多配置文件编写原则:

  1. 尽量不要冲突: 一个键不要多次出现
  2. 分工明确: 每个配置文件给一个或一类服务提供配置
  3. 扁平化编写: 配置文件尽量扁平化,不要出现过多的嵌套
  4. 注意冲突时的优先级: 项目目录下的配置文件优先级高于config目录下的配置文件
  5. 请不要将需要动态加载的内容写入配置文件,你应该使用其他储存方式

func flat_config(config: dict[str, Any]) -> dict[str, Any]

Description: 扁平化配置文件

',6),k=t("p",{"a.b.c:":"",1:""},"{a:{b:{c:1}}} ->",-1),p=i(`

Arguments:

  • config: 配置项目

Return: 扁平化后的配置文件,但也包含原有的键值对

Source code or View on GitHub
python
def flat_config(config: dict[str, Any]) -> dict[str, Any]:
     new_config = copy.deepcopy(config)
     for key, value in config.items():
         if isinstance(value, dict):
             for k, v in flat_config(value).items():
                 new_config[f'{key}.{k}'] = v
-    return new_config

func load_from_yaml(file_: str) -> dict[str, Any]

Description: Load config from yaml file

Source code or View on GitHub
python
def load_from_yaml(file_: str) -> dict[str, Any]:
+    return new_config

func load_from_yaml(file_: str) -> dict[str, Any]

Description: Load config from yaml file

Source code or View on GitHub
python
def load_from_yaml(file_: str) -> dict[str, Any]:
     logger.debug(f'Loading YAML config from {file_}')
     config = yaml.safe_load(open(file_, 'r', encoding='utf-8'))
-    return flat_config(config if config is not None else {})

func load_from_json(file_: str) -> dict[str, Any]

Description: Load config from json file

Source code or View on GitHub
python
def load_from_json(file_: str) -> dict[str, Any]:
+    return flat_config(config if config is not None else {})

func load_from_json(file_: str) -> dict[str, Any]

Description: Load config from json file

Source code or View on GitHub
python
def load_from_json(file_: str) -> dict[str, Any]:
     logger.debug(f'Loading JSON config from {file_}')
     config = json.load(open(file_, 'r', encoding='utf-8'))
-    return flat_config(config if config is not None else {})

func load_from_toml(file_: str) -> dict[str, Any]

Description: Load config from toml file

Source code or View on GitHub
python
def load_from_toml(file_: str) -> dict[str, Any]:
+    return flat_config(config if config is not None else {})

func load_from_toml(file_: str) -> dict[str, Any]

Description: Load config from toml file

Source code or View on GitHub
python
def load_from_toml(file_: str) -> dict[str, Any]:
     logger.debug(f'Loading TOML config from {file_}')
     config = toml.load(open(file_, 'r', encoding='utf-8'))
-    return flat_config(config if config is not None else {})

func load_from_files(*files: str, *, no_warning: bool = False) -> dict[str, Any]

Description: 从指定文件加载配置项,会自动识别文件格式 默认执行扁平化选项

Source code or View on GitHub
python
def load_from_files(*files: str, no_warning: bool=False) -> dict[str, Any]:
+    return flat_config(config if config is not None else {})

func load_from_files(*files: str, *, no_warning: bool = False) -> dict[str, Any]

Description: 从指定文件加载配置项,会自动识别文件格式 默认执行扁平化选项

Source code or View on GitHub
python
def load_from_files(*files: str, no_warning: bool=False) -> dict[str, Any]:
     config = {}
     for file in files:
         if os.path.exists(file):
@@ -27,7 +27,7 @@ import{_ as s,c as a,o as n,a9 as i,j as t}from"./chunks/framework.C4_mTacX.js";
                 logger.warning(f'Unsupported config file format: {file}')
         elif not no_warning:
             logger.warning(f'Config file not found: {file}')
-    return config

func load_configs_from_dirs(*directories: str, *, no_waring: bool = False) -> dict[str, Any]

Description: 从目录下加载配置文件,不递归 按照读取文件的优先级反向覆盖 默认执行扁平化选项

Source code or View on GitHub
python
def load_configs_from_dirs(*directories: str, no_waring: bool=False) -> dict[str, Any]:
+    return config

func load_configs_from_dirs(*directories: str, *, no_waring: bool = False) -> dict[str, Any]

Description: 从目录下加载配置文件,不递归 按照读取文件的优先级反向覆盖 默认执行扁平化选项

Source code or View on GitHub
python
def load_configs_from_dirs(*directories: str, no_waring: bool=False) -> dict[str, Any]:
     config = {}
     for directory in directories:
         if not os.path.exists(directory):
@@ -37,7 +37,7 @@ import{_ as s,c as a,o as n,a9 as i,j as t}from"./chunks/framework.C4_mTacX.js";
         for file in os.listdir(directory):
             if file.endswith(_SUPPORTED_CONFIG_FORMATS):
                 config.update(load_from_files(os.path.join(directory, file), no_warning=no_waring))
-    return config

func load_config_in_default(no_waring: bool = False) -> dict[str, Any]

Description: 从一个标准的轻雪项目加载配置文件 项目目录下的config.*和config目录下的所有配置文件 项目目录下的配置文件优先

Source code or View on GitHub
python
def load_config_in_default(no_waring: bool=False) -> dict[str, Any]:
+    return config

func load_config_in_default(no_waring: bool = False) -> dict[str, Any]

Description: 从一个标准的轻雪项目加载配置文件 项目目录下的config.*和config目录下的所有配置文件 项目目录下的配置文件优先

Source code or View on GitHub
python
def load_config_in_default(no_waring: bool=False) -> dict[str, Any]:
     config = load_configs_from_dirs('config', no_waring=no_waring)
     config.update(load_from_files('config.yaml', 'config.toml', 'config.json', 'config.yml', no_warning=no_waring))
-    return config
`,22),e=[l,k,p];function r(d,E,g,o,y,c){return n(),a("div",null,e)}const u=s(h,[["render",r]]);export{f as __pageData,u as default}; + return config
`,28),e=[l,k,p];function r(d,E,g,o,y,c){return n(),a("div",null,e)}const u=s(h,[["render",r]]);export{f as __pageData,u as default}; diff --git a/assets/en_dev_api_config.md.Dm7JCHCl.lean.js b/assets/en_dev_api_config.md.CRNFMcJd.lean.js similarity index 75% rename from assets/en_dev_api_config.md.Dm7JCHCl.lean.js rename to assets/en_dev_api_config.md.CRNFMcJd.lean.js index 2705e0f0..82037c8c 100644 --- a/assets/en_dev_api_config.md.Dm7JCHCl.lean.js +++ b/assets/en_dev_api_config.md.CRNFMcJd.lean.js @@ -1 +1 @@ -import{_ as s,c as a,o as n,a9 as i,j as t}from"./chunks/framework.C4_mTacX.js";const f=JSON.parse('{"title":"liteyuki.config","description":"","frontmatter":{"title":"liteyuki.config"},"headers":[],"relativePath":"en/dev/api/config.md","filePath":"en/dev/api/config.md","lastUpdated":1725101868000}'),h={name:"en/dev/api/config.md"},l=i("",5),k=t("p",{"a.b.c:":"",1:""},"{a:{b:{c:1}}} ->",-1),p=i("",22),e=[l,k,p];function r(d,E,g,o,y,c){return n(),a("div",null,e)}const u=s(h,[["render",r]]);export{f as __pageData,u as default}; +import{_ as s,c as a,o as n,a9 as i,j as t}from"./chunks/framework.C4_mTacX.js";const f=JSON.parse('{"title":"liteyuki.config","description":"","frontmatter":{"title":"liteyuki.config"},"headers":[],"relativePath":"en/dev/api/config.md","filePath":"en/dev/api/config.md","lastUpdated":1725101868000}'),h={name:"en/dev/api/config.md"},l=i("",6),k=t("p",{"a.b.c:":"",1:""},"{a:{b:{c:1}}} ->",-1),p=i("",28),e=[l,k,p];function r(d,E,g,o,y,c){return n(),a("div",null,e)}const u=s(h,[["render",r]]);export{f as __pageData,u as default}; diff --git a/assets/en_dev_api_core_manager.md.BEvIQjQG.js b/assets/en_dev_api_core_manager.md.D7QE1GyX.js similarity index 61% rename from assets/en_dev_api_core_manager.md.BEvIQjQG.js rename to assets/en_dev_api_core_manager.md.D7QE1GyX.js index 2bc621ac..a587b3ba 100644 --- a/assets/en_dev_api_core_manager.md.BEvIQjQG.js +++ b/assets/en_dev_api_core_manager.md.D7QE1GyX.js @@ -1,23 +1,23 @@ -import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const c=JSON.parse('{"title":"liteyuki.core.manager","description":"","frontmatter":{"title":"liteyuki.core.manager"},"headers":[],"relativePath":"en/dev/api/core/manager.md","filePath":"en/dev/api/core/manager.md","lastUpdated":1725101868000}'),e={name:"en/dev/api/core/manager.md"},t=n(`

Module liteyuki.core.manager

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/27 上午11:12 @Author : snowykami @Email : snowykami@outlook.com @File : manager.py @Software: PyCharm

class ChannelDeliver

func __init__(self, active: Channel[Any], passive: Channel[Any], channel_deliver_active: Channel[Channel[Any]], channel_deliver_passive: Channel[tuple[str, dict]], publish: Channel[tuple[str, Any]])

Source code or View on GitHub
python
def __init__(self, active: Channel[Any], passive: Channel[Any], channel_deliver_active: Channel[Channel[Any]], channel_deliver_passive: Channel[tuple[str, dict]], publish: Channel[tuple[str, Any]]):
+import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const c=JSON.parse('{"title":"liteyuki.core.manager","description":"","frontmatter":{"title":"liteyuki.core.manager"},"headers":[],"relativePath":"en/dev/api/core/manager.md","filePath":"en/dev/api/core/manager.md","lastUpdated":1725101868000}'),e={name:"en/dev/api/core/manager.md"},t=n(`

Module liteyuki.core.manager

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/27 上午11:12 @Author : snowykami @Email : snowykami@outlook.com @File : manager.py @Software: PyCharm

class ChannelDeliver


func __init__(self, active: Channel[Any], passive: Channel[Any], channel_deliver_active: Channel[Channel[Any]], channel_deliver_passive: Channel[tuple[str, dict]], publish: Channel[tuple[str, Any]])

Source code or View on GitHub
python
def __init__(self, active: Channel[Any], passive: Channel[Any], channel_deliver_active: Channel[Channel[Any]], channel_deliver_passive: Channel[tuple[str, dict]], publish: Channel[tuple[str, Any]]):
     self.active = active
     self.passive = passive
     self.channel_deliver_active = channel_deliver_active
     self.channel_deliver_passive = channel_deliver_passive
-    self.publish = publish

class ProcessManager

func __init__(self, lifespan: Lifespan)

Source code or View on GitHub
python
def __init__(self, lifespan: 'Lifespan'):
+    self.publish = publish

class ProcessManager


func __init__(self, lifespan: Lifespan)

Source code or View on GitHub
python
def __init__(self, lifespan: 'Lifespan'):
     self.lifespan = lifespan
     self.targets: dict[str, tuple[Callable, tuple, dict]] = {}
-    self.processes: dict[str, Process] = {}

func start_all(self)

Description: 对外启动方法,启动所有进程,创建asyncio task

Source code or View on GitHub
python
def start_all(self):
+    self.processes: dict[str, Process] = {}

func start_all(self)

Description: 对外启动方法,启动所有进程,创建asyncio task

Source code or View on GitHub
python
def start_all(self):
     for name in self.targets:
         logger.debug(f'Starting process {name}')
-        threading.Thread(target=self._run_process, args=(name,), daemon=True).start()

func add_target(self, name: str, target: TARGET_FUNC, args: tuple = (), kwargs = None)

Description: 添加进程

Arguments:

  • name: 进程名,用于获取和唯一标识
  • target: 进程函数
  • args: 进程函数参数
  • kwargs: 进程函数关键字参数,通常会默认传入chan_active和chan_passive
Source code or View on GitHub
python
def add_target(self, name: str, target: TARGET_FUNC, args: tuple=(), kwargs=None):
+        threading.Thread(target=self._run_process, args=(name,), daemon=True).start()

func add_target(self, name: str, target: TARGET_FUNC, args: tuple = (), kwargs = None)

Description: 添加进程

Arguments:

  • name: 进程名,用于获取和唯一标识
  • target: 进程函数
  • args: 进程函数参数
  • kwargs: 进程函数关键字参数,通常会默认传入chan_active和chan_passive
Source code or View on GitHub
python
def add_target(self, name: str, target: TARGET_FUNC, args: tuple=(), kwargs=None):
     if kwargs is None:
         kwargs = {}
     chan_active: Channel = Channel(name=f'{name}-active')
     chan_passive: Channel = Channel(name=f'{name}-passive')
     channel_deliver = ChannelDeliver(active=chan_active, passive=chan_passive, channel_deliver_active=channel_deliver_active_channel, channel_deliver_passive=channel_deliver_passive_channel, publish=publish_channel)
-    self.targets[name] = (_delivery_channel_wrapper, (target, channel_deliver, shared_memory, *args), kwargs)

func join_all(self)

Source code or View on GitHub
python
def join_all(self):
+    self.targets[name] = (_delivery_channel_wrapper, (target, channel_deliver, shared_memory, *args), kwargs)

func join_all(self)

Source code or View on GitHub
python
def join_all(self):
     for name, process in self.targets:
-        process.join()

func terminate(self, name: str)

Description: 终止进程并从进程字典中删除

Arguments:

  • name:
Source code or View on GitHub
python
def terminate(self, name: str):
+        process.join()

func terminate(self, name: str)

Description: 终止进程并从进程字典中删除

Arguments:

  • name:
Source code or View on GitHub
python
def terminate(self, name: str):
     if name not in self.processes:
         logger.warning(f'Process {name} not found.')
         return
@@ -26,9 +26,9 @@ import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const c
     process.join(TIMEOUT)
     if process.is_alive():
         process.kill()
-    logger.success(f'Process {name} terminated.')

func terminate_all(self)

Source code or View on GitHub
python
def terminate_all(self):
+    logger.success(f'Process {name} terminated.')

func terminate_all(self)

Source code or View on GitHub
python
def terminate_all(self):
     for name in self.targets:
-        self.terminate(name)

func is_process_alive(self, name: str) -> bool

Description: 检查进程是否存活

Arguments:

  • name:
Source code or View on GitHub
python
def is_process_alive(self, name: str) -> bool:
+        self.terminate(name)

func is_process_alive(self, name: str) -> bool

Description: 检查进程是否存活

Arguments:

  • name:
Source code or View on GitHub
python
def is_process_alive(self, name: str) -> bool:
     if name not in self.targets:
         logger.warning(f'Process {name} not found.')
-    return self.processes[name].is_alive()
`,31),l=[t];function h(k,p,r,d,E,g){return a(),i("div",null,l)}const y=s(e,[["render",h]]);export{c as __pageData,y as default}; + return self.processes[name].is_alive()
`,39),l=[t];function h(k,p,r,d,E,g){return a(),i("div",null,l)}const y=s(e,[["render",h]]);export{c as __pageData,y as default}; diff --git a/assets/en_dev_api_core_manager.md.BEvIQjQG.lean.js b/assets/en_dev_api_core_manager.md.D7QE1GyX.lean.js similarity index 86% rename from assets/en_dev_api_core_manager.md.BEvIQjQG.lean.js rename to assets/en_dev_api_core_manager.md.D7QE1GyX.lean.js index cd845dfe..dbf1dfb6 100644 --- a/assets/en_dev_api_core_manager.md.BEvIQjQG.lean.js +++ b/assets/en_dev_api_core_manager.md.D7QE1GyX.lean.js @@ -1 +1 @@ -import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const c=JSON.parse('{"title":"liteyuki.core.manager","description":"","frontmatter":{"title":"liteyuki.core.manager"},"headers":[],"relativePath":"en/dev/api/core/manager.md","filePath":"en/dev/api/core/manager.md","lastUpdated":1725101868000}'),e={name:"en/dev/api/core/manager.md"},t=n("",31),l=[t];function h(k,p,r,d,E,g){return a(),i("div",null,l)}const y=s(e,[["render",h]]);export{c as __pageData,y as default}; +import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const c=JSON.parse('{"title":"liteyuki.core.manager","description":"","frontmatter":{"title":"liteyuki.core.manager"},"headers":[],"relativePath":"en/dev/api/core/manager.md","filePath":"en/dev/api/core/manager.md","lastUpdated":1725101868000}'),e={name:"en/dev/api/core/manager.md"},t=n("",39),l=[t];function h(k,p,r,d,E,g){return a(),i("div",null,l)}const y=s(e,[["render",h]]);export{c as __pageData,y as default}; diff --git a/assets/en_dev_api_dev_observer.md.B50F8CO1.js b/assets/en_dev_api_dev_observer.md.DAh-d3XU.js similarity index 53% rename from assets/en_dev_api_dev_observer.md.B50F8CO1.js rename to assets/en_dev_api_dev_observer.md.DAh-d3XU.js index 140479b9..91c6934d 100644 --- a/assets/en_dev_api_dev_observer.md.B50F8CO1.js +++ b/assets/en_dev_api_dev_observer.md.DAh-d3XU.js @@ -1,4 +1,4 @@ -import{_ as s,c as i,o as e,a9 as a}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.dev.observer","description":"","frontmatter":{"title":"liteyuki.dev.observer"},"headers":[],"relativePath":"en/dev/api/dev/observer.md","filePath":"en/dev/api/dev/observer.md","lastUpdated":1725101868000}'),n={name:"en/dev/api/dev/observer.md"},t=a(`

Module liteyuki.dev.observer

此模块用于注册观察者函数,使用watchdog监控文件变化并重启bot 启用该模块需要在配置文件中设置dev_mode为True

var CALLBACK_FUNC

  • Description: 位置1为FileSystemEvent

  • Type: TypeAlias

  • Default: Callable[[FileSystemEvent], None]

var FILTER_FUNC

  • Description: 位置1为FileSystemEvent

  • Type: TypeAlias

  • Default: Callable[[FileSystemEvent], bool]

func debounce(wait)

Description: 防抖函数

Source code or View on GitHub
python
def debounce(wait):
+import{_ as s,c as i,o as e,a9 as a}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.dev.observer","description":"","frontmatter":{"title":"liteyuki.dev.observer"},"headers":[],"relativePath":"en/dev/api/dev/observer.md","filePath":"en/dev/api/dev/observer.md","lastUpdated":1725101868000}'),n={name:"en/dev/api/dev/observer.md"},t=a(`

Module liteyuki.dev.observer

此模块用于注册观察者函数,使用watchdog监控文件变化并重启bot 启用该模块需要在配置文件中设置dev_mode为True

var CALLBACK_FUNC

  • Description: 位置1为FileSystemEvent

  • Type: TypeAlias

  • Default: Callable[[FileSystemEvent], None]

var FILTER_FUNC

  • Description: 位置1为FileSystemEvent

  • Type: TypeAlias

  • Default: Callable[[FileSystemEvent], bool]


func debounce(wait)

Description: 防抖函数

Source code or View on GitHub
python
def debounce(wait):
 
     def decorator(func):
 
@@ -10,13 +10,13 @@ import{_ as s,c as i,o as e,a9 as a}from"./chunks/framework.C4_mTacX.js";const g
                 return func(*args, **kwargs)
         last_call_time = None
         return wrapper
-    return decorator

class CodeModifiedHandler(FileSystemEventHandler)

@debounce(1)

func on_modified(self, event)

Source code or View on GitHub
python
@debounce(1)
+    return decorator

class CodeModifiedHandler(FileSystemEventHandler)


@debounce(1)

func on_modified(self, event)

Source code or View on GitHub
python
@debounce(1)
 def on_modified(self, event):
-    raise NotImplementedError('on_modified must be implemented')

func on_created(self, event)

Source code or View on GitHub
python
def on_created(self, event):
-    self.on_modified(event)

func on_deleted(self, event)

Source code or View on GitHub
python
def on_deleted(self, event):
-    self.on_modified(event)

func on_moved(self, event)

Source code or View on GitHub
python
def on_moved(self, event):
-    self.on_modified(event)

func on_any_event(self, event)

Source code or View on GitHub
python
def on_any_event(self, event):
-    self.on_modified(event)

func on_file_system_event(directories: tuple[str], recursive: bool = True, event_filter: FILTER_FUNC = None) -> Callable[[CALLBACK_FUNC], CALLBACK_FUNC]

Description: 注册文件系统变化监听器

Arguments:

  • directories: 监听目录们
  • recursive: 是否递归监听子目录
  • event_filter: 事件过滤器, 返回True则执行回调函数

Return: 装饰器,装饰一个函数在接收到数据后执行

Source code or View on GitHub
python
def on_file_system_event(directories: tuple[str], recursive: bool=True, event_filter: FILTER_FUNC=None) -> Callable[[CALLBACK_FUNC], CALLBACK_FUNC]:
+    raise NotImplementedError('on_modified must be implemented')

func on_created(self, event)

Source code or View on GitHub
python
def on_created(self, event):
+    self.on_modified(event)

func on_deleted(self, event)

Source code or View on GitHub
python
def on_deleted(self, event):
+    self.on_modified(event)

func on_moved(self, event)

Source code or View on GitHub
python
def on_moved(self, event):
+    self.on_modified(event)

func on_any_event(self, event)

Source code or View on GitHub
python
def on_any_event(self, event):
+    self.on_modified(event)

func on_file_system_event(directories: tuple[str], recursive: bool = True, event_filter: FILTER_FUNC = None) -> Callable[[CALLBACK_FUNC], CALLBACK_FUNC]

Description: 注册文件系统变化监听器

Arguments:

  • directories: 监听目录们
  • recursive: 是否递归监听子目录
  • event_filter: 事件过滤器, 返回True则执行回调函数

Return: 装饰器,装饰一个函数在接收到数据后执行

Source code or View on GitHub
python
def on_file_system_event(directories: tuple[str], recursive: bool=True, event_filter: FILTER_FUNC=None) -> Callable[[CALLBACK_FUNC], CALLBACK_FUNC]:
 
     def decorator(func: CALLBACK_FUNC) -> CALLBACK_FUNC:
 
@@ -29,4 +29,4 @@ import{_ as s,c as i,o as e,a9 as a}from"./chunks/framework.C4_mTacX.js";const g
         for directory in directories:
             observer.schedule(code_modified_handler, directory, recursive=recursive)
         return func
-    return decorator
`,27),l=[t];function h(p,r,k,d,o,c){return e(),i("div",null,l)}const y=s(n,[["render",h]]);export{g as __pageData,y as default}; + return decorator
`,34),l=[t];function h(p,r,k,d,o,c){return e(),i("div",null,l)}const y=s(n,[["render",h]]);export{g as __pageData,y as default}; diff --git a/assets/en_dev_api_dev_observer.md.B50F8CO1.lean.js b/assets/en_dev_api_dev_observer.md.DAh-d3XU.lean.js similarity index 86% rename from assets/en_dev_api_dev_observer.md.B50F8CO1.lean.js rename to assets/en_dev_api_dev_observer.md.DAh-d3XU.lean.js index f2f787fd..9c14cb6c 100644 --- a/assets/en_dev_api_dev_observer.md.B50F8CO1.lean.js +++ b/assets/en_dev_api_dev_observer.md.DAh-d3XU.lean.js @@ -1 +1 @@ -import{_ as s,c as i,o as e,a9 as a}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.dev.observer","description":"","frontmatter":{"title":"liteyuki.dev.observer"},"headers":[],"relativePath":"en/dev/api/dev/observer.md","filePath":"en/dev/api/dev/observer.md","lastUpdated":1725101868000}'),n={name:"en/dev/api/dev/observer.md"},t=a("",27),l=[t];function h(p,r,k,d,o,c){return e(),i("div",null,l)}const y=s(n,[["render",h]]);export{g as __pageData,y as default}; +import{_ as s,c as i,o as e,a9 as a}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.dev.observer","description":"","frontmatter":{"title":"liteyuki.dev.observer"},"headers":[],"relativePath":"en/dev/api/dev/observer.md","filePath":"en/dev/api/dev/observer.md","lastUpdated":1725101868000}'),n={name:"en/dev/api/dev/observer.md"},t=a("",34),l=[t];function h(p,r,k,d,o,c){return e(),i("div",null,l)}const y=s(n,[["render",h]]);export{g as __pageData,y as default}; diff --git a/assets/en_dev_api_dev_plugin.md.CGOTYIDu.js b/assets/en_dev_api_dev_plugin.md.ByOqvpeD.js similarity index 61% rename from assets/en_dev_api_dev_plugin.md.CGOTYIDu.js rename to assets/en_dev_api_dev_plugin.md.ByOqvpeD.js index 8adaf249..ef8654d0 100644 --- a/assets/en_dev_api_dev_plugin.md.CGOTYIDu.js +++ b/assets/en_dev_api_dev_plugin.md.ByOqvpeD.js @@ -1,7 +1,7 @@ -import{_ as i,c as s,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const E=JSON.parse('{"title":"liteyuki.dev.plugin","description":"","frontmatter":{"title":"liteyuki.dev.plugin"},"headers":[],"relativePath":"en/dev/api/dev/plugin.md","filePath":"en/dev/api/dev/plugin.md","lastUpdated":1725101868000}'),e={name:"en/dev/api/dev/plugin.md"},n=t(`

Module liteyuki.dev.plugin

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/18 上午5:04 @Author : snowykami @Email : snowykami@outlook.com @File : plugin.py @Software: PyCharm

func run_plugins(*module_path: str | Path)

Description: 运行插件,无需手动初始化bot

Arguments:

  • module_path: 插件路径,参考liteyuki.load_plugin的函数签名
Source code or View on GitHub
python
def run_plugins(*module_path: str | Path):
+import{_ as i,c as s,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const E=JSON.parse('{"title":"liteyuki.dev.plugin","description":"","frontmatter":{"title":"liteyuki.dev.plugin"},"headers":[],"relativePath":"en/dev/api/dev/plugin.md","filePath":"en/dev/api/dev/plugin.md","lastUpdated":1725101868000}'),e={name:"en/dev/api/dev/plugin.md"},n=t(`

Module liteyuki.dev.plugin

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/18 上午5:04 @Author : snowykami @Email : snowykami@outlook.com @File : plugin.py @Software: PyCharm


func run_plugins(*module_path: str | Path)

Description: 运行插件,无需手动初始化bot

Arguments:

  • module_path: 插件路径,参考liteyuki.load_plugin的函数签名
Source code or View on GitHub
python
def run_plugins(*module_path: str | Path):
     cfg = load_config_in_default()
     plugins = cfg.get('liteyuki.plugins', [])
     plugins.extend(module_path)
     cfg['liteyuki.plugins'] = plugins
     bot = LiteyukiBot(**cfg)
-    bot.run()
`,8),l=[n];function p(h,k,o,r,d,u){return a(),s("div",null,l)}const c=i(e,[["render",p]]);export{E as __pageData,c as default}; + bot.run()
`,9),l=[n];function p(h,k,o,r,d,u){return a(),s("div",null,l)}const c=i(e,[["render",p]]);export{E as __pageData,c as default}; diff --git a/assets/en_dev_api_dev_plugin.md.CGOTYIDu.lean.js b/assets/en_dev_api_dev_plugin.md.ByOqvpeD.lean.js similarity index 86% rename from assets/en_dev_api_dev_plugin.md.CGOTYIDu.lean.js rename to assets/en_dev_api_dev_plugin.md.ByOqvpeD.lean.js index 9a09ba24..43feb206 100644 --- a/assets/en_dev_api_dev_plugin.md.CGOTYIDu.lean.js +++ b/assets/en_dev_api_dev_plugin.md.ByOqvpeD.lean.js @@ -1 +1 @@ -import{_ as i,c as s,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const E=JSON.parse('{"title":"liteyuki.dev.plugin","description":"","frontmatter":{"title":"liteyuki.dev.plugin"},"headers":[],"relativePath":"en/dev/api/dev/plugin.md","filePath":"en/dev/api/dev/plugin.md","lastUpdated":1725101868000}'),e={name:"en/dev/api/dev/plugin.md"},n=t("",8),l=[n];function p(h,k,o,r,d,u){return a(),s("div",null,l)}const c=i(e,[["render",p]]);export{E as __pageData,c as default}; +import{_ as i,c as s,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const E=JSON.parse('{"title":"liteyuki.dev.plugin","description":"","frontmatter":{"title":"liteyuki.dev.plugin"},"headers":[],"relativePath":"en/dev/api/dev/plugin.md","filePath":"en/dev/api/dev/plugin.md","lastUpdated":1725101868000}'),e={name:"en/dev/api/dev/plugin.md"},n=t("",9),l=[n];function p(h,k,o,r,d,u){return a(),s("div",null,l)}const c=i(e,[["render",p]]);export{E as __pageData,c as default}; diff --git a/assets/en_dev_api_log.md.DR6xjPic.js b/assets/en_dev_api_log.md.t5U3-0Tg.js similarity index 82% rename from assets/en_dev_api_log.md.DR6xjPic.js rename to assets/en_dev_api_log.md.t5U3-0Tg.js index 94252b93..c5f059e0 100644 --- a/assets/en_dev_api_log.md.DR6xjPic.js +++ b/assets/en_dev_api_log.md.t5U3-0Tg.js @@ -1,8 +1,8 @@ -import{_ as s,c as i,o as a,a9 as h}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"liteyuki.log","description":"","frontmatter":{"title":"liteyuki.log"},"headers":[],"relativePath":"en/dev/api/log.md","filePath":"en/dev/api/log.md","lastUpdated":1725101868000}'),t={name:"en/dev/api/log.md"},k=h(`

Module liteyuki.log

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/27 上午9:12 @Author : snowykami @Email : snowykami@outlook.com @File : log.py @Software: PyCharm

func get_format(level: str) -> str

Source code or View on GitHub
python
def get_format(level: str) -> str:
+import{_ as s,c as i,o as a,a9 as h}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"liteyuki.log","description":"","frontmatter":{"title":"liteyuki.log"},"headers":[],"relativePath":"en/dev/api/log.md","filePath":"en/dev/api/log.md","lastUpdated":1725101868000}'),t={name:"en/dev/api/log.md"},k=h(`

Module liteyuki.log

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/27 上午9:12 @Author : snowykami @Email : snowykami@outlook.com @File : log.py @Software: PyCharm


func get_format(level: str) -> str

Source code or View on GitHub
python
def get_format(level: str) -> str:
     if level == 'DEBUG':
         return debug_format
     else:
-        return default_format

func init_log(config: dict)

Description: 在语言加载完成后执行

Source code or View on GitHub
python
def init_log(config: dict):
+        return default_format

func init_log(config: dict)

Description: 在语言加载完成后执行

Source code or View on GitHub
python
def init_log(config: dict):
     logger.remove()
     logger.add(sys.stdout, level=0, diagnose=False, format=get_format(config.get('log_level', 'INFO')))
     show_icon = config.get('log_icon', True)
@@ -10,4 +10,4 @@ import{_ as s,c as i,o as a,a9 as h}from"./chunks/framework.C4_mTacX.js";const y
     logger.level('INFO', color='<normal>', icon=f"{('ℹ️' if show_icon else '')}INFO")
     logger.level('SUCCESS', color='<green>', icon=f"{('✅' if show_icon else '')}SUCCESS")
     logger.level('WARNING', color='<yellow>', icon=f"{('⚠️' if show_icon else '')}WARNING")
-    logger.level('ERROR', color='<red>', icon=f"{('⭕' if show_icon else '')}ERROR")
`,8),l=[k];function n(p,e,E,r,g,d){return a(),i("div",null,l)}const o=s(t,[["render",n]]);export{y as __pageData,o as default}; + logger.level('ERROR', color='<red>', icon=f"{('⭕' if show_icon else '')}ERROR")
`,10),l=[k];function n(p,e,E,r,g,d){return a(),i("div",null,l)}const o=s(t,[["render",n]]);export{y as __pageData,o as default}; diff --git a/assets/en_dev_api_log.md.DR6xjPic.lean.js b/assets/en_dev_api_log.md.t5U3-0Tg.lean.js similarity index 57% rename from assets/en_dev_api_log.md.DR6xjPic.lean.js rename to assets/en_dev_api_log.md.t5U3-0Tg.lean.js index fa3cf930..6f6f50c7 100644 --- a/assets/en_dev_api_log.md.DR6xjPic.lean.js +++ b/assets/en_dev_api_log.md.t5U3-0Tg.lean.js @@ -1 +1 @@ -import{_ as s,c as i,o as a,a9 as h}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"liteyuki.log","description":"","frontmatter":{"title":"liteyuki.log"},"headers":[],"relativePath":"en/dev/api/log.md","filePath":"en/dev/api/log.md","lastUpdated":1725101868000}'),t={name:"en/dev/api/log.md"},k=h("",8),l=[k];function n(p,e,E,r,g,d){return a(),i("div",null,l)}const o=s(t,[["render",n]]);export{y as __pageData,o as default}; +import{_ as s,c as i,o as a,a9 as h}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"liteyuki.log","description":"","frontmatter":{"title":"liteyuki.log"},"headers":[],"relativePath":"en/dev/api/log.md","filePath":"en/dev/api/log.md","lastUpdated":1725101868000}'),t={name:"en/dev/api/log.md"},k=h("",10),l=[k];function n(p,e,E,r,g,d){return a(),i("div",null,l)}const o=s(t,[["render",n]]);export{y as __pageData,o as default}; diff --git a/assets/en_dev_api_message_event.md.DPY-2dlG.js b/assets/en_dev_api_message_event.md.C6I96y2L.js similarity index 60% rename from assets/en_dev_api_message_event.md.DPY-2dlG.js rename to assets/en_dev_api_message_event.md.C6I96y2L.js index 67f56294..92e2e2fa 100644 --- a/assets/en_dev_api_message_event.md.DPY-2dlG.js +++ b/assets/en_dev_api_message_event.md.C6I96y2L.js @@ -1,4 +1,4 @@ -import{_ as s,c as i,o as a,a9 as e}from"./chunks/framework.C4_mTacX.js";const o=JSON.parse('{"title":"liteyuki.message.event","description":"","frontmatter":{"title":"liteyuki.message.event"},"headers":[],"relativePath":"en/dev/api/message/event.md","filePath":"en/dev/api/message/event.md","lastUpdated":1725101868000}'),t={name:"en/dev/api/message/event.md"},n=e(`

Module liteyuki.message.event

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:47 @Author : snowykami @Email : snowykami@outlook.com @File : event.py @Software: PyCharm

class MessageEvent

func __init__(self, bot_id: str, message: list[dict[str, Any]] | str, message_type: str, raw_message: str, session_id: str, user_id: str, session_type: str, receive_channel: Optional[Channel[MessageEvent]] = None, data: Optional[dict[str, Any]] = None)

Description: 轻雪抽象消息事件

Source code or View on GitHub
python
def __init__(self, bot_id: str, message: list[dict[str, Any]] | str, message_type: str, raw_message: str, session_id: str, user_id: str, session_type: str, receive_channel: Optional[Channel['MessageEvent']]=None, data: Optional[dict[str, Any]]=None):
+import{_ as s,c as i,o as a,a9 as e}from"./chunks/framework.C4_mTacX.js";const o=JSON.parse('{"title":"liteyuki.message.event","description":"","frontmatter":{"title":"liteyuki.message.event"},"headers":[],"relativePath":"en/dev/api/message/event.md","filePath":"en/dev/api/message/event.md","lastUpdated":1725101868000}'),t={name:"en/dev/api/message/event.md"},n=e(`

Module liteyuki.message.event

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:47 @Author : snowykami @Email : snowykami@outlook.com @File : event.py @Software: PyCharm

class MessageEvent


func __init__(self, bot_id: str, message: list[dict[str, Any]] | str, message_type: str, raw_message: str, session_id: str, user_id: str, session_type: str, receive_channel: Optional[Channel[MessageEvent]] = None, data: Optional[dict[str, Any]] = None)

Description: 轻雪抽象消息事件

Source code or View on GitHub
python
def __init__(self, bot_id: str, message: list[dict[str, Any]] | str, message_type: str, raw_message: str, session_id: str, user_id: str, session_type: str, receive_channel: Optional[Channel['MessageEvent']]=None, data: Optional[dict[str, Any]]=None):
     if data is None:
         data = {}
     self.message_type = message_type
@@ -9,7 +9,7 @@ import{_ as s,c as i,o as a,a9 as e}from"./chunks/framework.C4_mTacX.js";const o
     self.session_id = session_id
     self.session_type = session_type
     self.user_id = user_id
-    self.receive_channel = receive_channel

func reply(self, message: str | dict[str, Any])

Description: 回复消息

Arguments:

  • message:
Source code or View on GitHub
python
def reply(self, message: str | dict[str, Any]):
+    self.receive_channel = receive_channel

func reply(self, message: str | dict[str, Any])

Description: 回复消息

Arguments:

  • message:
Source code or View on GitHub
python
def reply(self, message: str | dict[str, Any]):
     reply_event = MessageEvent(message_type=self.session_type, message=message, raw_message='', data={'message': message}, bot_id=self.bot_id, session_id=self.session_id, user_id=self.user_id, session_type=self.session_type, receive_channel=None)
     if self.receive_channel:
-        self.receive_channel.send(reply_event)
`,12),h=[n];function l(k,p,r,d,E,g){return a(),i("div",null,h)}const c=s(t,[["render",l]]);export{o as __pageData,c as default}; + self.receive_channel.send(reply_event)
`,14),h=[n];function l(k,p,r,d,E,g){return a(),i("div",null,h)}const c=s(t,[["render",l]]);export{o as __pageData,c as default}; diff --git a/assets/en_dev_api_message_event.md.DPY-2dlG.lean.js b/assets/en_dev_api_message_event.md.C6I96y2L.lean.js similarity index 87% rename from assets/en_dev_api_message_event.md.DPY-2dlG.lean.js rename to assets/en_dev_api_message_event.md.C6I96y2L.lean.js index 2ca964ce..9512256e 100644 --- a/assets/en_dev_api_message_event.md.DPY-2dlG.lean.js +++ b/assets/en_dev_api_message_event.md.C6I96y2L.lean.js @@ -1 +1 @@ -import{_ as s,c as i,o as a,a9 as e}from"./chunks/framework.C4_mTacX.js";const o=JSON.parse('{"title":"liteyuki.message.event","description":"","frontmatter":{"title":"liteyuki.message.event"},"headers":[],"relativePath":"en/dev/api/message/event.md","filePath":"en/dev/api/message/event.md","lastUpdated":1725101868000}'),t={name:"en/dev/api/message/event.md"},n=e("",12),h=[n];function l(k,p,r,d,E,g){return a(),i("div",null,h)}const c=s(t,[["render",l]]);export{o as __pageData,c as default}; +import{_ as s,c as i,o as a,a9 as e}from"./chunks/framework.C4_mTacX.js";const o=JSON.parse('{"title":"liteyuki.message.event","description":"","frontmatter":{"title":"liteyuki.message.event"},"headers":[],"relativePath":"en/dev/api/message/event.md","filePath":"en/dev/api/message/event.md","lastUpdated":1725101868000}'),t={name:"en/dev/api/message/event.md"},n=e("",14),h=[n];function l(k,p,r,d,E,g){return a(),i("div",null,h)}const c=s(t,[["render",l]]);export{o as __pageData,c as default}; diff --git a/assets/en_dev_api_message_matcher.md.EXm6yebY.js b/assets/en_dev_api_message_matcher.md.CtCEbUVJ.js similarity index 53% rename from assets/en_dev_api_message_matcher.md.EXm6yebY.js rename to assets/en_dev_api_message_matcher.md.CtCEbUVJ.js index 7fd53e03..b99cc00f 100644 --- a/assets/en_dev_api_message_matcher.md.EXm6yebY.js +++ b/assets/en_dev_api_message_matcher.md.CtCEbUVJ.js @@ -1,17 +1,17 @@ -import{_ as s,c as i,o as a,a9 as e}from"./chunks/framework.C4_mTacX.js";const u=JSON.parse('{"title":"liteyuki.message.matcher","description":"","frontmatter":{"title":"liteyuki.message.matcher"},"headers":[],"relativePath":"en/dev/api/message/matcher.md","filePath":"en/dev/api/message/matcher.md","lastUpdated":1725101868000}'),n={name:"en/dev/api/message/matcher.md"},t=e(`

Module liteyuki.message.matcher

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:51 @Author : snowykami @Email : snowykami@outlook.com @File : matcher.py @Software: PyCharm

class Matcher

func __init__(self, rule: Rule, priority: int, block: bool)

Description: 匹配器

Arguments:

  • rule: 规则
  • priority: 优先级 >= 0
  • block: 是否阻断后续优先级更低的匹配器
Source code or View on GitHub
python
def __init__(self, rule: Rule, priority: int, block: bool):
+import{_ as s,c as i,o as a,a9 as e}from"./chunks/framework.C4_mTacX.js";const u=JSON.parse('{"title":"liteyuki.message.matcher","description":"","frontmatter":{"title":"liteyuki.message.matcher"},"headers":[],"relativePath":"en/dev/api/message/matcher.md","filePath":"en/dev/api/message/matcher.md","lastUpdated":1725101868000}'),n={name:"en/dev/api/message/matcher.md"},t=e(`

Module liteyuki.message.matcher

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:51 @Author : snowykami @Email : snowykami@outlook.com @File : matcher.py @Software: PyCharm

class Matcher


func __init__(self, rule: Rule, priority: int, block: bool)

Description: 匹配器

Arguments:

  • rule: 规则
  • priority: 优先级 >= 0
  • block: 是否阻断后续优先级更低的匹配器
Source code or View on GitHub
python
def __init__(self, rule: Rule, priority: int, block: bool):
     self.rule = rule
     self.priority = priority
     self.block = block
-    self.handlers: list[EventHandler] = []

func handle(self) -> Callable[[EventHandler], EventHandler]

Description: 添加处理函数,装饰器

Return: 装饰器 handler

Source code or View on GitHub
python
def handle(self) -> Callable[[EventHandler], EventHandler]:
+    self.handlers: list[EventHandler] = []

func handle(self) -> Callable[[EventHandler], EventHandler]

Description: 添加处理函数,装饰器

Return: 装饰器 handler

Source code or View on GitHub
python
def handle(self) -> Callable[[EventHandler], EventHandler]:
 
     def decorator(handler: EventHandler) -> EventHandler:
         self.handlers.append(handler)
         return handler
-    return decorator

async func run(self, event: MessageEvent) -> None

Description: 运行处理函数

Arguments:

  • event:
Source code or View on GitHub
python
async def run(self, event: MessageEvent) -> None:
+    return decorator

async func run(self, event: MessageEvent) -> None

Description: 运行处理函数

Arguments:

  • event:
Source code or View on GitHub
python
async def run(self, event: MessageEvent) -> None:
     if not await self.rule(event):
         return
     for handler in self.handlers:
         try:
             await handler(event)
         except Exception:
-            traceback.print_exc()
`,18),l=[t];function h(r,p,k,o,d,c){return a(),i("div",null,l)}const y=s(n,[["render",h]]);export{u as __pageData,y as default}; + traceback.print_exc()
`,21),l=[t];function h(r,p,k,o,d,c){return a(),i("div",null,l)}const y=s(n,[["render",h]]);export{u as __pageData,y as default}; diff --git a/assets/en_dev_api_message_matcher.md.EXm6yebY.lean.js b/assets/en_dev_api_message_matcher.md.CtCEbUVJ.lean.js similarity index 87% rename from assets/en_dev_api_message_matcher.md.EXm6yebY.lean.js rename to assets/en_dev_api_message_matcher.md.CtCEbUVJ.lean.js index 545af0b1..1d26ea83 100644 --- a/assets/en_dev_api_message_matcher.md.EXm6yebY.lean.js +++ b/assets/en_dev_api_message_matcher.md.CtCEbUVJ.lean.js @@ -1 +1 @@ -import{_ as s,c as i,o as a,a9 as e}from"./chunks/framework.C4_mTacX.js";const u=JSON.parse('{"title":"liteyuki.message.matcher","description":"","frontmatter":{"title":"liteyuki.message.matcher"},"headers":[],"relativePath":"en/dev/api/message/matcher.md","filePath":"en/dev/api/message/matcher.md","lastUpdated":1725101868000}'),n={name:"en/dev/api/message/matcher.md"},t=e("",18),l=[t];function h(r,p,k,o,d,c){return a(),i("div",null,l)}const y=s(n,[["render",h]]);export{u as __pageData,y as default}; +import{_ as s,c as i,o as a,a9 as e}from"./chunks/framework.C4_mTacX.js";const u=JSON.parse('{"title":"liteyuki.message.matcher","description":"","frontmatter":{"title":"liteyuki.message.matcher"},"headers":[],"relativePath":"en/dev/api/message/matcher.md","filePath":"en/dev/api/message/matcher.md","lastUpdated":1725101868000}'),n={name:"en/dev/api/message/matcher.md"},t=e("",21),l=[t];function h(r,p,k,o,d,c){return a(),i("div",null,l)}const y=s(n,[["render",h]]);export{u as __pageData,y as default}; diff --git a/assets/en_dev_api_message_on.md.DHqvXPYl.js b/assets/en_dev_api_message_on.md.DOPTBR4O.js similarity index 53% rename from assets/en_dev_api_message_on.md.DHqvXPYl.js rename to assets/en_dev_api_message_on.md.DOPTBR4O.js index 320299c8..0cbb9431 100644 --- a/assets/en_dev_api_message_on.md.DHqvXPYl.js +++ b/assets/en_dev_api_message_on.md.DOPTBR4O.js @@ -1,15 +1,15 @@ -import{_ as s,c as i,o as a,a9 as e}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.message.on","description":"","frontmatter":{"title":"liteyuki.message.on"},"headers":[],"relativePath":"en/dev/api/message/on.md","filePath":"en/dev/api/message/on.md","lastUpdated":1725101868000}'),t={name:"en/dev/api/message/on.md"},n=e(`

Module liteyuki.message.on

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:52 @Author : snowykami @Email : snowykami@outlook.com @File : on.py @Software: PyCharm

func add_matcher(matcher: Matcher)

Source code or View on GitHub
python
def add_matcher(matcher: Matcher):
+import{_ as s,c as i,o as a,a9 as e}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.message.on","description":"","frontmatter":{"title":"liteyuki.message.on"},"headers":[],"relativePath":"en/dev/api/message/on.md","filePath":"en/dev/api/message/on.md","lastUpdated":1725101868000}'),t={name:"en/dev/api/message/on.md"},n=e(`

Module liteyuki.message.on

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:52 @Author : snowykami @Email : snowykami@outlook.com @File : on.py @Software: PyCharm


func add_matcher(matcher: Matcher)

Source code or View on GitHub
python
def add_matcher(matcher: Matcher):
     for i, m in enumerate(_matcher_list):
         if m.priority < matcher.priority:
             _matcher_list.insert(i, matcher)
             break
     else:
-        _matcher_list.append(matcher)

func on_message(rule: Rule = empty_rule, priority: int = 0, block: bool = False) -> Matcher

Source code or View on GitHub
python
def on_message(rule: Rule=empty_rule, priority: int=0, block: bool=False) -> Matcher:
+        _matcher_list.append(matcher)

func on_message(rule: Rule = empty_rule, priority: int = 0, block: bool = False) -> Matcher

Source code or View on GitHub
python
def on_message(rule: Rule=empty_rule, priority: int=0, block: bool=False) -> Matcher:
     matcher = Matcher(rule, priority, block)
     add_matcher(matcher)
-    return matcher

func on_keywords(keywords: list[str], rule = empty_rule, priority: int = 0, block: bool = False) -> Matcher

Source code or View on GitHub
python
def on_keywords(keywords: list[str], rule=empty_rule, priority: int=0, block: bool=False) -> Matcher:
+    return matcher

func on_keywords(keywords: list[str], rule = empty_rule, priority: int = 0, block: bool = False) -> Matcher

Source code or View on GitHub
python
def on_keywords(keywords: list[str], rule=empty_rule, priority: int=0, block: bool=False) -> Matcher:
 
     @Rule
     async def on_keywords_rule(event: MessageEvent):
         return any((keyword in event.raw_message for keyword in keywords))
-    return on_message(on_keywords_rule & rule, priority, block)
`,9),l=[n];function h(r,k,p,o,d,y){return a(),i("div",null,l)}const u=s(t,[["render",h]]);export{g as __pageData,u as default}; + return on_message(on_keywords_rule & rule, priority, block)
`,12),l=[n];function h(r,k,p,o,d,y){return a(),i("div",null,l)}const u=s(t,[["render",h]]);export{g as __pageData,u as default}; diff --git a/assets/en_dev_api_message_on.md.DHqvXPYl.lean.js b/assets/en_dev_api_message_on.md.DOPTBR4O.lean.js similarity index 66% rename from assets/en_dev_api_message_on.md.DHqvXPYl.lean.js rename to assets/en_dev_api_message_on.md.DOPTBR4O.lean.js index fe5b4e2c..f23b5cba 100644 --- a/assets/en_dev_api_message_on.md.DHqvXPYl.lean.js +++ b/assets/en_dev_api_message_on.md.DOPTBR4O.lean.js @@ -1 +1 @@ -import{_ as s,c as i,o as a,a9 as e}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.message.on","description":"","frontmatter":{"title":"liteyuki.message.on"},"headers":[],"relativePath":"en/dev/api/message/on.md","filePath":"en/dev/api/message/on.md","lastUpdated":1725101868000}'),t={name:"en/dev/api/message/on.md"},n=e("",9),l=[n];function h(r,k,p,o,d,y){return a(),i("div",null,l)}const u=s(t,[["render",h]]);export{g as __pageData,u as default}; +import{_ as s,c as i,o as a,a9 as e}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.message.on","description":"","frontmatter":{"title":"liteyuki.message.on"},"headers":[],"relativePath":"en/dev/api/message/on.md","filePath":"en/dev/api/message/on.md","lastUpdated":1725101868000}'),t={name:"en/dev/api/message/on.md"},n=e("",12),l=[n];function h(r,k,p,o,d,y){return a(),i("div",null,l)}const u=s(t,[["render",h]]);export{g as __pageData,u as default}; diff --git a/assets/en_dev_api_message_rule.md.BBaFECzV.js b/assets/en_dev_api_message_rule.md.BBaFECzV.js new file mode 100644 index 00000000..af311335 --- /dev/null +++ b/assets/en_dev_api_message_rule.md.BBaFECzV.js @@ -0,0 +1 @@ +import{_ as s,c as i,o as e,a9 as a}from"./chunks/framework.C4_mTacX.js";const c=JSON.parse('{"title":"liteyuki.message.rule","description":"","frontmatter":{"title":"liteyuki.message.rule"},"headers":[],"relativePath":"en/dev/api/message/rule.md","filePath":"en/dev/api/message/rule.md","lastUpdated":1725101868000}'),t={name:"en/dev/api/message/rule.md"},n=a('

Module liteyuki.message.rule

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:55 @Author : snowykami @Email : snowykami@outlook.com @File : rule.py @Software: PyCharm

var RuleHandlerFunc

  • Description: 规则函数签名

  • Type: TypeAlias

  • Default: Callable[[MessageEvent], Coroutine[None, None, bool]]

class Rule


func __init__(self, handler: RuleHandlerFunc)

Source code or View on GitHub
python
def __init__(self, handler: RuleHandlerFunc):\n    self.handler = handler

func self | other: Rule => Rule

Source code or View on GitHub
python
def __or__(self, other: 'Rule') -> 'Rule':\n\n    async def combined_handler(event: MessageEvent) -> bool:\n        return await self.handler(event) or await other.handler(event)\n    return Rule(combined_handler)

func self & other: Rule => Rule

Source code or View on GitHub
python
def __and__(self, other: 'Rule') -> 'Rule':\n\n    async def combined_handler(event: MessageEvent) -> bool:\n        return await self.handler(event) and await other.handler(event)\n    return Rule(combined_handler)

async func self () event: MessageEvent => bool

Source code or View on GitHub
python
async def __call__(self, event: MessageEvent) -> bool:\n    if self.handler is None:\n        return True\n    return await self.handler(event)

@Rule

async func empty_rule(event: MessageEvent) -> bool

Source code or View on GitHub
python
@Rule\nasync def empty_rule(event: MessageEvent) -> bool:\n    return True

@Rule

async func is_su_rule(event: MessageEvent) -> bool

Source code or View on GitHub
python
@Rule\nasync def is_su_rule(event: MessageEvent) -> bool:\n    return str(event.user_id) in _superusers
',26),l=[n];function h(r,p,k,o,d,u){return e(),i("div",null,l)}const y=s(t,[["render",h]]);export{c as __pageData,y as default}; diff --git a/assets/en_dev_api_message_rule.md.v7qMjTeZ.lean.js b/assets/en_dev_api_message_rule.md.BBaFECzV.lean.js similarity index 86% rename from assets/en_dev_api_message_rule.md.v7qMjTeZ.lean.js rename to assets/en_dev_api_message_rule.md.BBaFECzV.lean.js index b9cc9930..366673d8 100644 --- a/assets/en_dev_api_message_rule.md.v7qMjTeZ.lean.js +++ b/assets/en_dev_api_message_rule.md.BBaFECzV.lean.js @@ -1 +1 @@ -import{_ as s,c as i,o as e,a9 as a}from"./chunks/framework.C4_mTacX.js";const c=JSON.parse('{"title":"liteyuki.message.rule","description":"","frontmatter":{"title":"liteyuki.message.rule"},"headers":[],"relativePath":"en/dev/api/message/rule.md","filePath":"en/dev/api/message/rule.md","lastUpdated":1725101868000}'),t={name:"en/dev/api/message/rule.md"},n=a("",20),l=[n];function h(r,p,k,o,d,u){return e(),i("div",null,l)}const y=s(t,[["render",h]]);export{c as __pageData,y as default}; +import{_ as s,c as i,o as e,a9 as a}from"./chunks/framework.C4_mTacX.js";const c=JSON.parse('{"title":"liteyuki.message.rule","description":"","frontmatter":{"title":"liteyuki.message.rule"},"headers":[],"relativePath":"en/dev/api/message/rule.md","filePath":"en/dev/api/message/rule.md","lastUpdated":1725101868000}'),t={name:"en/dev/api/message/rule.md"},n=a("",26),l=[n];function h(r,p,k,o,d,u){return e(),i("div",null,l)}const y=s(t,[["render",h]]);export{c as __pageData,y as default}; diff --git a/assets/en_dev_api_message_rule.md.v7qMjTeZ.js b/assets/en_dev_api_message_rule.md.v7qMjTeZ.js deleted file mode 100644 index cb9564a2..00000000 --- a/assets/en_dev_api_message_rule.md.v7qMjTeZ.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,c as i,o as e,a9 as a}from"./chunks/framework.C4_mTacX.js";const c=JSON.parse('{"title":"liteyuki.message.rule","description":"","frontmatter":{"title":"liteyuki.message.rule"},"headers":[],"relativePath":"en/dev/api/message/rule.md","filePath":"en/dev/api/message/rule.md","lastUpdated":1725101868000}'),t={name:"en/dev/api/message/rule.md"},n=a('

Module liteyuki.message.rule

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:55 @Author : snowykami @Email : snowykami@outlook.com @File : rule.py @Software: PyCharm

var RuleHandlerFunc

  • Description: 规则函数签名

  • Type: TypeAlias

  • Default: Callable[[MessageEvent], Coroutine[None, None, bool]]

class Rule

func __init__(self, handler: RuleHandlerFunc)

Source code or View on GitHub
python
def __init__(self, handler: RuleHandlerFunc):\n    self.handler = handler

func self | other: Rule => Rule

Source code or View on GitHub
python
def __or__(self, other: 'Rule') -> 'Rule':\n\n    async def combined_handler(event: MessageEvent) -> bool:\n        return await self.handler(event) or await other.handler(event)\n    return Rule(combined_handler)

func self & other: Rule => Rule

Source code or View on GitHub
python
def __and__(self, other: 'Rule') -> 'Rule':\n\n    async def combined_handler(event: MessageEvent) -> bool:\n        return await self.handler(event) and await other.handler(event)\n    return Rule(combined_handler)

async func self () event: MessageEvent => bool

Source code or View on GitHub
python
async def __call__(self, event: MessageEvent) -> bool:\n    if self.handler is None:\n        return True\n    return await self.handler(event)

@Rule

async func empty_rule(event: MessageEvent) -> bool

Source code or View on GitHub
python
@Rule\nasync def empty_rule(event: MessageEvent) -> bool:\n    return True

@Rule

async func is_su_rule(event: MessageEvent) -> bool

Source code or View on GitHub
python
@Rule\nasync def is_su_rule(event: MessageEvent) -> bool:\n    return str(event.user_id) in _superusers
',20),l=[n];function h(r,p,k,o,d,u){return e(),i("div",null,l)}const y=s(t,[["render",h]]);export{c as __pageData,y as default}; diff --git a/assets/en_dev_api_mkdoc.md.DyhS85pU.js b/assets/en_dev_api_mkdoc.md.B0odpxJC.js similarity index 89% rename from assets/en_dev_api_mkdoc.md.DyhS85pU.js rename to assets/en_dev_api_mkdoc.md.B0odpxJC.js index e3e8ffe0..ce26e5a7 100644 --- a/assets/en_dev_api_mkdoc.md.DyhS85pU.js +++ b/assets/en_dev_api_mkdoc.md.B0odpxJC.js @@ -1,16 +1,16 @@ -import{_ as s,c as i,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"liteyuki.mkdoc","description":"","frontmatter":{"title":"liteyuki.mkdoc"},"headers":[],"relativePath":"en/dev/api/mkdoc.md","filePath":"en/dev/api/mkdoc.md","lastUpdated":1725101868000}'),n={name:"en/dev/api/mkdoc.md"},h=t(`

Module liteyuki.mkdoc

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 上午6:23 @Author : snowykami @Email : snowykami@outlook.com @File : mkdoc.py @Software: PyCharm

class DefType(Enum)

attr FUNCTION = 'function'

attr METHOD = 'method'

attr STATIC_METHOD = 'staticmethod'

attr CLASS_METHOD = 'classmethod'

attr PROPERTY = 'property'

class FunctionInfo(BaseModel)

attr name: str = NO_DEFAULT

attr args: list[tuple[str, str]] = NO_DEFAULT

attr return_type: str = NO_DEFAULT

attr docstring: str = NO_DEFAULT

attr source_code: str = ''

attr type: DefType = NO_DEFAULT

attr is_async: bool = NO_DEFAULT

class AttributeInfo(BaseModel)

attr name: str = NO_DEFAULT

attr type: str = NO_DEFAULT

attr value: Any = None

attr docstring: str = ''

class ClassInfo(BaseModel)

attr name: str = NO_DEFAULT

attr docstring: str = NO_DEFAULT

attr methods: list[FunctionInfo] = NO_DEFAULT

attr attributes: list[AttributeInfo] = NO_DEFAULT

attr inherit: list[str] = NO_DEFAULT

class ModuleInfo(BaseModel)

attr module_path: str = NO_DEFAULT

attr functions: list[FunctionInfo] = NO_DEFAULT

attr classes: list[ClassInfo] = NO_DEFAULT

attr attributes: list[AttributeInfo] = NO_DEFAULT

attr docstring: str = NO_DEFAULT

func get_relative_path(base_path: str, target_path: str) -> str

Description: 获取相对路径

Arguments:

  • base_path: 基础路径
  • target_path: 目标路径
Source code or View on GitHub
python
def get_relative_path(base_path: str, target_path: str) -> str:
-    return os.path.relpath(target_path, base_path)

func write_to_files(file_data: dict[str, str])

Description: 输出文件

Arguments:

  • file_data: 文件数据 相对路径
Source code or View on GitHub
python
def write_to_files(file_data: dict[str, str]):
+import{_ as s,c as i,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"liteyuki.mkdoc","description":"","frontmatter":{"title":"liteyuki.mkdoc"},"headers":[],"relativePath":"en/dev/api/mkdoc.md","filePath":"en/dev/api/mkdoc.md","lastUpdated":1725101868000}'),n={name:"en/dev/api/mkdoc.md"},h=t(`

Module liteyuki.mkdoc

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 上午6:23 @Author : snowykami @Email : snowykami@outlook.com @File : mkdoc.py @Software: PyCharm

class DefType(Enum)

attr FUNCTION = 'function'

attr METHOD = 'method'

attr STATIC_METHOD = 'staticmethod'

attr CLASS_METHOD = 'classmethod'

attr PROPERTY = 'property'

class FunctionInfo(BaseModel)

attr name: str = NO_DEFAULT

attr args: list[tuple[str, str]] = NO_DEFAULT

attr return_type: str = NO_DEFAULT

attr docstring: str = NO_DEFAULT

attr source_code: str = ''

attr type: DefType = NO_DEFAULT

attr is_async: bool = NO_DEFAULT

class AttributeInfo(BaseModel)

attr name: str = NO_DEFAULT

attr type: str = NO_DEFAULT

attr value: Any = None

attr docstring: str = ''

class ClassInfo(BaseModel)

attr name: str = NO_DEFAULT

attr docstring: str = NO_DEFAULT

attr methods: list[FunctionInfo] = NO_DEFAULT

attr attributes: list[AttributeInfo] = NO_DEFAULT

attr inherit: list[str] = NO_DEFAULT

class ModuleInfo(BaseModel)

attr module_path: str = NO_DEFAULT

attr functions: list[FunctionInfo] = NO_DEFAULT

attr classes: list[ClassInfo] = NO_DEFAULT

attr attributes: list[AttributeInfo] = NO_DEFAULT

attr docstring: str = NO_DEFAULT


func get_relative_path(base_path: str, target_path: str) -> str

Description: 获取相对路径

Arguments:

  • base_path: 基础路径
  • target_path: 目标路径
Source code or View on GitHub
python
def get_relative_path(base_path: str, target_path: str) -> str:
+    return os.path.relpath(target_path, base_path)

func write_to_files(file_data: dict[str, str])

Description: 输出文件

Arguments:

  • file_data: 文件数据 相对路径
Source code or View on GitHub
python
def write_to_files(file_data: dict[str, str]):
     for rp, data in file_data.items():
         if not os.path.exists(os.path.dirname(rp)):
             os.makedirs(os.path.dirname(rp))
         with open(rp, 'w', encoding='utf-8') as f:
-            f.write(data)

func get_file_list(module_folder: str)

Source code or View on GitHub
python
def get_file_list(module_folder: str):
+            f.write(data)

func get_file_list(module_folder: str)

Source code or View on GitHub
python
def get_file_list(module_folder: str):
     file_list = []
     for root, dirs, files in os.walk(module_folder):
         for file in files:
             if file.endswith(('.py', '.pyi')):
                 file_list.append(os.path.join(root, file))
-    return file_list

func get_module_info_normal(file_path: str, ignore_private: bool = True) -> ModuleInfo

Description: 获取函数和类

Arguments:

  • file_path: Python 文件路径
  • ignore_private: 忽略私有函数和类

Return: 模块信息

Source code or View on GitHub
python
def get_module_info_normal(file_path: str, ignore_private: bool=True) -> ModuleInfo:
+    return file_list

func get_module_info_normal(file_path: str, ignore_private: bool = True) -> ModuleInfo

Description: 获取函数和类

Arguments:

  • file_path: Python 文件路径
  • ignore_private: 忽略私有函数和类

Return: 模块信息

Source code or View on GitHub
python
def get_module_info_normal(file_path: str, ignore_private: bool=True) -> ModuleInfo:
     with open(file_path, 'r', encoding='utf-8') as file:
         file_content = file.read()
         tree = ast.parse(file_content)
@@ -55,7 +55,7 @@ import{_ as s,c as i,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const y
                         if isinstance(node.value, ast.AnnAssign) and node.value.annotation:
                             attr_type = ast.unparse(node.value.annotation)
                         module_info.attributes.append(AttributeInfo(name=target.id, type=attr_type, value=ast.unparse(node.value) if node.value else None))
-    return module_info

func generate_markdown(module_info: ModuleInfo, front_matter = None, lang: str = 'zh-CN') -> str

Description: 生成模块的Markdown 你可在此自定义生成的Markdown格式

Arguments:

  • module_info: 模块信息
  • front_matter: 自定义选项title, index, icon, category
  • lang: 语言

Return: Markdown 字符串

Source code or View on GitHub
python
def generate_markdown(module_info: ModuleInfo, front_matter=None, lang: str='zh-CN') -> str:
+    return module_info

func generate_markdown(module_info: ModuleInfo, front_matter = None, lang: str = 'zh-CN') -> str

Description: 生成模块的Markdown 你可在此自定义生成的Markdown格式

Arguments:

  • module_info: 模块信息
  • front_matter: 自定义选项title, index, icon, category
  • lang: 语言

Return: Markdown 字符串

Source code or View on GitHub
python
def generate_markdown(module_info: ModuleInfo, front_matter=None, lang: str='zh-CN') -> str:
     content = ''
     front_matter = '---\\n' + '\\n'.join([f'{k}: {v}' for k, v in front_matter.items()]) + '\\n---\\n\\n'
     content += front_matter
@@ -96,7 +96,7 @@ import{_ as s,c as i,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const y
             content += f'### ***var*** \`{attr.name}: {attr.type} = {attr.value}\`\\n\\n'
         attr.docstring = attr.docstring.replace('\\n', '\\n\\n')
         content += f'{attr.docstring}\\n\\n'
-    return content

func generate_docs(module_folder: str, output_dir: str, with_top: bool = False, lang: str = 'zh-CN', ignored_paths = None)

Description: 生成文档

Arguments:

  • module_folder: 模块文件夹
  • output_dir: 输出文件夹
  • with_top: 是否包含顶层文件夹 False时例如docs/api/module_a, docs/api/module_b, True时例如docs/api/module/module_a.md, docs/api/module/module_b.md
  • ignored_paths: 忽略的路径
  • lang: 语言
Source code or View on GitHub
python
def generate_docs(module_folder: str, output_dir: str, with_top: bool=False, lang: str='zh-CN', ignored_paths=None):
+    return content

func generate_docs(module_folder: str, output_dir: str, with_top: bool = False, lang: str = 'zh-CN', ignored_paths = None)

Description: 生成文档

Arguments:

  • module_folder: 模块文件夹
  • output_dir: 输出文件夹
  • with_top: 是否包含顶层文件夹 False时例如docs/api/module_a, docs/api/module_b, True时例如docs/api/module/module_a.md, docs/api/module/module_b.md
  • ignored_paths: 忽略的路径
  • lang: 语言
Source code or View on GitHub
python
def generate_docs(module_folder: str, output_dir: str, with_top: bool=False, lang: str='zh-CN', ignored_paths=None):
     if ignored_paths is None:
         ignored_paths = []
     file_data: dict[str, str] = {}
@@ -120,4 +120,4 @@ import{_ as s,c as i,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const y
         md_content = generate_markdown(module_info, front_matter)
         print(f'Generate {pyfile_path} -> {abs_md_path}')
         file_data[abs_md_path] = md_content
-    write_to_files(file_data)

var no_module_name_pyfile_path

  • Description: 去头路径

  • Default: get_relative_path(module_folder, pyfile_path)

`,65),k=[h];function l(p,e,r,E,d,g){return a(),i("div",null,k)}const o=s(n,[["render",l]]);export{y as __pageData,o as default}; + write_to_files(file_data)

var no_module_name_pyfile_path

  • Description: 去头路径

  • Default: get_relative_path(module_folder, pyfile_path)

`,71),k=[h];function l(p,e,r,E,d,g){return a(),i("div",null,k)}const o=s(n,[["render",l]]);export{y as __pageData,o as default}; diff --git a/assets/en_dev_api_mkdoc.md.DyhS85pU.lean.js b/assets/en_dev_api_mkdoc.md.B0odpxJC.lean.js similarity index 85% rename from assets/en_dev_api_mkdoc.md.DyhS85pU.lean.js rename to assets/en_dev_api_mkdoc.md.B0odpxJC.lean.js index 0f32b322..aea3477b 100644 --- a/assets/en_dev_api_mkdoc.md.DyhS85pU.lean.js +++ b/assets/en_dev_api_mkdoc.md.B0odpxJC.lean.js @@ -1 +1 @@ -import{_ as s,c as i,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"liteyuki.mkdoc","description":"","frontmatter":{"title":"liteyuki.mkdoc"},"headers":[],"relativePath":"en/dev/api/mkdoc.md","filePath":"en/dev/api/mkdoc.md","lastUpdated":1725101868000}'),n={name:"en/dev/api/mkdoc.md"},h=t("",65),k=[h];function l(p,e,r,E,d,g){return a(),i("div",null,k)}const o=s(n,[["render",l]]);export{y as __pageData,o as default}; +import{_ as s,c as i,o as a,a9 as t}from"./chunks/framework.C4_mTacX.js";const y=JSON.parse('{"title":"liteyuki.mkdoc","description":"","frontmatter":{"title":"liteyuki.mkdoc"},"headers":[],"relativePath":"en/dev/api/mkdoc.md","filePath":"en/dev/api/mkdoc.md","lastUpdated":1725101868000}'),n={name:"en/dev/api/mkdoc.md"},h=t("",71),k=[h];function l(p,e,r,E,d,g){return a(),i("div",null,k)}const o=s(n,[["render",l]]);export{y as __pageData,o as default}; diff --git a/assets/en_dev_api_plugin_index.md.BlDLlzQ8.js b/assets/en_dev_api_plugin_index.md.BlDLlzQ8.js deleted file mode 100644 index 856208e8..00000000 --- a/assets/en_dev_api_plugin_index.md.BlDLlzQ8.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as i,c as t,o as e,a9 as s}from"./chunks/framework.C4_mTacX.js";const _=JSON.parse('{"title":"liteyuki.plugin","description":"","frontmatter":{"title":"liteyuki.plugin","collapsed":true},"headers":[],"relativePath":"en/dev/api/plugin/index.md","filePath":"en/dev/api/plugin/index.md","lastUpdated":null}'),a={name:"en/dev/api/plugin/index.md"},n=s('

Module liteyuki.plugin

func get_loaded_plugins() -> dict[str, Plugin]

Description: 获取已加载的插件

Return: dict[str, Plugin]: 插件字典

Source code or View on GitHub
python
def get_loaded_plugins() -> dict[str, Plugin]:\n    return _plugins
',5),l=[n];function d(o,p,r,u,g,c){return e(),t("div",null,l)}const k=i(a,[["render",d]]);export{_ as __pageData,k as default}; diff --git a/assets/en_dev_api_plugin_index.md.ibr3u-4e.js b/assets/en_dev_api_plugin_index.md.ibr3u-4e.js new file mode 100644 index 00000000..5071ebcb --- /dev/null +++ b/assets/en_dev_api_plugin_index.md.ibr3u-4e.js @@ -0,0 +1 @@ +import{_ as i,c as t,o as e,a9 as s}from"./chunks/framework.C4_mTacX.js";const _=JSON.parse('{"title":"liteyuki.plugin","description":"","frontmatter":{"title":"liteyuki.plugin","collapsed":true},"headers":[],"relativePath":"en/dev/api/plugin/index.md","filePath":"en/dev/api/plugin/index.md","lastUpdated":null}'),a={name:"en/dev/api/plugin/index.md"},n=s('

Module liteyuki.plugin


func get_loaded_plugins() -> dict[str, Plugin]

Description: 获取已加载的插件

Return: dict[str, Plugin]: 插件字典

Source code or View on GitHub
python
def get_loaded_plugins() -> dict[str, Plugin]:\n    return _plugins
',6),l=[n];function d(o,p,r,u,g,c){return e(),t("div",null,l)}const k=i(a,[["render",d]]);export{_ as __pageData,k as default}; diff --git a/assets/en_dev_api_plugin_index.md.BlDLlzQ8.lean.js b/assets/en_dev_api_plugin_index.md.ibr3u-4e.lean.js similarity index 86% rename from assets/en_dev_api_plugin_index.md.BlDLlzQ8.lean.js rename to assets/en_dev_api_plugin_index.md.ibr3u-4e.lean.js index a609ca8d..e75357c9 100644 --- a/assets/en_dev_api_plugin_index.md.BlDLlzQ8.lean.js +++ b/assets/en_dev_api_plugin_index.md.ibr3u-4e.lean.js @@ -1 +1 @@ -import{_ as i,c as t,o as e,a9 as s}from"./chunks/framework.C4_mTacX.js";const _=JSON.parse('{"title":"liteyuki.plugin","description":"","frontmatter":{"title":"liteyuki.plugin","collapsed":true},"headers":[],"relativePath":"en/dev/api/plugin/index.md","filePath":"en/dev/api/plugin/index.md","lastUpdated":null}'),a={name:"en/dev/api/plugin/index.md"},n=s("",5),l=[n];function d(o,p,r,u,g,c){return e(),t("div",null,l)}const k=i(a,[["render",d]]);export{_ as __pageData,k as default}; +import{_ as i,c as t,o as e,a9 as s}from"./chunks/framework.C4_mTacX.js";const _=JSON.parse('{"title":"liteyuki.plugin","description":"","frontmatter":{"title":"liteyuki.plugin","collapsed":true},"headers":[],"relativePath":"en/dev/api/plugin/index.md","filePath":"en/dev/api/plugin/index.md","lastUpdated":null}'),a={name:"en/dev/api/plugin/index.md"},n=s("",6),l=[n];function d(o,p,r,u,g,c){return e(),t("div",null,l)}const k=i(a,[["render",d]]);export{_ as __pageData,k as default}; diff --git a/assets/en_dev_api_plugin_load.md.CNTMTSZw.js b/assets/en_dev_api_plugin_load.md.BqElTQmm.js similarity index 84% rename from assets/en_dev_api_plugin_load.md.CNTMTSZw.js rename to assets/en_dev_api_plugin_load.md.BqElTQmm.js index bb975197..9331ae66 100644 --- a/assets/en_dev_api_plugin_load.md.CNTMTSZw.js +++ b/assets/en_dev_api_plugin_load.md.BqElTQmm.js @@ -1,4 +1,4 @@ -import{_ as h,D as l,c as t,j as i,a as s,I as k,w as p,a9 as a,o as e}from"./chunks/framework.C4_mTacX.js";const B=JSON.parse('{"title":"liteyuki.plugin.load","description":"","frontmatter":{"title":"liteyuki.plugin.load"},"headers":[],"relativePath":"en/dev/api/plugin/load.md","filePath":"en/dev/api/plugin/load.md","lastUpdated":1725101868000}'),E={name:"en/dev/api/plugin/load.md"},d=a(`

Module liteyuki.plugin.load

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/23 下午11:59 @Author : snowykami @Email : snowykami@outlook.com @File : load.py @Software: PyCharm

func load_plugin(module_path: str | Path) -> Optional[Plugin]

Description: 加载单个插件,可以是本地插件或是通过 pip 安装的插件。

Arguments:

  • module_path: 插件名称 path.to.your.plugin
  • 或插件路径 pathlib.Path(path/to/your/plugin):
Source code or View on GitHub
python
def load_plugin(module_path: str | Path) -> Optional[Plugin]:
+import{_ as h,D as l,c as t,j as i,a as s,I as k,w as p,a9 as a,o as e}from"./chunks/framework.C4_mTacX.js";const B=JSON.parse('{"title":"liteyuki.plugin.load","description":"","frontmatter":{"title":"liteyuki.plugin.load"},"headers":[],"relativePath":"en/dev/api/plugin/load.md","filePath":"en/dev/api/plugin/load.md","lastUpdated":1725101868000}'),E={name:"en/dev/api/plugin/load.md"},d=a(`

Module liteyuki.plugin.load

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/23 下午11:59 @Author : snowykami @Email : snowykami@outlook.com @File : load.py @Software: PyCharm


func load_plugin(module_path: str | Path) -> Optional[Plugin]

Description: 加载单个插件,可以是本地插件或是通过 pip 安装的插件。

Arguments:

  • module_path: 插件名称 path.to.your.plugin
  • 或插件路径 pathlib.Path(path/to/your/plugin):
Source code or View on GitHub
python
def load_plugin(module_path: str | Path) -> Optional[Plugin]:
     module_path = path_to_module_name(Path(module_path)) if isinstance(module_path, Path) else module_path
     try:
         module = import_module(module_path)
@@ -22,7 +22,7 @@ import{_ as h,D as l,c as t,j as i,a as s,I as k,w as p,a9 as a,o as e}from"./ch
     except Exception as e:
         logger.opt(colors=True).success(f'Failed to load liteyuki plugin "<r>{module_path}</r>"')
         traceback.print_exc()
-        return None

func load_plugins(*plugin_dir: str, *, ignore_warning: bool = True) -> set[Plugin]

Description: 导入文件夹下多个插件

Arguments:

  • plugin_dir: 文件夹路径
  • ignore_warning: 是否忽略警告,通常是目录不存在或目录为空
Source code or View on GitHub
python
def load_plugins(*plugin_dir: str, ignore_warning: bool=True) -> set[Plugin]:
+        return None

func load_plugins(*plugin_dir: str, *, ignore_warning: bool = True) -> set[Plugin]

Description: 导入文件夹下多个插件

Arguments:

  • plugin_dir: 文件夹路径
  • ignore_warning: 是否忽略警告,通常是目录不存在或目录为空
Source code or View on GitHub
python
def load_plugins(*plugin_dir: str, ignore_warning: bool=True) -> set[Plugin]:
     plugins = set()
     for dir_path in plugin_dir:
         if not os.path.exists(dir_path):
@@ -48,7 +48,7 @@ import{_ as h,D as l,c as t,j as i,a as s,I as k,w as p,a9 as a,o as e}from"./ch
                 load_plugin(module_name)
                 if _plugins.get(module_name):
                     plugins.add(_plugins[module_name])
-    return plugins

func format_display_name(display_name: str, plugin_type: PluginType) -> str

Description: 设置插件名称颜色,根据不同类型插件设置颜色

Arguments:

  • display_name: 插件名称
  • plugin_type: 插件类型
`,17),r=i("strong",null,"Return",-1),g=a(`
Source code or View on GitHub
python
def format_display_name(display_name: str, plugin_type: PluginType) -> str:
+    return plugins

func format_display_name(display_name: str, plugin_type: PluginType) -> str

Description: 设置插件名称颜色,根据不同类型插件设置颜色

Arguments:

  • display_name: 插件名称
  • plugin_type: 插件类型
`,20),r=i("strong",null,"Return",-1),g=a(`
Source code or View on GitHub
python
def format_display_name(display_name: str, plugin_type: PluginType) -> str:
     color = 'y'
     match plugin_type:
         case PluginType.APPLICATION:
diff --git a/assets/en_dev_api_plugin_load.md.CNTMTSZw.lean.js b/assets/en_dev_api_plugin_load.md.BqElTQmm.lean.js
similarity index 90%
rename from assets/en_dev_api_plugin_load.md.CNTMTSZw.lean.js
rename to assets/en_dev_api_plugin_load.md.BqElTQmm.lean.js
index 559b15a0..708ddae7 100644
--- a/assets/en_dev_api_plugin_load.md.CNTMTSZw.lean.js
+++ b/assets/en_dev_api_plugin_load.md.BqElTQmm.lean.js
@@ -1 +1 @@
-import{_ as h,D as l,c as t,j as i,a as s,I as k,w as p,a9 as a,o as e}from"./chunks/framework.C4_mTacX.js";const B=JSON.parse('{"title":"liteyuki.plugin.load","description":"","frontmatter":{"title":"liteyuki.plugin.load"},"headers":[],"relativePath":"en/dev/api/plugin/load.md","filePath":"en/dev/api/plugin/load.md","lastUpdated":1725101868000}'),E={name:"en/dev/api/plugin/load.md"},d=a("",17),r=i("strong",null,"Return",-1),g=a("",1);function y(F,o,u,_,C,c){const n=l("y");return e(),t("div",null,[d,i("p",null,[r,s(": str: 设置后的插件名称 "),k(n,null,{default:p(()=>[s("name")]),_:1})]),g])}const A=h(E,[["render",y]]);export{B as __pageData,A as default};
+import{_ as h,D as l,c as t,j as i,a as s,I as k,w as p,a9 as a,o as e}from"./chunks/framework.C4_mTacX.js";const B=JSON.parse('{"title":"liteyuki.plugin.load","description":"","frontmatter":{"title":"liteyuki.plugin.load"},"headers":[],"relativePath":"en/dev/api/plugin/load.md","filePath":"en/dev/api/plugin/load.md","lastUpdated":1725101868000}'),E={name:"en/dev/api/plugin/load.md"},d=a("",20),r=i("strong",null,"Return",-1),g=a("",1);function y(F,o,u,_,C,c){const n=l("y");return e(),t("div",null,[d,i("p",null,[r,s(": str: 设置后的插件名称 "),k(n,null,{default:p(()=>[s("name")]),_:1})]),g])}const A=h(E,[["render",y]]);export{B as __pageData,A as default};
diff --git a/assets/en_dev_api_plugin_model.md.hMsXQnst.js b/assets/en_dev_api_plugin_model.md.C8mVVzkp.js
similarity index 62%
rename from assets/en_dev_api_plugin_model.md.hMsXQnst.js
rename to assets/en_dev_api_plugin_model.md.C8mVVzkp.js
index f8338bc6..f3e6a277 100644
--- a/assets/en_dev_api_plugin_model.md.hMsXQnst.js
+++ b/assets/en_dev_api_plugin_model.md.C8mVVzkp.js
@@ -1 +1 @@
-import{_ as a,c as e,o as t,a9 as r}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.plugin.model","description":"","frontmatter":{"title":"liteyuki.plugin.model"},"headers":[],"relativePath":"en/dev/api/plugin/model.md","filePath":"en/dev/api/plugin/model.md","lastUpdated":1725101868000}'),o={name:"en/dev/api/plugin/model.md"},s=r('

Module liteyuki.plugin.model

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/24 上午12:02 @Author : snowykami @Email : snowykami@outlook.com @File : model.py @Software: PyCharm

class PluginType(Enum)

attr APPLICATION = 'application'

attr SERVICE = 'service'

attr MODULE = 'module'

attr UNCLASSIFIED = 'unclassified'

attr TEST = 'test'

class PluginMetadata(BaseModel)

attr name: str = NO_DEFAULT

attr description: str = ''

attr usage: str = ''

attr type: PluginType = PluginType.UNCLASSIFIED

attr author: str = ''

attr homepage: str = ''

attr extra: dict[str, Any] = {}

class Plugin(BaseModel)

func hash self

Source code or View on GitHub
python
def __hash__(self):\n    return hash(self.module_name)

attr model_config = {'arbitrary_types_allowed': True}

attr name: str = NO_DEFAULT

attr module: ModuleType = NO_DEFAULT

attr module_name: str = NO_DEFAULT

attr metadata: Optional[PluginMetadata] = None

',25),i=[s];function l(n,d,h,c,u,m){return t(),e("div",null,i)}const k=a(o,[["render",l]]);export{g as __pageData,k as default}; +import{_ as a,c as e,o as t,a9 as r}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.plugin.model","description":"","frontmatter":{"title":"liteyuki.plugin.model"},"headers":[],"relativePath":"en/dev/api/plugin/model.md","filePath":"en/dev/api/plugin/model.md","lastUpdated":1725101868000}'),o={name:"en/dev/api/plugin/model.md"},s=r('

Module liteyuki.plugin.model

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/24 上午12:02 @Author : snowykami @Email : snowykami@outlook.com @File : model.py @Software: PyCharm

class PluginType(Enum)

attr APPLICATION = 'application'

attr SERVICE = 'service'

attr MODULE = 'module'

attr UNCLASSIFIED = 'unclassified'

attr TEST = 'test'

class PluginMetadata(BaseModel)

attr name: str = NO_DEFAULT

attr description: str = ''

attr usage: str = ''

attr type: PluginType = PluginType.UNCLASSIFIED

attr author: str = ''

attr homepage: str = ''

attr extra: dict[str, Any] = {}

class Plugin(BaseModel)


func hash self

Source code or View on GitHub
python
def __hash__(self):\n    return hash(self.module_name)

attr model_config = {'arbitrary_types_allowed': True}

attr name: str = NO_DEFAULT

attr module: ModuleType = NO_DEFAULT

attr module_name: str = NO_DEFAULT

attr metadata: Optional[PluginMetadata] = None

',26),i=[s];function l(n,d,h,c,u,m){return t(),e("div",null,i)}const k=a(o,[["render",l]]);export{g as __pageData,k as default}; diff --git a/assets/en_dev_api_plugin_model.md.hMsXQnst.lean.js b/assets/en_dev_api_plugin_model.md.C8mVVzkp.lean.js similarity index 86% rename from assets/en_dev_api_plugin_model.md.hMsXQnst.lean.js rename to assets/en_dev_api_plugin_model.md.C8mVVzkp.lean.js index 92c5c681..d713477f 100644 --- a/assets/en_dev_api_plugin_model.md.hMsXQnst.lean.js +++ b/assets/en_dev_api_plugin_model.md.C8mVVzkp.lean.js @@ -1 +1 @@ -import{_ as a,c as e,o as t,a9 as r}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.plugin.model","description":"","frontmatter":{"title":"liteyuki.plugin.model"},"headers":[],"relativePath":"en/dev/api/plugin/model.md","filePath":"en/dev/api/plugin/model.md","lastUpdated":1725101868000}'),o={name:"en/dev/api/plugin/model.md"},s=r("",25),i=[s];function l(n,d,h,c,u,m){return t(),e("div",null,i)}const k=a(o,[["render",l]]);export{g as __pageData,k as default}; +import{_ as a,c as e,o as t,a9 as r}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.plugin.model","description":"","frontmatter":{"title":"liteyuki.plugin.model"},"headers":[],"relativePath":"en/dev/api/plugin/model.md","filePath":"en/dev/api/plugin/model.md","lastUpdated":1725101868000}'),o={name:"en/dev/api/plugin/model.md"},s=r("",26),i=[s];function l(n,d,h,c,u,m){return t(),e("div",null,i)}const k=a(o,[["render",l]]);export{g as __pageData,k as default}; diff --git a/assets/en_dev_api_plugins_liteecho.md.BkpA_Gke.js b/assets/en_dev_api_plugins_liteecho.md.BkpA_Gke.js new file mode 100644 index 00000000..847430c8 --- /dev/null +++ b/assets/en_dev_api_plugins_liteecho.md.BkpA_Gke.js @@ -0,0 +1 @@ +import{_ as e,c as i,o as s,a9 as t}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.plugins.liteecho","description":"","frontmatter":{"title":"liteyuki.plugins.liteecho"},"headers":[],"relativePath":"en/dev/api/plugins/liteecho.md","filePath":"en/dev/api/plugins/liteecho.md","lastUpdated":1725101868000}'),a={name:"en/dev/api/plugins/liteecho.md"},l=t('

Module liteyuki.plugins.liteecho

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/22 下午12:31 @Author : snowykami @Email : snowykami@outlook.com @File : liteecho.py @Software: PyCharm


@on_startswith(['liteecho'], rule=is_su_rule).handle()

async func liteecho(event: MessageEvent)

Source code or View on GitHub
python
@on_startswith(['liteecho'], rule=is_su_rule).handle()\nasync def liteecho(event: MessageEvent):\n    event.reply(event.raw_message.strip()[8:].strip())
',7),n=[l];function h(o,p,r,c,k,d){return s(),i("div",null,n)}const y=e(a,[["render",h]]);export{g as __pageData,y as default}; diff --git a/assets/en_dev_api_plugins_liteecho.md.Bq_UeUyc.lean.js b/assets/en_dev_api_plugins_liteecho.md.BkpA_Gke.lean.js similarity index 87% rename from assets/en_dev_api_plugins_liteecho.md.Bq_UeUyc.lean.js rename to assets/en_dev_api_plugins_liteecho.md.BkpA_Gke.lean.js index e16d46cc..d07770ae 100644 --- a/assets/en_dev_api_plugins_liteecho.md.Bq_UeUyc.lean.js +++ b/assets/en_dev_api_plugins_liteecho.md.BkpA_Gke.lean.js @@ -1 +1 @@ -import{_ as e,c as i,o as s,a9 as t}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.plugins.liteecho","description":"","frontmatter":{"title":"liteyuki.plugins.liteecho"},"headers":[],"relativePath":"en/dev/api/plugins/liteecho.md","filePath":"en/dev/api/plugins/liteecho.md","lastUpdated":1725101868000}'),a={name:"en/dev/api/plugins/liteecho.md"},l=t("",6),n=[l];function h(o,p,r,c,k,d){return s(),i("div",null,n)}const y=e(a,[["render",h]]);export{g as __pageData,y as default}; +import{_ as e,c as i,o as s,a9 as t}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.plugins.liteecho","description":"","frontmatter":{"title":"liteyuki.plugins.liteecho"},"headers":[],"relativePath":"en/dev/api/plugins/liteecho.md","filePath":"en/dev/api/plugins/liteecho.md","lastUpdated":1725101868000}'),a={name:"en/dev/api/plugins/liteecho.md"},l=t("",7),n=[l];function h(o,p,r,c,k,d){return s(),i("div",null,n)}const y=e(a,[["render",h]]);export{g as __pageData,y as default}; diff --git a/assets/en_dev_api_plugins_liteecho.md.Bq_UeUyc.js b/assets/en_dev_api_plugins_liteecho.md.Bq_UeUyc.js deleted file mode 100644 index 00fe6e49..00000000 --- a/assets/en_dev_api_plugins_liteecho.md.Bq_UeUyc.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e,c as i,o as s,a9 as t}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.plugins.liteecho","description":"","frontmatter":{"title":"liteyuki.plugins.liteecho"},"headers":[],"relativePath":"en/dev/api/plugins/liteecho.md","filePath":"en/dev/api/plugins/liteecho.md","lastUpdated":1725101868000}'),a={name:"en/dev/api/plugins/liteecho.md"},l=t('

Module liteyuki.plugins.liteecho

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/22 下午12:31 @Author : snowykami @Email : snowykami@outlook.com @File : liteecho.py @Software: PyCharm

@on_startswith(['liteecho'], rule=is_su_rule).handle()

async func liteecho(event: MessageEvent)

Source code or View on GitHub
python
@on_startswith(['liteecho'], rule=is_su_rule).handle()\nasync def liteecho(event: MessageEvent):\n    event.reply(event.raw_message.strip()[8:].strip())
',6),n=[l];function h(o,p,r,c,k,d){return s(),i("div",null,n)}const y=e(a,[["render",h]]);export{g as __pageData,y as default}; diff --git a/assets/en_dev_api_plugins_plugin_loader_index.md.Dyg-8Oyz.js b/assets/en_dev_api_plugins_plugin_loader_index.md.Dyg-8Oyz.js deleted file mode 100644 index 6e94102c..00000000 --- a/assets/en_dev_api_plugins_plugin_loader_index.md.Dyg-8Oyz.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as i,c as s,o as a,a9 as e}from"./chunks/framework.C4_mTacX.js";const _=JSON.parse('{"title":"liteyuki.plugins.plugin_loader","description":"","frontmatter":{"title":"liteyuki.plugins.plugin_loader","collapsed":true},"headers":[],"relativePath":"en/dev/api/plugins/plugin_loader/index.md","filePath":"en/dev/api/plugins/plugin_loader/index.md","lastUpdated":null}'),l={name:"en/dev/api/plugins/plugin_loader/index.md"},n=e('

Module liteyuki.plugins.plugin_loader

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/11 下午10:02 @Author : snowykami @Email : snowykami@outlook.com @File : init.py.py @Software: PyCharm

func default_plugins_loader()

Description: 默认插件加载器,应在初始化时调用

Source code or View on GitHub
python
def default_plugins_loader():\n    for plugin in get_config('liteyuki.plugins', []):\n        load_plugin(plugin)\n    for plugin_dir in get_config('liteyuki.plugin_dirs', ['src/liteyuki_plugins']):\n        load_plugins(plugin_dir)
',6),t=[n];function p(o,r,d,h,u,k){return a(),s("div",null,t)}const c=i(l,[["render",p]]);export{_ as __pageData,c as default}; diff --git a/assets/en_dev_api_plugins_plugin_loader_index.md.cG7vDNwD.js b/assets/en_dev_api_plugins_plugin_loader_index.md.cG7vDNwD.js new file mode 100644 index 00000000..bc6e2c9a --- /dev/null +++ b/assets/en_dev_api_plugins_plugin_loader_index.md.cG7vDNwD.js @@ -0,0 +1 @@ +import{_ as i,c as s,o as a,a9 as e}from"./chunks/framework.C4_mTacX.js";const _=JSON.parse('{"title":"liteyuki.plugins.plugin_loader","description":"","frontmatter":{"title":"liteyuki.plugins.plugin_loader","collapsed":true},"headers":[],"relativePath":"en/dev/api/plugins/plugin_loader/index.md","filePath":"en/dev/api/plugins/plugin_loader/index.md","lastUpdated":null}'),l={name:"en/dev/api/plugins/plugin_loader/index.md"},n=e('

Module liteyuki.plugins.plugin_loader

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/11 下午10:02 @Author : snowykami @Email : snowykami@outlook.com @File : init.py.py @Software: PyCharm


func default_plugins_loader()

Description: 默认插件加载器,应在初始化时调用

Source code or View on GitHub
python
def default_plugins_loader():\n    for plugin in get_config('liteyuki.plugins', []):\n        load_plugin(plugin)\n    for plugin_dir in get_config('liteyuki.plugin_dirs', ['src/liteyuki_plugins']):\n        load_plugins(plugin_dir)
',7),t=[n];function p(o,r,d,h,u,k){return a(),s("div",null,t)}const c=i(l,[["render",p]]);export{_ as __pageData,c as default}; diff --git a/assets/en_dev_api_plugins_plugin_loader_index.md.Dyg-8Oyz.lean.js b/assets/en_dev_api_plugins_plugin_loader_index.md.cG7vDNwD.lean.js similarity index 88% rename from assets/en_dev_api_plugins_plugin_loader_index.md.Dyg-8Oyz.lean.js rename to assets/en_dev_api_plugins_plugin_loader_index.md.cG7vDNwD.lean.js index 09bf3dc0..1813a0ce 100644 --- a/assets/en_dev_api_plugins_plugin_loader_index.md.Dyg-8Oyz.lean.js +++ b/assets/en_dev_api_plugins_plugin_loader_index.md.cG7vDNwD.lean.js @@ -1 +1 @@ -import{_ as i,c as s,o as a,a9 as e}from"./chunks/framework.C4_mTacX.js";const _=JSON.parse('{"title":"liteyuki.plugins.plugin_loader","description":"","frontmatter":{"title":"liteyuki.plugins.plugin_loader","collapsed":true},"headers":[],"relativePath":"en/dev/api/plugins/plugin_loader/index.md","filePath":"en/dev/api/plugins/plugin_loader/index.md","lastUpdated":null}'),l={name:"en/dev/api/plugins/plugin_loader/index.md"},n=e("",6),t=[n];function p(o,r,d,h,u,k){return a(),s("div",null,t)}const c=i(l,[["render",p]]);export{_ as __pageData,c as default}; +import{_ as i,c as s,o as a,a9 as e}from"./chunks/framework.C4_mTacX.js";const _=JSON.parse('{"title":"liteyuki.plugins.plugin_loader","description":"","frontmatter":{"title":"liteyuki.plugins.plugin_loader","collapsed":true},"headers":[],"relativePath":"en/dev/api/plugins/plugin_loader/index.md","filePath":"en/dev/api/plugins/plugin_loader/index.md","lastUpdated":null}'),l={name:"en/dev/api/plugins/plugin_loader/index.md"},n=e("",7),t=[n];function p(o,r,d,h,u,k){return a(),s("div",null,t)}const c=i(l,[["render",p]]);export{_ as __pageData,c as default}; diff --git a/assets/en_dev_api_utils.md.pu8aZDZV.js b/assets/en_dev_api_utils.md.DKuaapxu.js similarity index 59% rename from assets/en_dev_api_utils.md.pu8aZDZV.js rename to assets/en_dev_api_utils.md.DKuaapxu.js index fb858d20..63b378f4 100644 --- a/assets/en_dev_api_utils.md.pu8aZDZV.js +++ b/assets/en_dev_api_utils.md.DKuaapxu.js @@ -1,10 +1,10 @@ -import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.utils","description":"","frontmatter":{"title":"liteyuki.utils"},"headers":[],"relativePath":"en/dev/api/utils.md","filePath":"en/dev/api/utils.md","lastUpdated":1725101868000}'),t={name:"en/dev/api/utils.md"},l=n(`

Module liteyuki.utils

一些常用的工具类,部分来源于 nonebot 并遵循其许可进行修改

func is_coroutine_callable(call: Callable[..., Any]) -> bool

Description: 判断是否为协程可调用对象

Arguments:

  • call: 可调用对象

Return: bool: 是否为协程可调用对象

Source code or View on GitHub
python
def is_coroutine_callable(call: Callable[..., Any]) -> bool:
+import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.utils","description":"","frontmatter":{"title":"liteyuki.utils"},"headers":[],"relativePath":"en/dev/api/utils.md","filePath":"en/dev/api/utils.md","lastUpdated":1725101868000}'),t={name:"en/dev/api/utils.md"},l=n(`

Module liteyuki.utils

一些常用的工具类,部分来源于 nonebot 并遵循其许可进行修改


func is_coroutine_callable(call: Callable[..., Any]) -> bool

Description: 判断是否为协程可调用对象

Arguments:

  • call: 可调用对象

Return: bool: 是否为协程可调用对象

Source code or View on GitHub
python
def is_coroutine_callable(call: Callable[..., Any]) -> bool:
     if inspect.isroutine(call):
         return inspect.iscoroutinefunction(call)
     if inspect.isclass(call):
         return False
     func_ = getattr(call, '__call__', None)
-    return inspect.iscoroutinefunction(func_)

func run_coroutine(*coro: Coroutine)

Description: 运行协程

Arguments:

  • coro:
Source code or View on GitHub
python
def run_coroutine(*coro: Coroutine):
+    return inspect.iscoroutinefunction(func_)

func run_coroutine(*coro: Coroutine)

Description: 运行协程

Arguments:

  • coro:
Source code or View on GitHub
python
def run_coroutine(*coro: Coroutine):
     try:
         loop = asyncio.get_running_loop()
         if loop.is_running():
@@ -19,15 +19,15 @@ import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const g
         loop.run_until_complete(asyncio.gather(*coro))
         loop.close()
     except Exception as e:
-        logger.error(f'Exception occurred: {e}')

func run_coroutine_in_thread(*coro: Coroutine)

Description: 在新线程中运行协程

Arguments:

  • coro:
Source code or View on GitHub
python
def run_coroutine_in_thread(*coro: Coroutine):
-    threading.Thread(target=run_coroutine, args=coro, daemon=True).start()

func path_to_module_name(path: Path) -> str

Description: 转换路径为模块名

Arguments:

  • path: 路径a/b/c/d -> a.b.c.d

Return: str: 模块名

Source code or View on GitHub
python
def path_to_module_name(path: Path) -> str:
+        logger.error(f'Exception occurred: {e}')

func run_coroutine_in_thread(*coro: Coroutine)

Description: 在新线程中运行协程

Arguments:

  • coro:
Source code or View on GitHub
python
def run_coroutine_in_thread(*coro: Coroutine):
+    threading.Thread(target=run_coroutine, args=coro, daemon=True).start()

func path_to_module_name(path: Path) -> str

Description: 转换路径为模块名

Arguments:

  • path: 路径a/b/c/d -> a.b.c.d

Return: str: 模块名

Source code or View on GitHub
python
def path_to_module_name(path: Path) -> str:
     rel_path = path.resolve().relative_to(Path.cwd().resolve())
     if rel_path.stem == '__init__':
         return '.'.join(rel_path.parts[:-1])
     else:
-        return '.'.join(rel_path.parts[:-1] + (rel_path.stem,))

func async_wrapper(func: Callable[..., Any]) -> Callable[..., Coroutine]

Description: 异步包装器

Arguments:

  • func: Sync Callable

Return: Coroutine: Asynchronous Callable

Source code or View on GitHub
python
def async_wrapper(func: Callable[..., Any]) -> Callable[..., Coroutine]:
+        return '.'.join(rel_path.parts[:-1] + (rel_path.stem,))

func async_wrapper(func: Callable[..., Any]) -> Callable[..., Coroutine]

Description: 异步包装器

Arguments:

  • func: Sync Callable

Return: Coroutine: Asynchronous Callable

Source code or View on GitHub
python
def async_wrapper(func: Callable[..., Any]) -> Callable[..., Coroutine]:
 
     async def wrapper(*args, **kwargs):
         return func(*args, **kwargs)
     wrapper.__signature__ = inspect.signature(func)
-    return wrapper
`,30),e=[l];function h(p,k,r,o,d,c){return a(),i("div",null,e)}const u=s(t,[["render",h]]);export{g as __pageData,u as default}; + return wrapper
`,35),e=[l];function h(p,k,r,o,d,c){return a(),i("div",null,e)}const u=s(t,[["render",h]]);export{g as __pageData,u as default}; diff --git a/assets/en_dev_api_utils.md.pu8aZDZV.lean.js b/assets/en_dev_api_utils.md.DKuaapxu.lean.js similarity index 85% rename from assets/en_dev_api_utils.md.pu8aZDZV.lean.js rename to assets/en_dev_api_utils.md.DKuaapxu.lean.js index 5669d0b5..ffb650fa 100644 --- a/assets/en_dev_api_utils.md.pu8aZDZV.lean.js +++ b/assets/en_dev_api_utils.md.DKuaapxu.lean.js @@ -1 +1 @@ -import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.utils","description":"","frontmatter":{"title":"liteyuki.utils"},"headers":[],"relativePath":"en/dev/api/utils.md","filePath":"en/dev/api/utils.md","lastUpdated":1725101868000}'),t={name:"en/dev/api/utils.md"},l=n("",30),e=[l];function h(p,k,r,o,d,c){return a(),i("div",null,e)}const u=s(t,[["render",h]]);export{g as __pageData,u as default}; +import{_ as s,c as i,o as a,a9 as n}from"./chunks/framework.C4_mTacX.js";const g=JSON.parse('{"title":"liteyuki.utils","description":"","frontmatter":{"title":"liteyuki.utils"},"headers":[],"relativePath":"en/dev/api/utils.md","filePath":"en/dev/api/utils.md","lastUpdated":1725101868000}'),t={name:"en/dev/api/utils.md"},l=n("",35),e=[l];function h(p,k,r,o,d,c){return a(),i("div",null,e)}const u=s(t,[["render",h]]);export{g as __pageData,u as default}; diff --git a/assets/en_dev_guide.md.C76-pPPo.js b/assets/en_dev_guide.md.DMm2-_b5.js similarity index 98% rename from assets/en_dev_guide.md.C76-pPPo.js rename to assets/en_dev_guide.md.DMm2-_b5.js index d962d0f1..7c530b4d 100644 --- a/assets/en_dev_guide.md.C76-pPPo.js +++ b/assets/en_dev_guide.md.DMm2-_b5.js @@ -1 +1 @@ -import{C as e}from"./chunks/ContributorBar.BzBe6oi1.js";import{c as o,I as t,a9 as i,o as r}from"./chunks/framework.C4_mTacX.js";import"./chunks/theme.pz_Nliu9.js";const a=i('

Development Guide

How to Develop

Please read the Plugin Development and API Reference documents if you are developing a plugin.

If you need to submit code to the Liteyuki repository, please read the following:

  1. First fork a copy of the Liteyuki repository to your personal/organization account.
  2. Develop in your repository.
  3. Create a new branch in your repository and submit your code to this branch.
  4. Create a Pull Request in your repository to merge your branch into the main branch of the Liteyuki repository.
  • Participation in development assumes that you are already familiar with the basic usage of the Python language and the Liteyuki framework.
  • If you are developing documentation, please ensure that you are familiar with Markdown syntax and basic front-end knowledge.
  • Contact the repository maintainer in case of conflicts.

Suggestions

  • During development, you can use tools such as mypy, flake8, and black for code checking and formatting.
  • Enable developer mode by setting dev_mode: true in config.yml to see more debugging information in the console.

Project Structure

  • main.py: Bot entry file
  • liteyuki: Framework directory (liteyukibot)
  • src: Bot application source code directory
    • liteyuki_plugins: Liteyuki plugin directory
    • nonebot_plugins: Nonebot plugin directory
    • resources: Built-in resource packs directory
    • utils: Utility directory
  • tests: Unit test directory
  • docs: Documentation directory
    • en: English documentation
    • zh: Chinese documentation
  • docker: Docker related content directory

The liteyuki framework is included in the LiteyukiBot application, so this project is both the LiteyukiBot application repository and the liteyuki framework repository.

The src directory is the application part, please develop business logic in this directory. liteyuki_plugins and nonebot_plugins directories are plugin directories, please develop plugins in these directories.

Standardization

  • Code should follow PEP8 and Google Python Style Guide.
  • In addition, code submitted to the Liteyuki repository should follow the following guidelines:
    • Ensure that the code is runnable and harmless.
    • Ensure that the type hints in the code are correct.
    • Ensure that the comment style is Google Docstring or Liteyuki Docstring(recommended) to ensure that Litedoc can parse and generate documentation correctly.
    • Strings should be enclosed in double quotes " as much as possible, and single quotes ' should be used when nesting strings.
    • If there is a part for ordinary users, ensure that the documentation is complete (each language has corresponding documentation).
  • commit message should follow the following guidelines:
    • You should commit the code after completing a feature or fixing a bug, and not mix the code of multiple features or bugs together.
    • We use gitmoji to mark the type of commit, such as :sparkles: for introducing new features, :bug: for fixing bugs, etc., please refer to gitmoji for details.
    • The format of the commit message is <emoji> [type:] <message>, such as :sparkles: feat: add new field to event, where the type field is the type of commit, not much is required, but please fill in as much as possible; the message field is a brief description, in summary, what you did.
    • There is no restriction on the language of the commit message, and bilingual use is possible if conditions permit.
  • The documentation should follow Markdown syntax and support vitepress-related content:
    • Revise the documentation for each language when editing.
    • Ensure that the links in the document are correct and do not lead to inaccessible links.
    • Ensure that the User Documentation is easy to understand and the Development Documentation is detailed.

Finally

  • This project is a non-profit open-source project, and we welcome anyone to participate in development. Your contributions will make Liteyuki better.
',16),p=JSON.parse('{"title":"Development Guide","description":"","frontmatter":{"title":"Development Guide","order":0},"headers":[],"relativePath":"en/dev/guide.md","filePath":"en/dev/guide.md","lastUpdated":1725389024000}'),l={name:"en/dev/guide.md"},g=Object.assign(l,{setup(n){return(d,s)=>(r(),o("div",null,[a,t(e)]))}});export{p as __pageData,g as default}; +import{C as e}from"./chunks/ContributorBar.DSe5HslA.js";import{c as o,I as t,a9 as i,o as r}from"./chunks/framework.C4_mTacX.js";import"./chunks/theme.CVtOlEkl.js";const a=i('

Development Guide

How to Develop

Please read the Plugin Development and API Reference documents if you are developing a plugin.

If you need to submit code to the Liteyuki repository, please read the following:

  1. First fork a copy of the Liteyuki repository to your personal/organization account.
  2. Develop in your repository.
  3. Create a new branch in your repository and submit your code to this branch.
  4. Create a Pull Request in your repository to merge your branch into the main branch of the Liteyuki repository.
  • Participation in development assumes that you are already familiar with the basic usage of the Python language and the Liteyuki framework.
  • If you are developing documentation, please ensure that you are familiar with Markdown syntax and basic front-end knowledge.
  • Contact the repository maintainer in case of conflicts.

Suggestions

  • During development, you can use tools such as mypy, flake8, and black for code checking and formatting.
  • Enable developer mode by setting dev_mode: true in config.yml to see more debugging information in the console.

Project Structure

  • main.py: Bot entry file
  • liteyuki: Framework directory (liteyukibot)
  • src: Bot application source code directory
    • liteyuki_plugins: Liteyuki plugin directory
    • nonebot_plugins: Nonebot plugin directory
    • resources: Built-in resource packs directory
    • utils: Utility directory
  • tests: Unit test directory
  • docs: Documentation directory
    • en: English documentation
    • zh: Chinese documentation
  • docker: Docker related content directory

The liteyuki framework is included in the LiteyukiBot application, so this project is both the LiteyukiBot application repository and the liteyuki framework repository.

The src directory is the application part, please develop business logic in this directory. liteyuki_plugins and nonebot_plugins directories are plugin directories, please develop plugins in these directories.

Standardization

  • Code should follow PEP8 and Google Python Style Guide.
  • In addition, code submitted to the Liteyuki repository should follow the following guidelines:
    • Ensure that the code is runnable and harmless.
    • Ensure that the type hints in the code are correct.
    • Ensure that the comment style is Google Docstring or Liteyuki Docstring(recommended) to ensure that Litedoc can parse and generate documentation correctly.
    • Strings should be enclosed in double quotes " as much as possible, and single quotes ' should be used when nesting strings.
    • If there is a part for ordinary users, ensure that the documentation is complete (each language has corresponding documentation).
  • commit message should follow the following guidelines:
    • You should commit the code after completing a feature or fixing a bug, and not mix the code of multiple features or bugs together.
    • We use gitmoji to mark the type of commit, such as :sparkles: for introducing new features, :bug: for fixing bugs, etc., please refer to gitmoji for details.
    • The format of the commit message is <emoji> [type:] <message>, such as :sparkles: feat: add new field to event, where the type field is the type of commit, not much is required, but please fill in as much as possible; the message field is a brief description, in summary, what you did.
    • There is no restriction on the language of the commit message, and bilingual use is possible if conditions permit.
  • The documentation should follow Markdown syntax and support vitepress-related content:
    • Revise the documentation for each language when editing.
    • Ensure that the links in the document are correct and do not lead to inaccessible links.
    • Ensure that the User Documentation is easy to understand and the Development Documentation is detailed.

Finally

  • This project is a non-profit open-source project, and we welcome anyone to participate in development. Your contributions will make Liteyuki better.
',16),p=JSON.parse('{"title":"Development Guide","description":"","frontmatter":{"title":"Development Guide","order":0},"headers":[],"relativePath":"en/dev/guide.md","filePath":"en/dev/guide.md","lastUpdated":1725389024000}'),l={name:"en/dev/guide.md"},g=Object.assign(l,{setup(n){return(d,s)=>(r(),o("div",null,[a,t(e)]))}});export{p as __pageData,g as default}; diff --git a/assets/en_dev_guide.md.C76-pPPo.lean.js b/assets/en_dev_guide.md.DMm2-_b5.lean.js similarity index 76% rename from assets/en_dev_guide.md.C76-pPPo.lean.js rename to assets/en_dev_guide.md.DMm2-_b5.lean.js index a9b1fca0..b6ac26f5 100644 --- a/assets/en_dev_guide.md.C76-pPPo.lean.js +++ b/assets/en_dev_guide.md.DMm2-_b5.lean.js @@ -1 +1 @@ -import{C as e}from"./chunks/ContributorBar.BzBe6oi1.js";import{c as o,I as t,a9 as i,o as r}from"./chunks/framework.C4_mTacX.js";import"./chunks/theme.pz_Nliu9.js";const a=i("",16),p=JSON.parse('{"title":"Development Guide","description":"","frontmatter":{"title":"Development Guide","order":0},"headers":[],"relativePath":"en/dev/guide.md","filePath":"en/dev/guide.md","lastUpdated":1725389024000}'),l={name:"en/dev/guide.md"},g=Object.assign(l,{setup(n){return(d,s)=>(r(),o("div",null,[a,t(e)]))}});export{p as __pageData,g as default}; +import{C as e}from"./chunks/ContributorBar.DSe5HslA.js";import{c as o,I as t,a9 as i,o as r}from"./chunks/framework.C4_mTacX.js";import"./chunks/theme.CVtOlEkl.js";const a=i("",16),p=JSON.parse('{"title":"Development Guide","description":"","frontmatter":{"title":"Development Guide","order":0},"headers":[],"relativePath":"en/dev/guide.md","filePath":"en/dev/guide.md","lastUpdated":1725389024000}'),l={name:"en/dev/guide.md"},g=Object.assign(l,{setup(n){return(d,s)=>(r(),o("div",null,[a,t(e)]))}});export{p as __pageData,g as default}; diff --git a/deploy/config.html b/deploy/config.html index 83a90559..5e1c9bb7 100644 --- a/deploy/config.html +++ b/deploy/config.html @@ -8,9 +8,9 @@ - + - + @@ -50,7 +50,7 @@ dev_mode: false # 开发者模式,开启后将会启动监视者,监视文件变化并自动重载 ...

示例:与NoneBot对接的OneBot实现端配置

生产环境中推荐反向WebSocket 不同的实现端给出的字段可能不同,但是基本上都是一样的,这里给出一个参考值

字段参考值说明
协议反向WebSocket推荐使用反向ws协议进行通信,即轻雪作为服务端
地址ws://127.0.0.1:20216/onebot/v11/ws地址取决于配置文件,本机默认为127.0.0.1:20216
AccessToken""如果你给轻雪配置了AccessToken,请在此填写相同的值

其他

  • 轻雪不局限于OneBot适配器,你可以使用NoneBot2支持的任何适配器或使用轻雪讯息传递插件

文档由 VitePress 构建 | API引用由 litedoc 生成

- + \ No newline at end of file diff --git a/deploy/fandq.html b/deploy/fandq.html index f429fd8d..301c72ba 100644 --- a/deploy/fandq.html +++ b/deploy/fandq.html @@ -8,9 +8,9 @@ - + - + @@ -20,7 +20,7 @@
Skip to content

答疑

常见问题

  • 设备上Python环境太乱了,pip和python不对应怎么办?

    • 请使用/path/to/python -m pip install -r requirements.txt来安装依赖, 然后用/path/to/python main.py来启动Bot, 其中/path/to/python是你要用来运行Bot的可执行文件
  • 为什么我启动后机器人没有反应?

    • 请检查配置文件的command_startsuperusers,确认你有权限使用命令并按照正确的命令发送
    • 确认命令头没有和nickname{}冲突,例如一个命令是help,但是Bot昵称有一个help,那么将会被解析为nickname而不是命令
  • 更新轻雪失败,报错InvalidGitRepositoryError

    • 请正确安装Git,并使用克隆而非直接下载的方式部署轻雪
  • 怎么登录聊天平台,例如QQ?

    • 你有这个问题说明你不是很了解这个项目,本项目不负责实现登录功能,只负责处理和回应消息,登录功能由实现端(协议端)提供, 实现端本身不负责处理响应逻辑,将消息按照OneBot标准处理好上报给轻雪 你需要使用Onebot标准的实现端来连接到轻雪并将消息上报给轻雪,下面已经列出一些推荐的实现端
  • Playwright安装失败

    • 输入playwright install安装浏览器
  • 有的插件安装后报错无法启动

    • 请先查阅插件文档,确认插件必要配置项完好后,仍然出现问题,请联系插件作者或在安全模式safe_mode: true下启动轻雪,在安全模式下你可以使用npm uninstall卸载问题插件
  • 其他问题

    加入QQ群775840726

推荐方案(QQ)

  1. Lagrange.OneBot,基于NTQQ的OneBot实现,目前Markdown消息支持Lagrange
  2. LLOneBot,NTQQ的OneBot插件,需要安装NTQQ
  3. OpenShamrock,基于Lsposed的OneBot11实现
  4. TRSS-Yunzai,基于node.js,可使用ws-plugin进行通信
  5. go-cqhttpgo语言实现的OneBot11实现端,目前可用性较低
  6. Gensokyo,基于 OneBot QQ官方机器人Api Golang 原生实现,需要官方机器人权限
  7. 人工实现的Onebot协议,自己整一个WebSocket客户端,看着QQ的消息,然后给轻雪传输数据

推荐方案(Minecraft)

  1. MinecraftOneBot,我们专门为Minecraft开发的服务器Bot,支持OneBotV11标准

使用其他项目连接请先自行查阅文档,若有困难请联系对应开发者而不是Liteyuki的开发者

鸣谢

文档由 VitePress 构建 | API引用由 litedoc 生成

- + \ No newline at end of file diff --git a/deploy/install.html b/deploy/install.html index 632c3c09..7832dc54 100644 --- a/deploy/install.html +++ b/deploy/install.html @@ -8,9 +8,9 @@ - + - + @@ -28,7 +28,7 @@ pip install -r requirements.txt # 启动Bot python main.py

TIP

推荐使用虚拟环境来运行轻雪,以避免依赖冲突,你可以使用python -m venv .venv来创建虚拟环境,然后使用.venv\Scripts\activate来激活虚拟环境(Linux下使用source .venv/bin/activate激活)

使用Docker构建

  1. 安装 Docker
  2. 克隆项目 git clone https://github.com/LiteyukiStudio/LiteyukiBot --depth=1
  3. 进入轻雪目录 cd LiteyukiBot
  4. 构建镜像 docker build -t liteyukibot .
  5. 启动容器 docker run -p 20216:20216 -v $(pwd):/liteyukibot -v $(pwd)/.cache:/root/.cache liteyukibot

TIP

Windows请使用项目绝对目录/path/to/LiteyukiBot代替$(pwd)
若你修改了端口号请将20216:20216中的20216替换为你的端口号

使用TRSS Scripts部署

TRSS_Liteyuki轻雪机器人管理脚本,该功能由TRSS提供支持,不是LiteyukiBot官方提供的功能,推荐使用Arch Linux

装置要求

  • Windows系统版本最低Windows10+/Windows Server 2019+
  • Linux系统要支持Python3.10+,推荐Ubuntu 20.04+(别用你那b CentOS)
  • CPU: 至少1vCPU
  • 内存: Bot无其他插件会占用300~500MB,包括chromiumnode等进程,其他插件占用视具体插件而定,建议1GB以上
  • 硬盘: 至少1GB空间

WARNING

如果装置上有多个环境,请使用path/to/python -m pip install -r requirements.txt来安装依赖,path/to/python为你的Python可执行文件路径

WARNING

轻雪的更新功能依赖Git,如果你没有安装Git直接下载源代码运行,你将无法使用更新功能

其他问题请移步至答疑

文档由 VitePress 构建 | API引用由 litedoc 生成

- + \ No newline at end of file diff --git a/dev/api/bot/index.html b/dev/api/bot/index.html index ab58ac58..9a34e1af 100644 --- a/dev/api/bot/index.html +++ b/dev/api/bot/index.html @@ -8,18 +8,18 @@ - + - + - + -
Skip to content

模块 liteyuki.bot

class LiteyukiBot

func __init__(self, **kwargs) -> None

说明: 初始化轻雪实例

参数:

  • **kwargs: 配置
源代码在GitHub上查看
python
def __init__(self, **kwargs) -> None:
+    
Skip to content

模块 liteyuki.bot

class LiteyukiBot


func __init__(self, **kwargs) -> None

说明: 初始化轻雪实例

参数:

  • **kwargs: 配置
源代码在GitHub上查看
python
def __init__(self, **kwargs) -> None:
     """常规操作"""
     print_logo()
     global _BOT_INSTANCE
@@ -38,21 +38,21 @@
     self.stop_event = threading.Event()
     self.call_restart_count = 0
     '加载插件加载器'
-    load_plugin('liteyuki.plugins.plugin_loader')

func run(self)

说明: 外部启动接口

源代码在GitHub上查看
python
def run(self):
+    load_plugin('liteyuki.plugins.plugin_loader')

func run(self)

说明: 外部启动接口

源代码在GitHub上查看
python
def run(self):
     self.process_manager.start_all()
     try:
         asyncio.run(self._run())
     except KeyboardInterrupt:
         logger.opt(colors=True).info('<y>Liteyuki is stopping...</y>')
         self.stop()
-    logger.opt(colors=True).info('<y>Liteyuki is stopped...</y>')

async func keep_alive(self)

说明: 保持轻雪运行

源代码在GitHub上查看
python
async def keep_alive(self):
+    logger.opt(colors=True).info('<y>Liteyuki is stopped...</y>')

async func keep_alive(self)

说明: 保持轻雪运行

源代码在GitHub上查看
python
async def keep_alive(self):
     logger.info('Liteyuki is keeping alive...')
     try:
         while not self.stop_event.is_set():
             await asyncio.sleep(0.1)
     except Exception:
         logger.info('Liteyuki is exiting...')
-        self.stop()

func restart(self, delay: int = 0)

说明: 重启轻雪本体

参数:

  • delay (int, optional): 延迟重启时间. Defaults to 0.
源代码在GitHub上查看
python
def restart(self, delay: int=0):
+        self.stop()

func restart(self, delay: int = 0)

说明: 重启轻雪本体

参数:

  • delay (int, optional): 延迟重启时间. Defaults to 0.
源代码在GitHub上查看
python
def restart(self, delay: int=0):
     if self.call_restart_count < 1:
         executable = sys.executable
         args = sys.argv
@@ -69,31 +69,31 @@
         self.process_manager.terminate_all()
         threading.Thread(target=os.system, args=(f"{cmd} {executable} {' '.join(args)}",), daemon=True).start()
         sys.exit(0)
-    self.call_restart_count += 1

func restart_process(self, name: Optional[str] = None)

说明: 停止轻雪

参数:

源代码在GitHub上查看
python
def restart_process(self, name: Optional[str]=None):
+    self.call_restart_count += 1

func restart_process(self, name: Optional[str] = None)

说明: 停止轻雪

参数:

源代码在GitHub上查看
python
def restart_process(self, name: Optional[str]=None):
     if name is not None:
         chan_active = get_channel(f'{name}-active')
         chan_active.send(1)
     else:
         for process_name in self.process_manager.processes:
             chan_active = get_channel(f'{process_name}-active')
-            chan_active.send(1)

func init(self, *args, **kwargs)

说明: 初始化轻雪, 自动调用

参数:

  • *args: 参数
  • **kwargs: 关键字参数
源代码在GitHub上查看
python
def init(self, *args, **kwargs):
-    self.init_logger()

func init_logger(self)

说明: 初始化日志

源代码在GitHub上查看
python
def init_logger(self):
-    init_log(config=self.config)

func stop(self)

说明: 停止轻雪

源代码在GitHub上查看
python
def stop(self):
+            chan_active.send(1)

func init(self, *args, **kwargs)

说明: 初始化轻雪, 自动调用

参数:

  • *args: 参数
  • **kwargs: 关键字参数
源代码在GitHub上查看
python
def init(self, *args, **kwargs):
+    self.init_logger()

func init_logger(self)

说明: 初始化日志

源代码在GitHub上查看
python
def init_logger(self):
+    init_log(config=self.config)

func stop(self)

说明: 停止轻雪

源代码在GitHub上查看
python
def stop(self):
     self.process_manager.terminate_all()
-    self.stop_event.set()

func on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

说明: 注册启动前的函数

参数:

返回: LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:
-    return self.lifespan.on_before_start(func)

func on_after_start(self, func: LIFESPAN_FUNC)

说明: 注册启动后的函数

参数:

返回: LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_after_start(self, func: LIFESPAN_FUNC):
-    return self.lifespan.on_after_start(func)

func on_after_shutdown(self, func: LIFESPAN_FUNC)

说明: 注册停止后的函数:未实现

参数:

返回: LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_after_shutdown(self, func: LIFESPAN_FUNC):
-    return self.lifespan.on_after_shutdown(func)

func on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC)

说明: 注册进程停止前的函数,为子进程停止时调用

参数:

返回: PROCESS_LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC):
-    return self.lifespan.on_before_process_shutdown(func)

func on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC

说明: 注册进程重启前的函数,为子进程重启时调用

参数:

返回: PROCESS_LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC:
-    return self.lifespan.on_before_process_restart(func)

func on_after_restart(self, func: LIFESPAN_FUNC)

说明: 注册重启后的函数:未实现

参数:

返回: LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_after_restart(self, func: LIFESPAN_FUNC):
-    return self.lifespan.on_after_restart(func)

func get_bot() -> LiteyukiBot

说明: 获取轻雪实例

返回: LiteyukiBot: 轻雪实例

源代码在GitHub上查看
python
def get_bot() -> LiteyukiBot:
+    self.stop_event.set()

func on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

说明: 注册启动前的函数

参数:

返回: LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:
+    return self.lifespan.on_before_start(func)

func on_after_start(self, func: LIFESPAN_FUNC)

说明: 注册启动后的函数

参数:

返回: LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_after_start(self, func: LIFESPAN_FUNC):
+    return self.lifespan.on_after_start(func)

func on_after_shutdown(self, func: LIFESPAN_FUNC)

说明: 注册停止后的函数:未实现

参数:

返回: LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_after_shutdown(self, func: LIFESPAN_FUNC):
+    return self.lifespan.on_after_shutdown(func)

func on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC)

说明: 注册进程停止前的函数,为子进程停止时调用

参数:

返回: PROCESS_LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC):
+    return self.lifespan.on_before_process_shutdown(func)

func on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC

说明: 注册进程重启前的函数,为子进程重启时调用

参数:

返回: PROCESS_LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC:
+    return self.lifespan.on_before_process_restart(func)

func on_after_restart(self, func: LIFESPAN_FUNC)

说明: 注册重启后的函数:未实现

参数:

返回: LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_after_restart(self, func: LIFESPAN_FUNC):
+    return self.lifespan.on_after_restart(func)

func get_bot() -> LiteyukiBot

说明: 获取轻雪实例

返回: LiteyukiBot: 轻雪实例

源代码在GitHub上查看
python
def get_bot() -> LiteyukiBot:
     if IS_MAIN_PROCESS:
         if _BOT_INSTANCE is None:
             raise RuntimeError('Liteyuki instance not initialized.')
         return _BOT_INSTANCE
     else:
-        raise RuntimeError("Can't get bot instance in sub process.")

func get_config(key: str, default: Any = None) -> Any

说明: 获取配置

参数:

  • key (str): 配置键
  • default (Any, optional): 默认值. Defaults to None.

返回: Any: 配置值

源代码在GitHub上查看
python
def get_config(key: str, default: Any=None) -> Any:
-    return get_bot().config.get(key, default)

func get_config_with_compat(key: str, compat_keys: tuple[str], default: Any = None) -> Any

说明: 获取配置,兼容旧版本

参数:

  • key (str): 配置键
  • compat_keys (tuplestr): 兼容键
  • default (Any, optional): 默认值. Defaults to None.

返回: Any: 配置值

源代码在GitHub上查看
python
def get_config_with_compat(key: str, compat_keys: tuple[str], default: Any=None) -> Any:
+        raise RuntimeError("Can't get bot instance in sub process.")

func get_config(key: str, default: Any = None) -> Any

说明: 获取配置

参数:

  • key (str): 配置键
  • default (Any, optional): 默认值. Defaults to None.

返回: Any: 配置值

源代码在GitHub上查看
python
def get_config(key: str, default: Any=None) -> Any:
+    return get_bot().config.get(key, default)

func get_config_with_compat(key: str, compat_keys: tuple[str], default: Any = None) -> Any

说明: 获取配置,兼容旧版本

参数:

  • key (str): 配置键
  • compat_keys (tuplestr): 兼容键
  • default (Any, optional): 默认值. Defaults to None.

返回: Any: 配置值

源代码在GitHub上查看
python
def get_config_with_compat(key: str, compat_keys: tuple[str], default: Any=None) -> Any:
     if key in get_bot().config:
         return get_bot().config[key]
     for compat_key in compat_keys:
@@ -101,7 +101,7 @@
             logger.warning(f'Config key "{compat_key}" will be deprecated, use "{key}" instead.')
             return get_bot().config[compat_key]
     return default

文档由 VitePress 构建 | API引用由 litedoc 生成

- + \ No newline at end of file diff --git a/dev/api/bot/lifespan.html b/dev/api/bot/lifespan.html index 5591923a..427a936f 100644 --- a/dev/api/bot/lifespan.html +++ b/dev/api/bot/lifespan.html @@ -8,53 +8,53 @@ - + - + - + -
Skip to content

模块 liteyuki.bot.lifespan

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/23 下午8:24 @Author : snowykami @Email : snowykami@outlook.com @File : lifespan.py @Software: PyCharm

var SYNC_LIFESPAN_FUNC

  • 说明: 同步生命周期函数

  • 类型: TypeAlias

  • 默认值: Callable[[], Any]

var ASYNC_LIFESPAN_FUNC

  • 说明: 异步生命周期函数

  • 类型: TypeAlias

  • 默认值: Callable[[], Awaitable[Any]]

var LIFESPAN_FUNC

  • 说明: 生命周期函数

  • 类型: TypeAlias

  • 默认值: SYNC_LIFESPAN_FUNC | ASYNC_LIFESPAN_FUNC

var SYNC_PROCESS_LIFESPAN_FUNC

  • 说明: 同步进程生命周期函数

  • 类型: TypeAlias

  • 默认值: Callable[[str], Any]

var ASYNC_PROCESS_LIFESPAN_FUNC

  • 说明: 异步进程生命周期函数

  • 类型: TypeAlias

  • 默认值: Callable[[str], Awaitable[Any]]

var PROCESS_LIFESPAN_FUNC

  • 说明: 进程函数

  • 类型: TypeAlias

  • 默认值: SYNC_PROCESS_LIFESPAN_FUNC | ASYNC_PROCESS_LIFESPAN_FUNC

class Lifespan

func __init__(self) -> None

说明: 轻雪生命周期管理,启动、停止、重启

源代码在GitHub上查看
python
def __init__(self) -> None:
+    
Skip to content

模块 liteyuki.bot.lifespan

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/23 下午8:24 @Author : snowykami @Email : snowykami@outlook.com @File : lifespan.py @Software: PyCharm

var SYNC_LIFESPAN_FUNC

  • 说明: 同步生命周期函数

  • 类型: TypeAlias

  • 默认值: Callable[[], Any]

var ASYNC_LIFESPAN_FUNC

  • 说明: 异步生命周期函数

  • 类型: TypeAlias

  • 默认值: Callable[[], Awaitable[Any]]

var LIFESPAN_FUNC

  • 说明: 生命周期函数

  • 类型: TypeAlias

  • 默认值: SYNC_LIFESPAN_FUNC | ASYNC_LIFESPAN_FUNC

var SYNC_PROCESS_LIFESPAN_FUNC

  • 说明: 同步进程生命周期函数

  • 类型: TypeAlias

  • 默认值: Callable[[str], Any]

var ASYNC_PROCESS_LIFESPAN_FUNC

  • 说明: 异步进程生命周期函数

  • 类型: TypeAlias

  • 默认值: Callable[[str], Awaitable[Any]]

var PROCESS_LIFESPAN_FUNC

  • 说明: 进程函数

  • 类型: TypeAlias

  • 默认值: SYNC_PROCESS_LIFESPAN_FUNC | ASYNC_PROCESS_LIFESPAN_FUNC

class Lifespan


func __init__(self) -> None

说明: 轻雪生命周期管理,启动、停止、重启

源代码在GitHub上查看
python
def __init__(self) -> None:
     self.life_flag: int = 0
     self._before_start_funcs: list[LIFESPAN_FUNC] = []
     self._after_start_funcs: list[LIFESPAN_FUNC] = []
     self._before_process_shutdown_funcs: list[PROCESS_LIFESPAN_FUNC] = []
     self._after_shutdown_funcs: list[LIFESPAN_FUNC] = []
     self._before_process_restart_funcs: list[PROCESS_LIFESPAN_FUNC] = []
-    self._after_restart_funcs: list[LIFESPAN_FUNC] = []

@staticmethod

async func run_funcs(funcs: Sequence[LIFESPAN_FUNC | PROCESS_LIFESPAN_FUNC], *args, **kwargs) -> None

说明: 并发运行异步函数

参数:

源代码在GitHub上查看
python
@staticmethod
+    self._after_restart_funcs: list[LIFESPAN_FUNC] = []

@staticmethod

async func run_funcs(funcs: Sequence[LIFESPAN_FUNC | PROCESS_LIFESPAN_FUNC], *args, **kwargs) -> None

说明: 并发运行异步函数

参数:

源代码在GitHub上查看
python
@staticmethod
 async def run_funcs(funcs: Sequence[LIFESPAN_FUNC | PROCESS_LIFESPAN_FUNC], *args, **kwargs) -> None:
     tasks = [func(*args, **kwargs) if is_coroutine_callable(func) else async_wrapper(func)(*args, **kwargs) for func in funcs]
-    await asyncio.gather(*tasks)

func on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

说明: 注册启动时的函数

参数:

返回: LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:
+    await asyncio.gather(*tasks)

func on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

说明: 注册启动时的函数

参数:

返回: LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:
     self._before_start_funcs.append(func)
-    return func

func on_after_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

说明: 注册启动时的函数

参数:

返回: LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_after_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:
+    return func

func on_after_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

说明: 注册启动时的函数

参数:

返回: LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_after_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:
     self._after_start_funcs.append(func)
-    return func

func on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC

说明: 注册进程停止前的函数

参数:

返回: PROCESS_LIFESPAN_FUNC: 进程生命周期函数

源代码在GitHub上查看
python
def on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC:
+    return func

func on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC

说明: 注册进程停止前的函数

参数:

返回: PROCESS_LIFESPAN_FUNC: 进程生命周期函数

源代码在GitHub上查看
python
def on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC:
     self._before_process_shutdown_funcs.append(func)
-    return func

func on_after_shutdown(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

说明: 注册停止后的函数

参数:

返回: LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_after_shutdown(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:
+    return func

func on_after_shutdown(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

说明: 注册停止后的函数

参数:

返回: LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_after_shutdown(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:
     self._after_shutdown_funcs.append(func)
-    return func

func on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC

说明: 注册进程重启前的函数

参数:

返回: PROCESS_LIFESPAN_FUNC: 进程生命周期函数

源代码在GitHub上查看
python
def on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC:
+    return func

func on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC

说明: 注册进程重启前的函数

参数:

返回: PROCESS_LIFESPAN_FUNC: 进程生命周期函数

源代码在GitHub上查看
python
def on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC:
     self._before_process_restart_funcs.append(func)
-    return func

func on_after_restart(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

说明: 注册重启后的函数

参数:

返回: LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_after_restart(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:
+    return func

func on_after_restart(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

说明: 注册重启后的函数

参数:

返回: LIFESPAN_FUNC: 生命周期函数

源代码在GitHub上查看
python
def on_after_restart(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:
     self._after_restart_funcs.append(func)
-    return func

async func before_start(self) -> None

说明: 启动前钩子

源代码在GitHub上查看
python
async def before_start(self) -> None:
+    return func

async func before_start(self) -> None

说明: 启动前钩子

源代码在GitHub上查看
python
async def before_start(self) -> None:
     logger.debug('Running before_start functions')
-    await self.run_funcs(self._before_start_funcs)

async func after_start(self) -> None

说明: 启动后钩子

源代码在GitHub上查看
python
async def after_start(self) -> None:
+    await self.run_funcs(self._before_start_funcs)

async func after_start(self) -> None

说明: 启动后钩子

源代码在GitHub上查看
python
async def after_start(self) -> None:
     logger.debug('Running after_start functions')
-    await self.run_funcs(self._after_start_funcs)

async func before_process_shutdown(self, *args, **kwargs) -> None

说明: 停止前钩子

源代码在GitHub上查看
python
async def before_process_shutdown(self, *args, **kwargs) -> None:
+    await self.run_funcs(self._after_start_funcs)

async func before_process_shutdown(self, *args, **kwargs) -> None

说明: 停止前钩子

源代码在GitHub上查看
python
async def before_process_shutdown(self, *args, **kwargs) -> None:
     logger.debug('Running before_shutdown functions')
-    await self.run_funcs(self._before_process_shutdown_funcs, *args, **kwargs)

async func after_shutdown(self) -> None

说明: 停止后钩子 未实现

源代码在GitHub上查看
python
async def after_shutdown(self) -> None:
+    await self.run_funcs(self._before_process_shutdown_funcs, *args, **kwargs)

async func after_shutdown(self) -> None

说明: 停止后钩子 未实现

源代码在GitHub上查看
python
async def after_shutdown(self) -> None:
     logger.debug('Running after_shutdown functions')
-    await self.run_funcs(self._after_shutdown_funcs)

async func before_process_restart(self, *args, **kwargs) -> None

说明: 重启前钩子

源代码在GitHub上查看
python
async def before_process_restart(self, *args, **kwargs) -> None:
+    await self.run_funcs(self._after_shutdown_funcs)

async func before_process_restart(self, *args, **kwargs) -> None

说明: 重启前钩子

源代码在GitHub上查看
python
async def before_process_restart(self, *args, **kwargs) -> None:
     logger.debug('Running before_restart functions')
-    await self.run_funcs(self._before_process_restart_funcs, *args, **kwargs)

async func after_restart(self) -> None

说明: 重启后钩子 未实现

源代码在GitHub上查看
python
async def after_restart(self) -> None:
+    await self.run_funcs(self._before_process_restart_funcs, *args, **kwargs)

async func after_restart(self) -> None

说明: 重启后钩子 未实现

源代码在GitHub上查看
python
async def after_restart(self) -> None:
     logger.debug('Running after_restart functions')
     await self.run_funcs(self._after_restart_funcs)

文档由 VitePress 构建 | API引用由 litedoc 生成

- + \ No newline at end of file diff --git a/dev/api/comm/channel.html b/dev/api/comm/channel.html index 46fe1c33..6c282fb4 100644 --- a/dev/api/comm/channel.html +++ b/dev/api/comm/channel.html @@ -8,18 +8,18 @@ - + - + - + -
Skip to content

模块 liteyuki.comm.channel

本模块定义了一个通用的通道类,用于进程间通信

var SYNC_ON_RECEIVE_FUNC

  • 说明: 同步接收函数

  • 类型: TypeAlias

  • 默认值: Callable[[T], Any]

var ASYNC_ON_RECEIVE_FUNC

  • 说明: 异步接收函数

  • 类型: TypeAlias

  • 默认值: Callable[[T], Coroutine[Any, Any, Any]]

var ON_RECEIVE_FUNC

  • 说明: 接收函数

  • 类型: TypeAlias

  • 默认值: SYNC_ON_RECEIVE_FUNC | ASYNC_ON_RECEIVE_FUNC

var SYNC_FILTER_FUNC

  • 说明: 同步过滤函数

  • 类型: TypeAlias

  • 默认值: Callable[[T], bool]

var ASYNC_FILTER_FUNC

  • 说明: 异步过滤函数

  • 类型: TypeAlias

  • 默认值: Callable[[T], Coroutine[Any, Any, bool]]

var FILTER_FUNC

  • 说明: 过滤函数

  • 类型: TypeAlias

  • 默认值: SYNC_FILTER_FUNC | ASYNC_FILTER_FUNC

class Channel(Generic[T])

func __init__(self, name: str, type_check: Optional[bool] = None)

说明: 初始化通道

参数:

  • name: 通道ID
  • type_check: 是否开启类型检查, 若为空,则传入泛型默认开启,否则默认关闭
源代码在GitHub上查看
python
def __init__(self, name: str, type_check: Optional[bool]=None):
+    
Skip to content

模块 liteyuki.comm.channel

本模块定义了一个通用的通道类,用于进程间通信

var SYNC_ON_RECEIVE_FUNC

  • 说明: 同步接收函数

  • 类型: TypeAlias

  • 默认值: Callable[[T], Any]

var ASYNC_ON_RECEIVE_FUNC

  • 说明: 异步接收函数

  • 类型: TypeAlias

  • 默认值: Callable[[T], Coroutine[Any, Any, Any]]

var ON_RECEIVE_FUNC

  • 说明: 接收函数

  • 类型: TypeAlias

  • 默认值: SYNC_ON_RECEIVE_FUNC | ASYNC_ON_RECEIVE_FUNC

var SYNC_FILTER_FUNC

  • 说明: 同步过滤函数

  • 类型: TypeAlias

  • 默认值: Callable[[T], bool]

var ASYNC_FILTER_FUNC

  • 说明: 异步过滤函数

  • 类型: TypeAlias

  • 默认值: Callable[[T], Coroutine[Any, Any, bool]]

var FILTER_FUNC

  • 说明: 过滤函数

  • 类型: TypeAlias

  • 默认值: SYNC_FILTER_FUNC | ASYNC_FILTER_FUNC

class Channel(Generic[T])


func __init__(self, name: str, type_check: Optional[bool] = None)

说明: 初始化通道

参数:

  • name: 通道ID
  • type_check: 是否开启类型检查, 若为空,则传入泛型默认开启,否则默认关闭
源代码在GitHub上查看
python
def __init__(self, name: str, type_check: Optional[bool]=None):
     self.conn_send, self.conn_recv = Pipe()
     self._conn_send_inner, self._conn_recv_inner = Pipe()
     self._closed = False
@@ -41,22 +41,22 @@
         _channel[name] = self
         logger.debug(f'Channel {name} initialized in main process')
     else:
-        logger.debug(f'Channel {name} initialized in sub process, should manually set in main process')

func send(self, data: T)

说明: 发送数据,发送函数为同步函数,没有异步的必要

参数:

  • data (T): 数据
源代码在GitHub上查看
python
def send(self, data: T):
+        logger.debug(f'Channel {name} initialized in sub process, should manually set in main process')

func send(self, data: T)

说明: 发送数据,发送函数为同步函数,没有异步的必要

参数:

  • data (T): 数据
源代码在GitHub上查看
python
def send(self, data: T):
     if self.type_check:
         _type = self._get_generic_type()
         if _type is not None and (not self._validate_structure(data, _type)):
             raise TypeError(f'Data must be an instance of {_type}, {type(data)} found')
     if self._closed:
         raise RuntimeError('Cannot send to a closed channel_')
-    self.conn_send.send(data)

func receive(self) -> T

说明: 同步接收数据,会阻塞线程

返回: T: 数据

源代码在GitHub上查看
python
def receive(self) -> T:
+    self.conn_send.send(data)

func receive(self) -> T

说明: 同步接收数据,会阻塞线程

返回: T: 数据

源代码在GitHub上查看
python
def receive(self) -> T:
     if self._closed:
         raise RuntimeError('Cannot receive from a closed channel_')
     while True:
         data = self.conn_recv.recv()
-        return data

async func async_receive(self) -> T

说明: 异步接收数据,会挂起等待

返回: T: 数据

源代码在GitHub上查看
python
async def async_receive(self) -> T:
+        return data

async func async_receive(self) -> T

说明: 异步接收数据,会挂起等待

返回: T: 数据

源代码在GitHub上查看
python
async def async_receive(self) -> T:
     loop = asyncio.get_running_loop()
     data = await loop.run_in_executor(None, self.receive)
-    return data

func on_receive(self, filter_func: Optional[FILTER_FUNC] = None) -> Callable[[Callable[[T], Any]], Callable[[T], Any]]

说明: 接收数据并执行函数

参数:

返回: Callable[[Callable[[T], Any]], Callable[[T], Any]]: 装饰器

源代码在GitHub上查看
python
def on_receive(self, filter_func: Optional[FILTER_FUNC]=None) -> Callable[[Callable[[T], Any]], Callable[[T], Any]]:
+    return data

func on_receive(self, filter_func: Optional[FILTER_FUNC] = None) -> Callable[[Callable[[T], Any]], Callable[[T], Any]]

说明: 接收数据并执行函数

参数:

返回: Callable[[Callable[[T], Any]], Callable[[T], Any]]: 装饰器

源代码在GitHub上查看
python
def on_receive(self, filter_func: Optional[FILTER_FUNC]=None) -> Callable[[Callable[[T], Any]], Callable[[T], Any]]:
     if not IS_MAIN_PROCESS:
         raise RuntimeError('on_receive can only be used in main process')
 
@@ -81,7 +81,7 @@
             self._on_sub_receive_func_ids.append(_func_id)
         _func_id += 1
         return func
-    return decorator

var active_channel

  • 说明: 子进程可用的主动和被动通道

  • 类型: Channel

  • 默认值: Channel(name='active_channel')

var passive_channel

  • 说明: 被动通道

  • 类型: Channel

  • 默认值: Channel(name='passive_channel')

var publish_channel

  • 说明: 通道传递通道,主进程创建单例,子进程初始化时实例化

  • 类型: Channel[tuple[str, dict[str, Any]]]

  • 默认值: Channel(name='publish_channel')

var channel_deliver_active_channel

  • 说明: 通道传递通道,主进程创建单例,子进程初始化时实例化

  • 类型: Channel[Channel[Any]]

  • 默认值: NO_DEFAULT

var channel_deliver_passive_channel

  • 说明: 被动通道传递通道

  • 类型: Channel[tuple[str, dict[str, Any]]]

  • 默认值: NO_DEFAULT

func set_channel(name: str, channel: Channel)

说明: 设置通道实例

参数:

  • name (str): 通道名称
  • channel (Channel): 通道实例
源代码在GitHub上查看
python
def set_channel(name: str, channel: 'Channel'):
+    return decorator

var active_channel

  • 说明: 子进程可用的主动和被动通道

  • 类型: Channel

  • 默认值: Channel(name='active_channel')

var passive_channel

  • 说明: 被动通道

  • 类型: Channel

  • 默认值: Channel(name='passive_channel')

var publish_channel

  • 说明: 通道传递通道,主进程创建单例,子进程初始化时实例化

  • 类型: Channel[tuple[str, dict[str, Any]]]

  • 默认值: Channel(name='publish_channel')

var channel_deliver_active_channel

  • 说明: 通道传递通道,主进程创建单例,子进程初始化时实例化

  • 类型: Channel[Channel[Any]]

  • 默认值: NO_DEFAULT

var channel_deliver_passive_channel

  • 说明: 被动通道传递通道

  • 类型: Channel[tuple[str, dict[str, Any]]]

  • 默认值: NO_DEFAULT


func set_channel(name: str, channel: Channel)

说明: 设置通道实例

参数:

  • name (str): 通道名称
  • channel (Channel): 通道实例
源代码在GitHub上查看
python
def set_channel(name: str, channel: 'Channel'):
     if not isinstance(channel, Channel):
         raise TypeError(f'channel_ must be an instance of Channel, {type(channel)} found')
     if IS_MAIN_PROCESS:
@@ -89,31 +89,31 @@
             raise ValueError(f'Channel {name} already exists')
         _channel[name] = channel
     else:
-        channel_deliver_passive_channel.send(('set_channel', {'name': name, 'channel_': channel}))

func set_channels(channels: dict[str, Channel])

说明: 设置通道实例

参数:

源代码在GitHub上查看
python
def set_channels(channels: dict[str, 'Channel']):
+        channel_deliver_passive_channel.send(('set_channel', {'name': name, 'channel_': channel}))

func set_channels(channels: dict[str, Channel])

说明: 设置通道实例

参数:

源代码在GitHub上查看
python
def set_channels(channels: dict[str, 'Channel']):
     for name, channel in channels.items():
-        set_channel(name, channel)

func get_channel(name: str) -> Channel

说明: 获取通道实例

参数:

  • name (str): 通道名称

返回: Channel: 通道实例

源代码在GitHub上查看
python
def get_channel(name: str) -> 'Channel':
+        set_channel(name, channel)

func get_channel(name: str) -> Channel

说明: 获取通道实例

参数:

  • name (str): 通道名称

返回: Channel: 通道实例

源代码在GitHub上查看
python
def get_channel(name: str) -> 'Channel':
     if IS_MAIN_PROCESS:
         return _channel[name]
     else:
         recv_chan = Channel[Channel[Any]]('recv_chan')
         channel_deliver_passive_channel.send(('get_channel', {'name': name, 'recv_chan': recv_chan}))
-        return recv_chan.receive()

func get_channels() -> dict[str, Channel]

说明: 获取通道实例们

返回: dict[str, Channel]: 通道实例

源代码在GitHub上查看
python
def get_channels() -> dict[str, 'Channel']:
+        return recv_chan.receive()

func get_channels() -> dict[str, Channel]

说明: 获取通道实例们

返回: dict[str, Channel]: 通道实例

源代码在GitHub上查看
python
def get_channels() -> dict[str, 'Channel']:
     if IS_MAIN_PROCESS:
         return _channel
     else:
         recv_chan = Channel[dict[str, Channel[Any]]]('recv_chan')
         channel_deliver_passive_channel.send(('get_channels', {'recv_chan': recv_chan}))
-        return recv_chan.receive()

var channel_deliver_active_channel

  • 说明: 主动通道传递通道

  • 默认值: Channel(name='channel_deliver_active_channel')

var channel_deliver_passive_channel

  • 说明: 被动通道传递通道

  • 默认值: Channel(name='channel_deliver_passive_channel')

@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'set_channel')

func on_set_channel(data: tuple[str, dict[str, Any]])

源代码在GitHub上查看
python
@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'set_channel')
+        return recv_chan.receive()

var channel_deliver_active_channel

  • 说明: 主动通道传递通道

  • 默认值: Channel(name='channel_deliver_active_channel')

var channel_deliver_passive_channel

  • 说明: 被动通道传递通道

  • 默认值: Channel(name='channel_deliver_passive_channel')


@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'set_channel')

func on_set_channel(data: tuple[str, dict[str, Any]])

源代码在GitHub上查看
python
@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'set_channel')
 def on_set_channel(data: tuple[str, dict[str, Any]]):
     name, channel = (data[1]['name'], data[1]['channel_'])
-    set_channel(name, channel)

@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'get_channel')

func on_get_channel(data: tuple[str, dict[str, Any]])

源代码在GitHub上查看
python
@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'get_channel')
+    set_channel(name, channel)

@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'get_channel')

func on_get_channel(data: tuple[str, dict[str, Any]])

源代码在GitHub上查看
python
@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'get_channel')
 def on_get_channel(data: tuple[str, dict[str, Any]]):
     name, recv_chan = (data[1]['name'], data[1]['recv_chan'])
-    recv_chan.send(get_channel(name))

@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'get_channels')

func on_get_channels(data: tuple[str, dict[str, Any]])

源代码在GitHub上查看
python
@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'get_channels')
+    recv_chan.send(get_channel(name))

@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'get_channels')

func on_get_channels(data: tuple[str, dict[str, Any]])

源代码在GitHub上查看
python
@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'get_channels')
 def on_get_channels(data: tuple[str, dict[str, Any]]):
     recv_chan = data[1]['recv_chan']
     recv_chan.send(get_channels())

文档由 VitePress 构建 | API引用由 litedoc 生成

- + \ No newline at end of file diff --git a/dev/api/comm/event.html b/dev/api/comm/event.html index 75434424..df47c3f2 100644 --- a/dev/api/comm/event.html +++ b/dev/api/comm/event.html @@ -8,21 +8,21 @@ - + - + - + -
Skip to content

模块 liteyuki.comm.event

本模块用于轻雪主进程和子进程之间的通信的事件类

class Event

func __init__(self, name: str, data: dict[str, Any])

源代码在GitHub上查看
python
def __init__(self, name: str, data: dict[str, Any]):
+    
-    
+    
     
   
 
\ No newline at end of file
diff --git a/dev/api/comm/index.html b/dev/api/comm/index.html
index 3f4107a4..68ad4220 100644
--- a/dev/api/comm/index.html
+++ b/dev/api/comm/index.html
@@ -8,9 +8,9 @@
     
     
     
-    
+    
     
-    
+    
     
     
     
@@ -20,7 +20,7 @@
   
   
     
-    
+    
     
   
 
\ No newline at end of file
diff --git a/dev/api/comm/rpc.html b/dev/api/comm/rpc.html
index 234fa371..80c53288 100644
--- a/dev/api/comm/rpc.html
+++ b/dev/api/comm/rpc.html
@@ -8,21 +8,21 @@
     
     
     
-    
+    
     
-    
+    
     
-    
+    
     
     
     
     
   
   
-    
Skip to content

模块 liteyuki.comm.rpc

本模块用于实现RPC(基于IPC)通信

class RPC

func __init__(self, on_calling: ON_CALLING_FUNC) -> None

源代码在GitHub上查看
python
def __init__(self, on_calling: ON_CALLING_FUNC) -> None:
-    self.on_calling = on_calling

func call(self, args: tuple, kwargs: dict) -> Any

说明: 调用

源代码在GitHub上查看
python
def call(self, args: tuple, kwargs: dict) -> Any:
+    
Skip to content

模块 liteyuki.comm.rpc

本模块用于实现RPC(基于IPC)通信

class RPC


func __init__(self, on_calling: ON_CALLING_FUNC) -> None

源代码在GitHub上查看
python
def __init__(self, on_calling: ON_CALLING_FUNC) -> None:
+    self.on_calling = on_calling

func call(self, args: tuple, kwargs: dict) -> Any

说明: 调用

源代码在GitHub上查看
python
def call(self, args: tuple, kwargs: dict) -> Any:
     return self.on_calling(args, kwargs)

文档由 VitePress 构建 | API引用由 litedoc 生成

- + \ No newline at end of file diff --git a/dev/api/comm/socks_channel.html b/dev/api/comm/socks_channel.html index 2eb21bd0..9d333a39 100644 --- a/dev/api/comm/socks_channel.html +++ b/dev/api/comm/socks_channel.html @@ -8,26 +8,26 @@ - + - + - + -
Skip to content

模块 liteyuki.comm.socks_channel

基于socket的通道

class SocksChannel

func __init__(self, name: str)

说明: 初始化通道

参数:

  • name: 通道ID
源代码在GitHub上查看
python
def __init__(self, name: str):
+    
Skip to content

模块 liteyuki.comm.socks_channel

基于socket的通道

class SocksChannel


func __init__(self, name: str)

说明: 初始化通道

参数:

  • name: 通道ID
源代码在GitHub上查看
python
def __init__(self, name: str):
     self._name = name
     self._conn_send = None
     self._conn_recv = None
-    self._closed = False

func send(self, data)

说明: 发送数据

参数:

  • data: 数据
源代码在GitHub上查看
python
def send(self, data):
-    pass

func receive(self)

说明: 接收数据

返回: data: 数据

源代码在GitHub上查看
python
def receive(self):
-    pass

func close(self)

说明: 关闭通道

源代码在GitHub上查看
python
def close(self):
+    self._closed = False

func send(self, data)

说明: 发送数据

参数:

  • data: 数据
源代码在GitHub上查看
python
def send(self, data):
+    pass

func receive(self)

说明: 接收数据

返回: data: 数据

源代码在GitHub上查看
python
def receive(self):
+    pass

func close(self)

说明: 关闭通道

源代码在GitHub上查看
python
def close(self):
     pass

文档由 VitePress 构建 | API引用由 litedoc 生成

- + \ No newline at end of file diff --git a/dev/api/comm/storage.html b/dev/api/comm/storage.html index 5a9ba1d5..91ce23ee 100644 --- a/dev/api/comm/storage.html +++ b/dev/api/comm/storage.html @@ -8,30 +8,30 @@ - + - + - + -
Skip to content

模块 liteyuki.comm.storage

共享内存模块。类似于redis,但是更加轻量级并且线程安全

var _on_main_subscriber_receive_funcs

  • 说明: 主进程订阅者接收函数

  • 类型: dict[str, list[ASYNC_ON_RECEIVE_FUNC]]

  • 默认值: {}

var _on_sub_subscriber_receive_funcs

  • 说明: 子进程订阅者接收函数

  • 类型: dict[str, list[ASYNC_ON_RECEIVE_FUNC]]

  • 默认值: {}

class KeyValueStore

func __init__(self)

源代码在GitHub上查看
python
def __init__(self):
+    
Skip to content

模块 liteyuki.comm.storage

共享内存模块。类似于redis,但是更加轻量级并且线程安全

var _on_main_subscriber_receive_funcs

  • 说明: 主进程订阅者接收函数

  • 类型: dict[str, list[ASYNC_ON_RECEIVE_FUNC]]

  • 默认值: {}

var _on_sub_subscriber_receive_funcs

  • 说明: 子进程订阅者接收函数

  • 类型: dict[str, list[ASYNC_ON_RECEIVE_FUNC]]

  • 默认值: {}

class KeyValueStore


func __init__(self)

源代码在GitHub上查看
python
def __init__(self):
     self._store = {}
     self.active_chan = Channel[tuple[str, Optional[dict[str, Any]]]](name='shared_memory-active')
     self.passive_chan = Channel[tuple[str, Optional[dict[str, Any]]]](name='shared_memory-passive')
     self.publish_channel = Channel[tuple[str, Any]](name='shared_memory-publish')
     self.is_main_receive_loop_running = False
-    self.is_sub_receive_loop_running = False

func set(self, key: str, value: Any) -> None

说明: 设置键值对

参数:

  • key: 键
  • value: 值
源代码在GitHub上查看
python
def set(self, key: str, value: Any) -> None:
+    self.is_sub_receive_loop_running = False

func set(self, key: str, value: Any) -> None

说明: 设置键值对

参数:

  • key: 键
  • value: 值
源代码在GitHub上查看
python
def set(self, key: str, value: Any) -> None:
     if IS_MAIN_PROCESS:
         lock = _get_lock(key)
         with lock:
             self._store[key] = value
     else:
-        self.passive_chan.send(('set', {'key': key, 'value': value}))

func get(self, key: str, default: Optional[Any] = None) -> Optional[Any]

说明: 获取键值对

参数:

  • key: 键
  • default: 默认值

返回: Any: 值

源代码在GitHub上查看
python
def get(self, key: str, default: Optional[Any]=None) -> Optional[Any]:
+        self.passive_chan.send(('set', {'key': key, 'value': value}))

func get(self, key: str, default: Optional[Any] = None) -> Optional[Any]

说明: 获取键值对

参数:

  • key: 键
  • default: 默认值

返回: Any: 值

源代码在GitHub上查看
python
def get(self, key: str, default: Optional[Any]=None) -> Optional[Any]:
     if IS_MAIN_PROCESS:
         lock = _get_lock(key)
         with lock:
@@ -39,7 +39,7 @@
     else:
         recv_chan = Channel[Optional[Any]]('recv_chan')
         self.passive_chan.send(('get', {'key': key, 'default': default, 'recv_chan': recv_chan}))
-        return recv_chan.receive()

func delete(self, key: str, ignore_key_error: bool = True) -> None

说明: 删除键值对

参数:

  • key: 键
  • ignore_key_error: 是否忽略键不存在的错误
源代码在GitHub上查看
python
def delete(self, key: str, ignore_key_error: bool=True) -> None:
+        return recv_chan.receive()

func delete(self, key: str, ignore_key_error: bool = True) -> None

说明: 删除键值对

参数:

  • key: 键
  • ignore_key_error: 是否忽略键不存在的错误
源代码在GitHub上查看
python
def delete(self, key: str, ignore_key_error: bool=True) -> None:
     if IS_MAIN_PROCESS:
         lock = _get_lock(key)
         with lock:
@@ -51,14 +51,14 @@
                     if not ignore_key_error:
                         raise e
     else:
-        self.passive_chan.send(('delete', {'key': key}))

func get_all(self) -> dict[str, Any]

说明: 获取所有键值对

返回: dict[str, Any]: 键值对

源代码在GitHub上查看
python
def get_all(self) -> dict[str, Any]:
+        self.passive_chan.send(('delete', {'key': key}))

func get_all(self) -> dict[str, Any]

说明: 获取所有键值对

返回: dict[str, Any]: 键值对

源代码在GitHub上查看
python
def get_all(self) -> dict[str, Any]:
     if IS_MAIN_PROCESS:
         return self._store
     else:
         recv_chan = Channel[dict[str, Any]]('recv_chan')
         self.passive_chan.send(('get_all', {'recv_chan': recv_chan}))
-        return recv_chan.receive()

func publish(self, channel_: str, data: Any) -> None

说明: 发布消息

参数:

  • channel_: 频道
  • data: 数据
源代码在GitHub上查看
python
def publish(self, channel_: str, data: Any) -> None:
-    self.active_chan.send(('publish', {'channel': channel_, 'data': data}))

func on_subscriber_receive(self, channel_: str) -> Callable[[ON_RECEIVE_FUNC], ON_RECEIVE_FUNC]

说明: 订阅者接收消息时的回调

参数:

  • channel_: 频道

返回: 装饰器

源代码在GitHub上查看
python
def on_subscriber_receive(self, channel_: str) -> Callable[[ON_RECEIVE_FUNC], ON_RECEIVE_FUNC]:
+        return recv_chan.receive()

func publish(self, channel_: str, data: Any) -> None

说明: 发布消息

参数:

  • channel_: 频道
  • data: 数据
源代码在GitHub上查看
python
def publish(self, channel_: str, data: Any) -> None:
+    self.active_chan.send(('publish', {'channel': channel_, 'data': data}))

func on_subscriber_receive(self, channel_: str) -> Callable[[ON_RECEIVE_FUNC], ON_RECEIVE_FUNC]

说明: 订阅者接收消息时的回调

参数:

  • channel_: 频道

返回: 装饰器

源代码在GitHub上查看
python
def on_subscriber_receive(self, channel_: str) -> Callable[[ON_RECEIVE_FUNC], ON_RECEIVE_FUNC]:
     if not IS_MAIN_PROCESS:
         raise RuntimeError('Cannot subscribe in sub process.')
 
@@ -78,38 +78,38 @@
                 _on_sub_subscriber_receive_funcs[channel_] = []
             _on_sub_subscriber_receive_funcs[channel_].append(wrapper)
         return wrapper
-    return decorator

@staticmethod

async func run_subscriber_receive_funcs(channel_: str, data: Any)

说明: 运行订阅者接收函数

参数:

  • channel_: 频道
  • data: 数据
源代码在GitHub上查看
python
@staticmethod
+    return decorator

@staticmethod

async func run_subscriber_receive_funcs(channel_: str, data: Any)

说明: 运行订阅者接收函数

参数:

  • channel_: 频道
  • data: 数据
源代码在GitHub上查看
python
@staticmethod
 async def run_subscriber_receive_funcs(channel_: str, data: Any):
-    [asyncio.create_task(func(data)) for func in _on_main_subscriber_receive_funcs[channel_]]

async func start_receive_loop(self)

说明: 启动发布订阅接收器循环,在主进程中运行,若有子进程订阅则推送给子进程

源代码在GitHub上查看
python
async def start_receive_loop(self):
+    [asyncio.create_task(func(data)) for func in _on_main_subscriber_receive_funcs[channel_]]

async func start_receive_loop(self)

说明: 启动发布订阅接收器循环,在主进程中运行,若有子进程订阅则推送给子进程

源代码在GitHub上查看
python
async def start_receive_loop(self):
     if not IS_MAIN_PROCESS:
         raise RuntimeError('Cannot start receive loop in sub process.')
     while True:
         data = await self.active_chan.async_receive()
         if data[0] == 'publish':
             await self.run_subscriber_receive_funcs(data[1]['channel'], data[1]['data'])
-            self.publish_channel.send(data)

class GlobalKeyValueStore

@classmethod

func get_instance(cls)

源代码在GitHub上查看
python
@classmethod
+            self.publish_channel.send(data)

class GlobalKeyValueStore


@classmethod

func get_instance(cls)

源代码在GitHub上查看
python
@classmethod
 def get_instance(cls):
     if cls._instance is None:
         with cls._lock:
             if cls._instance is None:
                 cls._instance = KeyValueStore()
-    return cls._instance

attr _instance = None

attr _lock = threading.Lock()

var shared_memory

  • 说明: 共享内存对象

  • 类型: KeyValueStore

  • 默认值: GlobalKeyValueStore.get_instance()

var _ref_count

  • 说明: import 引用计数, 防止获取空指针

  • 默认值: 0

@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'get')

func on_get(data: tuple[str, dict[str, Any]])

源代码在GitHub上查看
python
@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'get')
+    return cls._instance

attr _instance = None

attr _lock = threading.Lock()

var shared_memory

  • 说明: 共享内存对象

  • 类型: KeyValueStore

  • 默认值: GlobalKeyValueStore.get_instance()

var _ref_count

  • 说明: import 引用计数, 防止获取空指针

  • 默认值: 0


@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'get')

func on_get(data: tuple[str, dict[str, Any]])

源代码在GitHub上查看
python
@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'get')
 def on_get(data: tuple[str, dict[str, Any]]):
     key = data[1]['key']
     default = data[1]['default']
     recv_chan = data[1]['recv_chan']
-    recv_chan.send(shared_memory.get(key, default))

@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'set')

func on_set(data: tuple[str, dict[str, Any]])

源代码在GitHub上查看
python
@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'set')
+    recv_chan.send(shared_memory.get(key, default))

@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'set')

func on_set(data: tuple[str, dict[str, Any]])

源代码在GitHub上查看
python
@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'set')
 def on_set(data: tuple[str, dict[str, Any]]):
     key = data[1]['key']
     value = data[1]['value']
-    shared_memory.set(key, value)

@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'delete')

func on_delete(data: tuple[str, dict[str, Any]])

源代码在GitHub上查看
python
@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'delete')
+    shared_memory.set(key, value)

@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'delete')

func on_delete(data: tuple[str, dict[str, Any]])

源代码在GitHub上查看
python
@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'delete')
 def on_delete(data: tuple[str, dict[str, Any]]):
     key = data[1]['key']
-    shared_memory.delete(key)

@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'get_all')

func on_get_all(data: tuple[str, dict[str, Any]])

源代码在GitHub上查看
python
@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'get_all')
+    shared_memory.delete(key)

@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'get_all')

func on_get_all(data: tuple[str, dict[str, Any]])

源代码在GitHub上查看
python
@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'get_all')
 def on_get_all(data: tuple[str, dict[str, Any]]):
     recv_chan = data[1]['recv_chan']
     recv_chan.send(shared_memory.get_all())

文档由 VitePress 构建 | API引用由 litedoc 生成

- + \ No newline at end of file diff --git a/dev/api/config.html b/dev/api/config.html index 89f568c0..e297ad2c 100644 --- a/dev/api/config.html +++ b/dev/api/config.html @@ -8,33 +8,33 @@ - + - + - + -
Skip to content

模块 liteyuki.config

该模块用于常用配置文件的加载 多配置文件编写原则:

  1. 尽量不要冲突: 一个键不要多次出现
  2. 分工明确: 每个配置文件给一个或一类服务提供配置
  3. 扁平化编写: 配置文件尽量扁平化,不要出现过多的嵌套
  4. 注意冲突时的优先级: 项目目录下的配置文件优先级高于config目录下的配置文件
  5. 请不要将需要动态加载的内容写入配置文件,你应该使用其他储存方式

func flat_config(config: dict[str, Any]) -> dict[str, Any]

说明: 扁平化配置文件

{a:{b:{c:1}}} ->

参数:

  • config: 配置项目

返回: 扁平化后的配置文件,但也包含原有的键值对

源代码在GitHub上查看
python
def flat_config(config: dict[str, Any]) -> dict[str, Any]:
+    
Skip to content

模块 liteyuki.config

该模块用于常用配置文件的加载 多配置文件编写原则:

  1. 尽量不要冲突: 一个键不要多次出现
  2. 分工明确: 每个配置文件给一个或一类服务提供配置
  3. 扁平化编写: 配置文件尽量扁平化,不要出现过多的嵌套
  4. 注意冲突时的优先级: 项目目录下的配置文件优先级高于config目录下的配置文件
  5. 请不要将需要动态加载的内容写入配置文件,你应该使用其他储存方式

func flat_config(config: dict[str, Any]) -> dict[str, Any]

说明: 扁平化配置文件

{a:{b:{c:1}}} ->

参数:

  • config: 配置项目

返回: 扁平化后的配置文件,但也包含原有的键值对

源代码在GitHub上查看
python
def flat_config(config: dict[str, Any]) -> dict[str, Any]:
     new_config = copy.deepcopy(config)
     for key, value in config.items():
         if isinstance(value, dict):
             for k, v in flat_config(value).items():
                 new_config[f'{key}.{k}'] = v
-    return new_config

func load_from_yaml(file_: str) -> dict[str, Any]

说明: Load config from yaml file

源代码在GitHub上查看
python
def load_from_yaml(file_: str) -> dict[str, Any]:
+    return new_config

func load_from_yaml(file_: str) -> dict[str, Any]

说明: Load config from yaml file

源代码在GitHub上查看
python
def load_from_yaml(file_: str) -> dict[str, Any]:
     logger.debug(f'Loading YAML config from {file_}')
     config = yaml.safe_load(open(file_, 'r', encoding='utf-8'))
-    return flat_config(config if config is not None else {})

func load_from_json(file_: str) -> dict[str, Any]

说明: Load config from json file

源代码在GitHub上查看
python
def load_from_json(file_: str) -> dict[str, Any]:
+    return flat_config(config if config is not None else {})

func load_from_json(file_: str) -> dict[str, Any]

说明: Load config from json file

源代码在GitHub上查看
python
def load_from_json(file_: str) -> dict[str, Any]:
     logger.debug(f'Loading JSON config from {file_}')
     config = json.load(open(file_, 'r', encoding='utf-8'))
-    return flat_config(config if config is not None else {})

func load_from_toml(file_: str) -> dict[str, Any]

说明: Load config from toml file

源代码在GitHub上查看
python
def load_from_toml(file_: str) -> dict[str, Any]:
+    return flat_config(config if config is not None else {})

func load_from_toml(file_: str) -> dict[str, Any]

说明: Load config from toml file

源代码在GitHub上查看
python
def load_from_toml(file_: str) -> dict[str, Any]:
     logger.debug(f'Loading TOML config from {file_}')
     config = toml.load(open(file_, 'r', encoding='utf-8'))
-    return flat_config(config if config is not None else {})

func load_from_files(*files: str, *, no_warning: bool = False) -> dict[str, Any]

说明: 从指定文件加载配置项,会自动识别文件格式 默认执行扁平化选项

源代码在GitHub上查看
python
def load_from_files(*files: str, no_warning: bool=False) -> dict[str, Any]:
+    return flat_config(config if config is not None else {})

func load_from_files(*files: str, *, no_warning: bool = False) -> dict[str, Any]

说明: 从指定文件加载配置项,会自动识别文件格式 默认执行扁平化选项

源代码在GitHub上查看
python
def load_from_files(*files: str, no_warning: bool=False) -> dict[str, Any]:
     config = {}
     for file in files:
         if os.path.exists(file):
@@ -48,7 +48,7 @@
                 logger.warning(f'Unsupported config file format: {file}')
         elif not no_warning:
             logger.warning(f'Config file not found: {file}')
-    return config

func load_configs_from_dirs(*directories: str, *, no_waring: bool = False) -> dict[str, Any]

说明: 从目录下加载配置文件,不递归 按照读取文件的优先级反向覆盖 默认执行扁平化选项

源代码在GitHub上查看
python
def load_configs_from_dirs(*directories: str, no_waring: bool=False) -> dict[str, Any]:
+    return config

func load_configs_from_dirs(*directories: str, *, no_waring: bool = False) -> dict[str, Any]

说明: 从目录下加载配置文件,不递归 按照读取文件的优先级反向覆盖 默认执行扁平化选项

源代码在GitHub上查看
python
def load_configs_from_dirs(*directories: str, no_waring: bool=False) -> dict[str, Any]:
     config = {}
     for directory in directories:
         if not os.path.exists(directory):
@@ -58,11 +58,11 @@
         for file in os.listdir(directory):
             if file.endswith(_SUPPORTED_CONFIG_FORMATS):
                 config.update(load_from_files(os.path.join(directory, file), no_warning=no_waring))
-    return config

func load_config_in_default(no_waring: bool = False) -> dict[str, Any]

说明: 从一个标准的轻雪项目加载配置文件 项目目录下的config.*和config目录下的所有配置文件 项目目录下的配置文件优先

源代码在GitHub上查看
python
def load_config_in_default(no_waring: bool=False) -> dict[str, Any]:
+    return config

func load_config_in_default(no_waring: bool = False) -> dict[str, Any]

说明: 从一个标准的轻雪项目加载配置文件 项目目录下的config.*和config目录下的所有配置文件 项目目录下的配置文件优先

源代码在GitHub上查看
python
def load_config_in_default(no_waring: bool=False) -> dict[str, Any]:
     config = load_configs_from_dirs('config', no_waring=no_waring)
     config.update(load_from_files('config.yaml', 'config.toml', 'config.json', 'config.yml', no_warning=no_waring))
     return config

文档由 VitePress 构建 | API引用由 litedoc 生成

- + \ No newline at end of file diff --git a/dev/api/core/index.html b/dev/api/core/index.html index 2c806fc2..31c1b39b 100644 --- a/dev/api/core/index.html +++ b/dev/api/core/index.html @@ -8,9 +8,9 @@ - + - + @@ -20,7 +20,7 @@ - + \ No newline at end of file diff --git a/dev/api/core/manager.html b/dev/api/core/manager.html index 69370a0e..daeb1576 100644 --- a/dev/api/core/manager.html +++ b/dev/api/core/manager.html @@ -8,37 +8,37 @@ - + - + - + -
Skip to content

模块 liteyuki.core.manager

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/27 上午11:12 @Author : snowykami @Email : snowykami@outlook.com @File : manager.py @Software: PyCharm

class ChannelDeliver

func __init__(self, active: Channel[Any], passive: Channel[Any], channel_deliver_active: Channel[Channel[Any]], channel_deliver_passive: Channel[tuple[str, dict]], publish: Channel[tuple[str, Any]])

源代码在GitHub上查看
python
def __init__(self, active: Channel[Any], passive: Channel[Any], channel_deliver_active: Channel[Channel[Any]], channel_deliver_passive: Channel[tuple[str, dict]], publish: Channel[tuple[str, Any]]):
+    
Skip to content

模块 liteyuki.core.manager

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/27 上午11:12 @Author : snowykami @Email : snowykami@outlook.com @File : manager.py @Software: PyCharm

class ChannelDeliver


func __init__(self, active: Channel[Any], passive: Channel[Any], channel_deliver_active: Channel[Channel[Any]], channel_deliver_passive: Channel[tuple[str, dict]], publish: Channel[tuple[str, Any]])

源代码在GitHub上查看
python
def __init__(self, active: Channel[Any], passive: Channel[Any], channel_deliver_active: Channel[Channel[Any]], channel_deliver_passive: Channel[tuple[str, dict]], publish: Channel[tuple[str, Any]]):
     self.active = active
     self.passive = passive
     self.channel_deliver_active = channel_deliver_active
     self.channel_deliver_passive = channel_deliver_passive
-    self.publish = publish

class ProcessManager

func __init__(self, lifespan: Lifespan)

源代码在GitHub上查看
python
def __init__(self, lifespan: 'Lifespan'):
+    self.publish = publish

class ProcessManager


func __init__(self, lifespan: Lifespan)

源代码在GitHub上查看
python
def __init__(self, lifespan: 'Lifespan'):
     self.lifespan = lifespan
     self.targets: dict[str, tuple[Callable, tuple, dict]] = {}
-    self.processes: dict[str, Process] = {}

func start_all(self)

说明: 对外启动方法,启动所有进程,创建asyncio task

源代码在GitHub上查看
python
def start_all(self):
+    self.processes: dict[str, Process] = {}

func start_all(self)

说明: 对外启动方法,启动所有进程,创建asyncio task

源代码在GitHub上查看
python
def start_all(self):
     for name in self.targets:
         logger.debug(f'Starting process {name}')
-        threading.Thread(target=self._run_process, args=(name,), daemon=True).start()

func add_target(self, name: str, target: TARGET_FUNC, args: tuple = (), kwargs = None)

说明: 添加进程

参数:

  • name: 进程名,用于获取和唯一标识
  • target: 进程函数
  • args: 进程函数参数
  • kwargs: 进程函数关键字参数,通常会默认传入chan_active和chan_passive
源代码在GitHub上查看
python
def add_target(self, name: str, target: TARGET_FUNC, args: tuple=(), kwargs=None):
+        threading.Thread(target=self._run_process, args=(name,), daemon=True).start()

func add_target(self, name: str, target: TARGET_FUNC, args: tuple = (), kwargs = None)

说明: 添加进程

参数:

  • name: 进程名,用于获取和唯一标识
  • target: 进程函数
  • args: 进程函数参数
  • kwargs: 进程函数关键字参数,通常会默认传入chan_active和chan_passive
源代码在GitHub上查看
python
def add_target(self, name: str, target: TARGET_FUNC, args: tuple=(), kwargs=None):
     if kwargs is None:
         kwargs = {}
     chan_active: Channel = Channel(name=f'{name}-active')
     chan_passive: Channel = Channel(name=f'{name}-passive')
     channel_deliver = ChannelDeliver(active=chan_active, passive=chan_passive, channel_deliver_active=channel_deliver_active_channel, channel_deliver_passive=channel_deliver_passive_channel, publish=publish_channel)
-    self.targets[name] = (_delivery_channel_wrapper, (target, channel_deliver, shared_memory, *args), kwargs)

func join_all(self)

源代码在GitHub上查看
python
def join_all(self):
+    self.targets[name] = (_delivery_channel_wrapper, (target, channel_deliver, shared_memory, *args), kwargs)

func join_all(self)

源代码在GitHub上查看
python
def join_all(self):
     for name, process in self.targets:
-        process.join()

func terminate(self, name: str)

说明: 终止进程并从进程字典中删除

参数:

  • name:
源代码在GitHub上查看
python
def terminate(self, name: str):
+        process.join()

func terminate(self, name: str)

说明: 终止进程并从进程字典中删除

参数:

  • name:
源代码在GitHub上查看
python
def terminate(self, name: str):
     if name not in self.processes:
         logger.warning(f'Process {name} not found.')
         return
@@ -47,13 +47,13 @@
     process.join(TIMEOUT)
     if process.is_alive():
         process.kill()
-    logger.success(f'Process {name} terminated.')

func terminate_all(self)

源代码在GitHub上查看
python
def terminate_all(self):
+    logger.success(f'Process {name} terminated.')

func terminate_all(self)

源代码在GitHub上查看
python
def terminate_all(self):
     for name in self.targets:
-        self.terminate(name)

func is_process_alive(self, name: str) -> bool

说明: 检查进程是否存活

参数:

  • name:
源代码在GitHub上查看
python
def is_process_alive(self, name: str) -> bool:
+        self.terminate(name)

func is_process_alive(self, name: str) -> bool

说明: 检查进程是否存活

参数:

  • name:
源代码在GitHub上查看
python
def is_process_alive(self, name: str) -> bool:
     if name not in self.targets:
         logger.warning(f'Process {name} not found.')
     return self.processes[name].is_alive()

文档由 VitePress 构建 | API引用由 litedoc 生成

- + \ No newline at end of file diff --git a/dev/api/dev/index.html b/dev/api/dev/index.html index cc13bc5a..33c0bcca 100644 --- a/dev/api/dev/index.html +++ b/dev/api/dev/index.html @@ -8,9 +8,9 @@ - + - + @@ -20,7 +20,7 @@ - + \ No newline at end of file diff --git a/dev/api/dev/observer.html b/dev/api/dev/observer.html index b6718019..a8a5ac96 100644 --- a/dev/api/dev/observer.html +++ b/dev/api/dev/observer.html @@ -8,18 +8,18 @@ - + - + - + -
Skip to content

模块 liteyuki.dev.observer

此模块用于注册观察者函数,使用watchdog监控文件变化并重启bot 启用该模块需要在配置文件中设置dev_mode为True

var CALLBACK_FUNC

  • 说明: 位置1为FileSystemEvent

  • 类型: TypeAlias

  • 默认值: Callable[[FileSystemEvent], None]

var FILTER_FUNC

  • 说明: 位置1为FileSystemEvent

  • 类型: TypeAlias

  • 默认值: Callable[[FileSystemEvent], bool]

func debounce(wait)

说明: 防抖函数

源代码在GitHub上查看
python
def debounce(wait):
+    
Skip to content

模块 liteyuki.dev.observer

此模块用于注册观察者函数,使用watchdog监控文件变化并重启bot 启用该模块需要在配置文件中设置dev_mode为True

var CALLBACK_FUNC

  • 说明: 位置1为FileSystemEvent

  • 类型: TypeAlias

  • 默认值: Callable[[FileSystemEvent], None]

var FILTER_FUNC

  • 说明: 位置1为FileSystemEvent

  • 类型: TypeAlias

  • 默认值: Callable[[FileSystemEvent], bool]


func debounce(wait)

说明: 防抖函数

源代码在GitHub上查看
python
def debounce(wait):
 
     def decorator(func):
 
@@ -31,13 +31,13 @@
                 return func(*args, **kwargs)
         last_call_time = None
         return wrapper
-    return decorator

class CodeModifiedHandler(FileSystemEventHandler)

@debounce(1)

func on_modified(self, event)

源代码在GitHub上查看
python
@debounce(1)
+    return decorator

class CodeModifiedHandler(FileSystemEventHandler)


@debounce(1)

func on_modified(self, event)

源代码在GitHub上查看
python
@debounce(1)
 def on_modified(self, event):
-    raise NotImplementedError('on_modified must be implemented')

func on_created(self, event)

源代码在GitHub上查看
python
def on_created(self, event):
-    self.on_modified(event)

func on_deleted(self, event)

源代码在GitHub上查看
python
def on_deleted(self, event):
-    self.on_modified(event)

func on_moved(self, event)

源代码在GitHub上查看
python
def on_moved(self, event):
-    self.on_modified(event)

func on_any_event(self, event)

源代码在GitHub上查看
python
def on_any_event(self, event):
-    self.on_modified(event)

func on_file_system_event(directories: tuple[str], recursive: bool = True, event_filter: FILTER_FUNC = None) -> Callable[[CALLBACK_FUNC], CALLBACK_FUNC]

说明: 注册文件系统变化监听器

参数:

  • directories: 监听目录们
  • recursive: 是否递归监听子目录
  • event_filter: 事件过滤器, 返回True则执行回调函数

返回: 装饰器,装饰一个函数在接收到数据后执行

源代码在GitHub上查看
python
def on_file_system_event(directories: tuple[str], recursive: bool=True, event_filter: FILTER_FUNC=None) -> Callable[[CALLBACK_FUNC], CALLBACK_FUNC]:
+    raise NotImplementedError('on_modified must be implemented')

func on_created(self, event)

源代码在GitHub上查看
python
def on_created(self, event):
+    self.on_modified(event)

func on_deleted(self, event)

源代码在GitHub上查看
python
def on_deleted(self, event):
+    self.on_modified(event)

func on_moved(self, event)

源代码在GitHub上查看
python
def on_moved(self, event):
+    self.on_modified(event)

func on_any_event(self, event)

源代码在GitHub上查看
python
def on_any_event(self, event):
+    self.on_modified(event)

func on_file_system_event(directories: tuple[str], recursive: bool = True, event_filter: FILTER_FUNC = None) -> Callable[[CALLBACK_FUNC], CALLBACK_FUNC]

说明: 注册文件系统变化监听器

参数:

  • directories: 监听目录们
  • recursive: 是否递归监听子目录
  • event_filter: 事件过滤器, 返回True则执行回调函数

返回: 装饰器,装饰一个函数在接收到数据后执行

源代码在GitHub上查看
python
def on_file_system_event(directories: tuple[str], recursive: bool=True, event_filter: FILTER_FUNC=None) -> Callable[[CALLBACK_FUNC], CALLBACK_FUNC]:
 
     def decorator(func: CALLBACK_FUNC) -> CALLBACK_FUNC:
 
@@ -51,7 +51,7 @@
             observer.schedule(code_modified_handler, directory, recursive=recursive)
         return func
     return decorator

文档由 VitePress 构建 | API引用由 litedoc 生成

- + \ No newline at end of file diff --git a/dev/api/dev/plugin.html b/dev/api/dev/plugin.html index be45cbe6..b1ac3166 100644 --- a/dev/api/dev/plugin.html +++ b/dev/api/dev/plugin.html @@ -8,25 +8,25 @@ - + - + - + -
Skip to content

模块 liteyuki.dev.plugin

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/18 上午5:04 @Author : snowykami @Email : snowykami@outlook.com @File : plugin.py @Software: PyCharm

func run_plugins(*module_path: str | Path)

说明: 运行插件,无需手动初始化bot

参数:

  • module_path: 插件路径,参考liteyuki.load_plugin的函数签名
源代码在GitHub上查看
python
def run_plugins(*module_path: str | Path):
+    
Skip to content

模块 liteyuki.dev.plugin

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/18 上午5:04 @Author : snowykami @Email : snowykami@outlook.com @File : plugin.py @Software: PyCharm


func run_plugins(*module_path: str | Path)

说明: 运行插件,无需手动初始化bot

参数:

  • module_path: 插件路径,参考liteyuki.load_plugin的函数签名
源代码在GitHub上查看
python
def run_plugins(*module_path: str | Path):
     cfg = load_config_in_default()
     plugins = cfg.get('liteyuki.plugins', [])
     plugins.extend(module_path)
     cfg['liteyuki.plugins'] = plugins
     bot = LiteyukiBot(**cfg)
     bot.run()

文档由 VitePress 构建 | API引用由 litedoc 生成

- + \ No newline at end of file diff --git a/dev/api/exception.html b/dev/api/exception.html index 3984da88..9277bd5a 100644 --- a/dev/api/exception.html +++ b/dev/api/exception.html @@ -8,9 +8,9 @@ - + - + @@ -20,7 +20,7 @@ - + \ No newline at end of file diff --git a/dev/api/index.html b/dev/api/index.html index 32e32aa9..32dfacdd 100644 --- a/dev/api/index.html +++ b/dev/api/index.html @@ -8,9 +8,9 @@ - + - + @@ -20,7 +20,7 @@ - + \ No newline at end of file diff --git a/dev/api/log.html b/dev/api/log.html index ac249822..dfc0a168 100644 --- a/dev/api/log.html +++ b/dev/api/log.html @@ -8,22 +8,22 @@ - + - + - + -
Skip to content

模块 liteyuki.log

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/27 上午9:12 @Author : snowykami @Email : snowykami@outlook.com @File : log.py @Software: PyCharm

func get_format(level: str) -> str

源代码在GitHub上查看
python
def get_format(level: str) -> str:
+    
Skip to content

模块 liteyuki.log

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/27 上午9:12 @Author : snowykami @Email : snowykami@outlook.com @File : log.py @Software: PyCharm


func get_format(level: str) -> str

源代码在GitHub上查看
python
def get_format(level: str) -> str:
     if level == 'DEBUG':
         return debug_format
     else:
-        return default_format

func init_log(config: dict)

说明: 在语言加载完成后执行

源代码在GitHub上查看
python
def init_log(config: dict):
+        return default_format

func init_log(config: dict)

说明: 在语言加载完成后执行

源代码在GitHub上查看
python
def init_log(config: dict):
     logger.remove()
     logger.add(sys.stdout, level=0, diagnose=False, format=get_format(config.get('log_level', 'INFO')))
     show_icon = config.get('log_icon', True)
@@ -32,7 +32,7 @@
     logger.level('SUCCESS', color='<green>', icon=f"{('✅' if show_icon else '')}SUCCESS")
     logger.level('WARNING', color='<yellow>', icon=f"{('⚠️' if show_icon else '')}WARNING")
     logger.level('ERROR', color='<red>', icon=f"{('⭕' if show_icon else '')}ERROR")

文档由 VitePress 构建 | API引用由 litedoc 生成

- + \ No newline at end of file diff --git a/dev/api/message/event.html b/dev/api/message/event.html index f97d8076..e981b374 100644 --- a/dev/api/message/event.html +++ b/dev/api/message/event.html @@ -8,18 +8,18 @@ - + - + - + -
Skip to content

模块 liteyuki.message.event

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:47 @Author : snowykami @Email : snowykami@outlook.com @File : event.py @Software: PyCharm

class MessageEvent

func __init__(self, bot_id: str, message: list[dict[str, Any]] | str, message_type: str, raw_message: str, session_id: str, user_id: str, session_type: str, receive_channel: Optional[Channel[MessageEvent]] = None, data: Optional[dict[str, Any]] = None)

说明: 轻雪抽象消息事件

源代码在GitHub上查看
python
def __init__(self, bot_id: str, message: list[dict[str, Any]] | str, message_type: str, raw_message: str, session_id: str, user_id: str, session_type: str, receive_channel: Optional[Channel['MessageEvent']]=None, data: Optional[dict[str, Any]]=None):
+    
Skip to content

模块 liteyuki.message.event

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:47 @Author : snowykami @Email : snowykami@outlook.com @File : event.py @Software: PyCharm

class MessageEvent


func __init__(self, bot_id: str, message: list[dict[str, Any]] | str, message_type: str, raw_message: str, session_id: str, user_id: str, session_type: str, receive_channel: Optional[Channel[MessageEvent]] = None, data: Optional[dict[str, Any]] = None)

说明: 轻雪抽象消息事件

源代码在GitHub上查看
python
def __init__(self, bot_id: str, message: list[dict[str, Any]] | str, message_type: str, raw_message: str, session_id: str, user_id: str, session_type: str, receive_channel: Optional[Channel['MessageEvent']]=None, data: Optional[dict[str, Any]]=None):
     if data is None:
         data = {}
     self.message_type = message_type
@@ -30,11 +30,11 @@
     self.session_id = session_id
     self.session_type = session_type
     self.user_id = user_id
-    self.receive_channel = receive_channel

func reply(self, message: str | dict[str, Any])

说明: 回复消息

参数:

  • message:
源代码在GitHub上查看
python
def reply(self, message: str | dict[str, Any]):
+    self.receive_channel = receive_channel

func reply(self, message: str | dict[str, Any])

说明: 回复消息

参数:

  • message:
源代码在GitHub上查看
python
def reply(self, message: str | dict[str, Any]):
     reply_event = MessageEvent(message_type=self.session_type, message=message, raw_message='', data={'message': message}, bot_id=self.bot_id, session_id=self.session_id, user_id=self.user_id, session_type=self.session_type, receive_channel=None)
     if self.receive_channel:
         self.receive_channel.send(reply_event)

文档由 VitePress 构建 | API引用由 litedoc 生成

- + \ No newline at end of file diff --git a/dev/api/message/index.html b/dev/api/message/index.html index 9e72de59..1bdfb40f 100644 --- a/dev/api/message/index.html +++ b/dev/api/message/index.html @@ -8,9 +8,9 @@ - + - + @@ -20,7 +20,7 @@ - + \ No newline at end of file diff --git a/dev/api/message/matcher.html b/dev/api/message/matcher.html index f1e5690a..f59b4137 100644 --- a/dev/api/message/matcher.html +++ b/dev/api/message/matcher.html @@ -8,27 +8,27 @@ - + - + - + -
Skip to content

模块 liteyuki.message.matcher

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:51 @Author : snowykami @Email : snowykami@outlook.com @File : matcher.py @Software: PyCharm

class Matcher

func __init__(self, rule: Rule, priority: int, block: bool)

说明: 匹配器

参数:

  • rule: 规则
  • priority: 优先级 >= 0
  • block: 是否阻断后续优先级更低的匹配器
源代码在GitHub上查看
python
def __init__(self, rule: Rule, priority: int, block: bool):
+    
Skip to content

模块 liteyuki.message.matcher

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:51 @Author : snowykami @Email : snowykami@outlook.com @File : matcher.py @Software: PyCharm

class Matcher


func __init__(self, rule: Rule, priority: int, block: bool)

说明: 匹配器

参数:

  • rule: 规则
  • priority: 优先级 >= 0
  • block: 是否阻断后续优先级更低的匹配器
源代码在GitHub上查看
python
def __init__(self, rule: Rule, priority: int, block: bool):
     self.rule = rule
     self.priority = priority
     self.block = block
-    self.handlers: list[EventHandler] = []

func handle(self) -> Callable[[EventHandler], EventHandler]

说明: 添加处理函数,装饰器

返回: 装饰器 handler

源代码在GitHub上查看
python
def handle(self) -> Callable[[EventHandler], EventHandler]:
+    self.handlers: list[EventHandler] = []

func handle(self) -> Callable[[EventHandler], EventHandler]

说明: 添加处理函数,装饰器

返回: 装饰器 handler

源代码在GitHub上查看
python
def handle(self) -> Callable[[EventHandler], EventHandler]:
 
     def decorator(handler: EventHandler) -> EventHandler:
         self.handlers.append(handler)
         return handler
-    return decorator

async func run(self, event: MessageEvent) -> None

说明: 运行处理函数

参数:

  • event:
源代码在GitHub上查看
python
async def run(self, event: MessageEvent) -> None:
+    return decorator

async func run(self, event: MessageEvent) -> None

说明: 运行处理函数

参数:

  • event:
源代码在GitHub上查看
python
async def run(self, event: MessageEvent) -> None:
     if not await self.rule(event):
         return
     for handler in self.handlers:
@@ -36,7 +36,7 @@
             await handler(event)
         except Exception:
             traceback.print_exc()

文档由 VitePress 构建 | API引用由 litedoc 生成

- + \ No newline at end of file diff --git a/dev/api/message/on.html b/dev/api/message/on.html index 45bfcab0..7da71121 100644 --- a/dev/api/message/on.html +++ b/dev/api/message/on.html @@ -8,33 +8,33 @@ - + - + - + -
Skip to content

模块 liteyuki.message.on

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:52 @Author : snowykami @Email : snowykami@outlook.com @File : on.py @Software: PyCharm

func add_matcher(matcher: Matcher)

源代码在GitHub上查看
python
def add_matcher(matcher: Matcher):
+    
Skip to content

模块 liteyuki.message.on

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:52 @Author : snowykami @Email : snowykami@outlook.com @File : on.py @Software: PyCharm


func add_matcher(matcher: Matcher)

源代码在GitHub上查看
python
def add_matcher(matcher: Matcher):
     for i, m in enumerate(_matcher_list):
         if m.priority < matcher.priority:
             _matcher_list.insert(i, matcher)
             break
     else:
-        _matcher_list.append(matcher)

func on_message(rule: Rule = empty_rule, priority: int = 0, block: bool = False) -> Matcher

源代码在GitHub上查看
python
def on_message(rule: Rule=empty_rule, priority: int=0, block: bool=False) -> Matcher:
+        _matcher_list.append(matcher)

func on_message(rule: Rule = empty_rule, priority: int = 0, block: bool = False) -> Matcher

源代码在GitHub上查看
python
def on_message(rule: Rule=empty_rule, priority: int=0, block: bool=False) -> Matcher:
     matcher = Matcher(rule, priority, block)
     add_matcher(matcher)
-    return matcher

func on_keywords(keywords: list[str], rule = empty_rule, priority: int = 0, block: bool = False) -> Matcher

源代码在GitHub上查看
python
def on_keywords(keywords: list[str], rule=empty_rule, priority: int=0, block: bool=False) -> Matcher:
+    return matcher

func on_keywords(keywords: list[str], rule = empty_rule, priority: int = 0, block: bool = False) -> Matcher

源代码在GitHub上查看
python
def on_keywords(keywords: list[str], rule=empty_rule, priority: int=0, block: bool=False) -> Matcher:
 
     @Rule
     async def on_keywords_rule(event: MessageEvent):
         return any((keyword in event.raw_message for keyword in keywords))
     return on_message(on_keywords_rule & rule, priority, block)

文档由 VitePress 构建 | API引用由 litedoc 生成

- + \ No newline at end of file diff --git a/dev/api/message/rule.html b/dev/api/message/rule.html index e37acd46..16a6ccc0 100644 --- a/dev/api/message/rule.html +++ b/dev/api/message/rule.html @@ -8,35 +8,35 @@ - + - + - + -
Skip to content

模块 liteyuki.message.rule

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:55 @Author : snowykami @Email : snowykami@outlook.com @File : rule.py @Software: PyCharm

var RuleHandlerFunc

  • 说明: 规则函数签名

  • 类型: TypeAlias

  • 默认值: Callable[[MessageEvent], Coroutine[None, None, bool]]

class Rule

func __init__(self, handler: RuleHandlerFunc)

源代码在GitHub上查看
python
def __init__(self, handler: RuleHandlerFunc):
-    self.handler = handler

func self | other: Rule => Rule

源代码在GitHub上查看
python
def __or__(self, other: 'Rule') -> 'Rule':
+    
Skip to content

模块 liteyuki.message.rule

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:55 @Author : snowykami @Email : snowykami@outlook.com @File : rule.py @Software: PyCharm

var RuleHandlerFunc

  • 说明: 规则函数签名

  • 类型: TypeAlias

  • 默认值: Callable[[MessageEvent], Coroutine[None, None, bool]]

class Rule


func __init__(self, handler: RuleHandlerFunc)

源代码在GitHub上查看
python
def __init__(self, handler: RuleHandlerFunc):
+    self.handler = handler

func self | other: Rule => Rule

源代码在GitHub上查看
python
def __or__(self, other: 'Rule') -> 'Rule':
 
     async def combined_handler(event: MessageEvent) -> bool:
         return await self.handler(event) or await other.handler(event)
-    return Rule(combined_handler)

func self & other: Rule => Rule

源代码在GitHub上查看
python
def __and__(self, other: 'Rule') -> 'Rule':
+    return Rule(combined_handler)

func self & other: Rule => Rule

源代码在GitHub上查看
python
def __and__(self, other: 'Rule') -> 'Rule':
 
     async def combined_handler(event: MessageEvent) -> bool:
         return await self.handler(event) and await other.handler(event)
-    return Rule(combined_handler)

async func self () event: MessageEvent => bool

源代码在GitHub上查看
python
async def __call__(self, event: MessageEvent) -> bool:
+    return Rule(combined_handler)

async func self () event: MessageEvent => bool

源代码在GitHub上查看
python
async def __call__(self, event: MessageEvent) -> bool:
     if self.handler is None:
         return True
-    return await self.handler(event)

@Rule

async func empty_rule(event: MessageEvent) -> bool

源代码在GitHub上查看
python
@Rule
+    return await self.handler(event)

@Rule

async func empty_rule(event: MessageEvent) -> bool

源代码在GitHub上查看
python
@Rule
 async def empty_rule(event: MessageEvent) -> bool:
-    return True

@Rule

async func is_su_rule(event: MessageEvent) -> bool

源代码在GitHub上查看
python
@Rule
+    return True

@Rule

async func is_su_rule(event: MessageEvent) -> bool

源代码在GitHub上查看
python
@Rule
 async def is_su_rule(event: MessageEvent) -> bool:
     return str(event.user_id) in _superusers

文档由 VitePress 构建 | API引用由 litedoc 生成

- + \ No newline at end of file diff --git a/dev/api/message/session.html b/dev/api/message/session.html index c75f4cd9..44cf81a5 100644 --- a/dev/api/message/session.html +++ b/dev/api/message/session.html @@ -8,9 +8,9 @@ - + - + @@ -20,7 +20,7 @@ - + \ No newline at end of file diff --git a/dev/api/mkdoc.html b/dev/api/mkdoc.html index 870470c8..47901dd1 100644 --- a/dev/api/mkdoc.html +++ b/dev/api/mkdoc.html @@ -8,30 +8,30 @@ - + - + - + -
Skip to content

模块 liteyuki.mkdoc

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 上午6:23 @Author : snowykami @Email : snowykami@outlook.com @File : mkdoc.py @Software: PyCharm

class DefType(Enum)

attr FUNCTION = 'function'

attr METHOD = 'method'

attr STATIC_METHOD = 'staticmethod'

attr CLASS_METHOD = 'classmethod'

attr PROPERTY = 'property'

class FunctionInfo(BaseModel)

attr name: str = NO_DEFAULT

attr args: list[tuple[str, str]] = NO_DEFAULT

attr return_type: str = NO_DEFAULT

attr docstring: str = NO_DEFAULT

attr source_code: str = ''

attr type: DefType = NO_DEFAULT

attr is_async: bool = NO_DEFAULT

class AttributeInfo(BaseModel)

attr name: str = NO_DEFAULT

attr type: str = NO_DEFAULT

attr value: Any = None

attr docstring: str = ''

class ClassInfo(BaseModel)

attr name: str = NO_DEFAULT

attr docstring: str = NO_DEFAULT

attr methods: list[FunctionInfo] = NO_DEFAULT

attr attributes: list[AttributeInfo] = NO_DEFAULT

attr inherit: list[str] = NO_DEFAULT

class ModuleInfo(BaseModel)

attr module_path: str = NO_DEFAULT

attr functions: list[FunctionInfo] = NO_DEFAULT

attr classes: list[ClassInfo] = NO_DEFAULT

attr attributes: list[AttributeInfo] = NO_DEFAULT

attr docstring: str = NO_DEFAULT

func get_relative_path(base_path: str, target_path: str) -> str

说明: 获取相对路径

参数:

  • base_path: 基础路径
  • target_path: 目标路径
源代码在GitHub上查看
python
def get_relative_path(base_path: str, target_path: str) -> str:
-    return os.path.relpath(target_path, base_path)

func write_to_files(file_data: dict[str, str])

说明: 输出文件

参数:

  • file_data: 文件数据 相对路径
源代码在GitHub上查看
python
def write_to_files(file_data: dict[str, str]):
+    
Skip to content

模块 liteyuki.mkdoc

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 上午6:23 @Author : snowykami @Email : snowykami@outlook.com @File : mkdoc.py @Software: PyCharm

class DefType(Enum)

attr FUNCTION = 'function'

attr METHOD = 'method'

attr STATIC_METHOD = 'staticmethod'

attr CLASS_METHOD = 'classmethod'

attr PROPERTY = 'property'

class FunctionInfo(BaseModel)

attr name: str = NO_DEFAULT

attr args: list[tuple[str, str]] = NO_DEFAULT

attr return_type: str = NO_DEFAULT

attr docstring: str = NO_DEFAULT

attr source_code: str = ''

attr type: DefType = NO_DEFAULT

attr is_async: bool = NO_DEFAULT

class AttributeInfo(BaseModel)

attr name: str = NO_DEFAULT

attr type: str = NO_DEFAULT

attr value: Any = None

attr docstring: str = ''

class ClassInfo(BaseModel)

attr name: str = NO_DEFAULT

attr docstring: str = NO_DEFAULT

attr methods: list[FunctionInfo] = NO_DEFAULT

attr attributes: list[AttributeInfo] = NO_DEFAULT

attr inherit: list[str] = NO_DEFAULT

class ModuleInfo(BaseModel)

attr module_path: str = NO_DEFAULT

attr functions: list[FunctionInfo] = NO_DEFAULT

attr classes: list[ClassInfo] = NO_DEFAULT

attr attributes: list[AttributeInfo] = NO_DEFAULT

attr docstring: str = NO_DEFAULT


func get_relative_path(base_path: str, target_path: str) -> str

说明: 获取相对路径

参数:

  • base_path: 基础路径
  • target_path: 目标路径
源代码在GitHub上查看
python
def get_relative_path(base_path: str, target_path: str) -> str:
+    return os.path.relpath(target_path, base_path)

func write_to_files(file_data: dict[str, str])

说明: 输出文件

参数:

  • file_data: 文件数据 相对路径
源代码在GitHub上查看
python
def write_to_files(file_data: dict[str, str]):
     for rp, data in file_data.items():
         if not os.path.exists(os.path.dirname(rp)):
             os.makedirs(os.path.dirname(rp))
         with open(rp, 'w', encoding='utf-8') as f:
-            f.write(data)

func get_file_list(module_folder: str)

源代码在GitHub上查看
python
def get_file_list(module_folder: str):
+            f.write(data)

func get_file_list(module_folder: str)

源代码在GitHub上查看
python
def get_file_list(module_folder: str):
     file_list = []
     for root, dirs, files in os.walk(module_folder):
         for file in files:
             if file.endswith(('.py', '.pyi')):
                 file_list.append(os.path.join(root, file))
-    return file_list

func get_module_info_normal(file_path: str, ignore_private: bool = True) -> ModuleInfo

说明: 获取函数和类

参数:

  • file_path: Python 文件路径
  • ignore_private: 忽略私有函数和类

返回: 模块信息

源代码在GitHub上查看
python
def get_module_info_normal(file_path: str, ignore_private: bool=True) -> ModuleInfo:
+    return file_list

func get_module_info_normal(file_path: str, ignore_private: bool = True) -> ModuleInfo

说明: 获取函数和类

参数:

  • file_path: Python 文件路径
  • ignore_private: 忽略私有函数和类

返回: 模块信息

源代码在GitHub上查看
python
def get_module_info_normal(file_path: str, ignore_private: bool=True) -> ModuleInfo:
     with open(file_path, 'r', encoding='utf-8') as file:
         file_content = file.read()
         tree = ast.parse(file_content)
@@ -76,7 +76,7 @@
                         if isinstance(node.value, ast.AnnAssign) and node.value.annotation:
                             attr_type = ast.unparse(node.value.annotation)
                         module_info.attributes.append(AttributeInfo(name=target.id, type=attr_type, value=ast.unparse(node.value) if node.value else None))
-    return module_info

func generate_markdown(module_info: ModuleInfo, front_matter = None, lang: str = 'zh-CN') -> str

说明: 生成模块的Markdown 你可在此自定义生成的Markdown格式

参数:

  • module_info: 模块信息
  • front_matter: 自定义选项title, index, icon, category
  • lang: 语言

返回: Markdown 字符串

源代码在GitHub上查看
python
def generate_markdown(module_info: ModuleInfo, front_matter=None, lang: str='zh-CN') -> str:
+    return module_info

func generate_markdown(module_info: ModuleInfo, front_matter = None, lang: str = 'zh-CN') -> str

说明: 生成模块的Markdown 你可在此自定义生成的Markdown格式

参数:

  • module_info: 模块信息
  • front_matter: 自定义选项title, index, icon, category
  • lang: 语言

返回: Markdown 字符串

源代码在GitHub上查看
python
def generate_markdown(module_info: ModuleInfo, front_matter=None, lang: str='zh-CN') -> str:
     content = ''
     front_matter = '---\n' + '\n'.join([f'{k}: {v}' for k, v in front_matter.items()]) + '\n---\n\n'
     content += front_matter
@@ -117,7 +117,7 @@
             content += f'### ***var*** `{attr.name}: {attr.type} = {attr.value}`\n\n'
         attr.docstring = attr.docstring.replace('\n', '\n\n')
         content += f'{attr.docstring}\n\n'
-    return content

func generate_docs(module_folder: str, output_dir: str, with_top: bool = False, lang: str = 'zh-CN', ignored_paths = None)

说明: 生成文档

参数:

  • module_folder: 模块文件夹
  • output_dir: 输出文件夹
  • with_top: 是否包含顶层文件夹 False时例如docs/api/module_a, docs/api/module_b, True时例如docs/api/module/module_a.md, docs/api/module/module_b.md
  • ignored_paths: 忽略的路径
  • lang: 语言
源代码在GitHub上查看
python
def generate_docs(module_folder: str, output_dir: str, with_top: bool=False, lang: str='zh-CN', ignored_paths=None):
+    return content

func generate_docs(module_folder: str, output_dir: str, with_top: bool = False, lang: str = 'zh-CN', ignored_paths = None)

说明: 生成文档

参数:

  • module_folder: 模块文件夹
  • output_dir: 输出文件夹
  • with_top: 是否包含顶层文件夹 False时例如docs/api/module_a, docs/api/module_b, True时例如docs/api/module/module_a.md, docs/api/module/module_b.md
  • ignored_paths: 忽略的路径
  • lang: 语言
源代码在GitHub上查看
python
def generate_docs(module_folder: str, output_dir: str, with_top: bool=False, lang: str='zh-CN', ignored_paths=None):
     if ignored_paths is None:
         ignored_paths = []
     file_data: dict[str, str] = {}
@@ -142,7 +142,7 @@
         print(f'Generate {pyfile_path} -> {abs_md_path}')
         file_data[abs_md_path] = md_content
     write_to_files(file_data)

var no_module_name_pyfile_path

  • 说明: 去头路径

  • 默认值: get_relative_path(module_folder, pyfile_path)

文档由 VitePress 构建 | API引用由 litedoc 生成

- + \ No newline at end of file diff --git a/dev/api/plugin/index.html b/dev/api/plugin/index.html index 5b66394a..2bd14119 100644 --- a/dev/api/plugin/index.html +++ b/dev/api/plugin/index.html @@ -8,20 +8,20 @@ - + - + - + -
Skip to content

模块 liteyuki.plugin

func get_loaded_plugins() -> dict[str, Plugin]

说明: 获取已加载的插件

返回: dict[str, Plugin]: 插件字典

源代码在GitHub上查看
python
def get_loaded_plugins() -> dict[str, Plugin]:
+    
-    
+    
     
   
 
\ No newline at end of file
diff --git a/dev/api/plugin/load.html b/dev/api/plugin/load.html
index bd0e95ed..4481f568 100644
--- a/dev/api/plugin/load.html
+++ b/dev/api/plugin/load.html
@@ -8,18 +8,18 @@
     
     
     
-    
+    
     
-    
+    
     
-    
+    
     
     
     
     
   
   
-    
Skip to content

模块 liteyuki.plugin.load

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/23 下午11:59 @Author : snowykami @Email : snowykami@outlook.com @File : load.py @Software: PyCharm

func load_plugin(module_path: str | Path) -> Optional[Plugin]

说明: 加载单个插件,可以是本地插件或是通过 pip 安装的插件。

参数:

  • module_path: 插件名称 path.to.your.plugin
  • 或插件路径 pathlib.Path(path/to/your/plugin):
源代码在GitHub上查看
python
def load_plugin(module_path: str | Path) -> Optional[Plugin]:
+    
Skip to content

模块 liteyuki.plugin.load

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/23 下午11:59 @Author : snowykami @Email : snowykami@outlook.com @File : load.py @Software: PyCharm


func load_plugin(module_path: str | Path) -> Optional[Plugin]

说明: 加载单个插件,可以是本地插件或是通过 pip 安装的插件。

参数:

  • module_path: 插件名称 path.to.your.plugin
  • 或插件路径 pathlib.Path(path/to/your/plugin):
源代码在GitHub上查看
python
def load_plugin(module_path: str | Path) -> Optional[Plugin]:
     module_path = path_to_module_name(Path(module_path)) if isinstance(module_path, Path) else module_path
     try:
         module = import_module(module_path)
@@ -43,7 +43,7 @@
     except Exception as e:
         logger.opt(colors=True).success(f'Failed to load liteyuki plugin "<r>{module_path}</r>"')
         traceback.print_exc()
-        return None

func load_plugins(*plugin_dir: str, *, ignore_warning: bool = True) -> set[Plugin]

说明: 导入文件夹下多个插件

参数:

  • plugin_dir: 文件夹路径
  • ignore_warning: 是否忽略警告,通常是目录不存在或目录为空
源代码在GitHub上查看
python
def load_plugins(*plugin_dir: str, ignore_warning: bool=True) -> set[Plugin]:
+        return None

func load_plugins(*plugin_dir: str, *, ignore_warning: bool = True) -> set[Plugin]

说明: 导入文件夹下多个插件

参数:

  • plugin_dir: 文件夹路径
  • ignore_warning: 是否忽略警告,通常是目录不存在或目录为空
源代码在GitHub上查看
python
def load_plugins(*plugin_dir: str, ignore_warning: bool=True) -> set[Plugin]:
     plugins = set()
     for dir_path in plugin_dir:
         if not os.path.exists(dir_path):
@@ -69,7 +69,7 @@
                 load_plugin(module_name)
                 if _plugins.get(module_name):
                     plugins.add(_plugins[module_name])
-    return plugins

func format_display_name(display_name: str, plugin_type: PluginType) -> str

说明: 设置插件名称颜色,根据不同类型插件设置颜色

参数:

  • display_name: 插件名称
  • plugin_type: 插件类型

返回: str: 设置后的插件名称

源代码在GitHub上查看
python
def format_display_name(display_name: str, plugin_type: PluginType) -> str:
+    return plugins

func format_display_name(display_name: str, plugin_type: PluginType) -> str

说明: 设置插件名称颜色,根据不同类型插件设置颜色

参数:

  • display_name: 插件名称
  • plugin_type: 插件类型

返回: str: 设置后的插件名称

源代码在GitHub上查看
python
def format_display_name(display_name: str, plugin_type: PluginType) -> str:
     color = 'y'
     match plugin_type:
         case PluginType.APPLICATION:
@@ -81,7 +81,7 @@
         case PluginType.SERVICE:
             color = 'c'
     return f'<{color}>{display_name} [{plugin_type.name}]</{color}>'

文档由 VitePress 构建 | API引用由 litedoc 生成

- + \ No newline at end of file diff --git a/dev/api/plugin/manager.html b/dev/api/plugin/manager.html index c312ecdf..d27d2407 100644 --- a/dev/api/plugin/manager.html +++ b/dev/api/plugin/manager.html @@ -8,9 +8,9 @@ - + - + @@ -20,7 +20,7 @@ - + \ No newline at end of file diff --git a/dev/api/plugin/model.html b/dev/api/plugin/model.html index 2bf1cec3..a9a31219 100644 --- a/dev/api/plugin/model.html +++ b/dev/api/plugin/model.html @@ -8,20 +8,20 @@ - + - + - + -
Skip to content

模块 liteyuki.plugin.model

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/24 上午12:02 @Author : snowykami @Email : snowykami@outlook.com @File : model.py @Software: PyCharm

class PluginType(Enum)

attr APPLICATION = 'application'

attr SERVICE = 'service'

attr MODULE = 'module'

attr UNCLASSIFIED = 'unclassified'

attr TEST = 'test'

class PluginMetadata(BaseModel)

attr name: str = NO_DEFAULT

attr description: str = ''

attr usage: str = ''

attr type: PluginType = PluginType.UNCLASSIFIED

attr author: str = ''

attr homepage: str = ''

attr extra: dict[str, Any] = {}

class Plugin(BaseModel)

func hash self

源代码在GitHub上查看
python
def __hash__(self):
+    
Skip to content

模块 liteyuki.plugin.model

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/24 上午12:02 @Author : snowykami @Email : snowykami@outlook.com @File : model.py @Software: PyCharm

class PluginType(Enum)

attr APPLICATION = 'application'

attr SERVICE = 'service'

attr MODULE = 'module'

attr UNCLASSIFIED = 'unclassified'

attr TEST = 'test'

class PluginMetadata(BaseModel)

attr name: str = NO_DEFAULT

attr description: str = ''

attr usage: str = ''

attr type: PluginType = PluginType.UNCLASSIFIED

attr author: str = ''

attr homepage: str = ''

attr extra: dict[str, Any] = {}

class Plugin(BaseModel)


func hash self

源代码在GitHub上查看
python
def __hash__(self):
     return hash(self.module_name)

attr model_config = {'arbitrary_types_allowed': True}

attr name: str = NO_DEFAULT

attr module: ModuleType = NO_DEFAULT

attr module_name: str = NO_DEFAULT

attr metadata: Optional[PluginMetadata] = None

文档由 VitePress 构建 | API引用由 litedoc 生成

- + \ No newline at end of file diff --git a/dev/api/plugins/index.html b/dev/api/plugins/index.html index cae63ffe..855e1d9b 100644 --- a/dev/api/plugins/index.html +++ b/dev/api/plugins/index.html @@ -8,9 +8,9 @@ - + - + @@ -20,7 +20,7 @@ - + \ No newline at end of file diff --git a/dev/api/plugins/liteecho.html b/dev/api/plugins/liteecho.html index a2aa5b06..051a2417 100644 --- a/dev/api/plugins/liteecho.html +++ b/dev/api/plugins/liteecho.html @@ -8,21 +8,21 @@ - + - + - + -
Skip to content

模块 liteyuki.plugins.liteecho

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/22 下午12:31 @Author : snowykami @Email : snowykami@outlook.com @File : liteecho.py @Software: PyCharm

@on_startswith(['liteecho'], rule=is_su_rule).handle()

async func liteecho(event: MessageEvent)

源代码在GitHub上查看
python
@on_startswith(['liteecho'], rule=is_su_rule).handle()
+    
Skip to content

模块 liteyuki.plugins.liteecho

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/22 下午12:31 @Author : snowykami @Email : snowykami@outlook.com @File : liteecho.py @Software: PyCharm


@on_startswith(['liteecho'], rule=is_su_rule).handle()

async func liteecho(event: MessageEvent)

源代码在GitHub上查看
python
@on_startswith(['liteecho'], rule=is_su_rule).handle()
 async def liteecho(event: MessageEvent):
     event.reply(event.raw_message.strip()[8:].strip())

文档由 VitePress 构建 | API引用由 litedoc 生成

- + \ No newline at end of file diff --git a/dev/api/plugins/plugin_loader/index.html b/dev/api/plugins/plugin_loader/index.html index dfd6abd3..4bc6ae3a 100644 --- a/dev/api/plugins/plugin_loader/index.html +++ b/dev/api/plugins/plugin_loader/index.html @@ -8,23 +8,23 @@ - + - + - + -
Skip to content

模块 liteyuki.plugins.plugin_loader

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/11 下午10:02 @Author : snowykami @Email : snowykami@outlook.com @File : init.py.py @Software: PyCharm

func default_plugins_loader()

说明: 默认插件加载器,应在初始化时调用

源代码在GitHub上查看
python
def default_plugins_loader():
+    
Skip to content

模块 liteyuki.plugins.plugin_loader

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/11 下午10:02 @Author : snowykami @Email : snowykami@outlook.com @File : init.py.py @Software: PyCharm


func default_plugins_loader()

说明: 默认插件加载器,应在初始化时调用

源代码在GitHub上查看
python
def default_plugins_loader():
     for plugin in get_config('liteyuki.plugins', []):
         load_plugin(plugin)
     for plugin_dir in get_config('liteyuki.plugin_dirs', ['src/liteyuki_plugins']):
         load_plugins(plugin_dir)

文档由 VitePress 构建 | API引用由 litedoc 生成

- + \ No newline at end of file diff --git a/dev/api/utils.html b/dev/api/utils.html index 04ce08bc..cac6c6d9 100644 --- a/dev/api/utils.html +++ b/dev/api/utils.html @@ -8,24 +8,24 @@ - + - + - + -
Skip to content

模块 liteyuki.utils

一些常用的工具类,部分来源于 nonebot 并遵循其许可进行修改

func is_coroutine_callable(call: Callable[..., Any]) -> bool

说明: 判断是否为协程可调用对象

参数:

  • call: 可调用对象

返回: bool: 是否为协程可调用对象

源代码在GitHub上查看
python
def is_coroutine_callable(call: Callable[..., Any]) -> bool:
+    
Skip to content

模块 liteyuki.utils

一些常用的工具类,部分来源于 nonebot 并遵循其许可进行修改


func is_coroutine_callable(call: Callable[..., Any]) -> bool

说明: 判断是否为协程可调用对象

参数:

  • call: 可调用对象

返回: bool: 是否为协程可调用对象

源代码在GitHub上查看
python
def is_coroutine_callable(call: Callable[..., Any]) -> bool:
     if inspect.isroutine(call):
         return inspect.iscoroutinefunction(call)
     if inspect.isclass(call):
         return False
     func_ = getattr(call, '__call__', None)
-    return inspect.iscoroutinefunction(func_)

func run_coroutine(*coro: Coroutine)

说明: 运行协程

参数:

  • coro:
源代码在GitHub上查看
python
def run_coroutine(*coro: Coroutine):
+    return inspect.iscoroutinefunction(func_)

func run_coroutine(*coro: Coroutine)

说明: 运行协程

参数:

  • coro:
源代码在GitHub上查看
python
def run_coroutine(*coro: Coroutine):
     try:
         loop = asyncio.get_running_loop()
         if loop.is_running():
@@ -40,19 +40,19 @@
         loop.run_until_complete(asyncio.gather(*coro))
         loop.close()
     except Exception as e:
-        logger.error(f'Exception occurred: {e}')

func run_coroutine_in_thread(*coro: Coroutine)

说明: 在新线程中运行协程

参数:

  • coro:
源代码在GitHub上查看
python
def run_coroutine_in_thread(*coro: Coroutine):
-    threading.Thread(target=run_coroutine, args=coro, daemon=True).start()

func path_to_module_name(path: Path) -> str

说明: 转换路径为模块名

参数:

  • path: 路径a/b/c/d -> a.b.c.d

返回: str: 模块名

源代码在GitHub上查看
python
def path_to_module_name(path: Path) -> str:
+        logger.error(f'Exception occurred: {e}')

func run_coroutine_in_thread(*coro: Coroutine)

说明: 在新线程中运行协程

参数:

  • coro:
源代码在GitHub上查看
python
def run_coroutine_in_thread(*coro: Coroutine):
+    threading.Thread(target=run_coroutine, args=coro, daemon=True).start()

func path_to_module_name(path: Path) -> str

说明: 转换路径为模块名

参数:

  • path: 路径a/b/c/d -> a.b.c.d

返回: str: 模块名

源代码在GitHub上查看
python
def path_to_module_name(path: Path) -> str:
     rel_path = path.resolve().relative_to(Path.cwd().resolve())
     if rel_path.stem == '__init__':
         return '.'.join(rel_path.parts[:-1])
     else:
-        return '.'.join(rel_path.parts[:-1] + (rel_path.stem,))

func async_wrapper(func: Callable[..., Any]) -> Callable[..., Coroutine]

说明: 异步包装器

参数:

  • func: Sync Callable

返回: Coroutine: Asynchronous Callable

源代码在GitHub上查看
python
def async_wrapper(func: Callable[..., Any]) -> Callable[..., Coroutine]:
+        return '.'.join(rel_path.parts[:-1] + (rel_path.stem,))

func async_wrapper(func: Callable[..., Any]) -> Callable[..., Coroutine]

说明: 异步包装器

参数:

  • func: Sync Callable

返回: Coroutine: Asynchronous Callable

源代码在GitHub上查看
python
def async_wrapper(func: Callable[..., Any]) -> Callable[..., Coroutine]:
 
     async def wrapper(*args, **kwargs):
         return func(*args, **kwargs)
     wrapper.__signature__ = inspect.signature(func)
     return wrapper

文档由 VitePress 构建 | API引用由 litedoc 生成

- + \ No newline at end of file diff --git a/dev/comm.html b/dev/comm.html index d2915fdf..41153aa8 100644 --- a/dev/comm.html +++ b/dev/comm.html @@ -8,9 +8,9 @@ - + - + @@ -62,7 +62,7 @@ shared_memory.set("key", "value") # 设置共享内存 value = shared_memory.get("key") # 获取共享内存

源代码:liteyuki/comm/storage.py

文档由 VitePress 构建 | API引用由 litedoc 生成

- + \ No newline at end of file diff --git a/dev/guide.html b/dev/guide.html index 427df805..9bc39fec 100644 --- a/dev/guide.html +++ b/dev/guide.html @@ -8,12 +8,12 @@ - + - + - - + + @@ -21,7 +21,7 @@
Skip to content

开发指南

如何开发

插件开发无需阅读本文档,请阅读插件开发文档API 引用

如需往轻雪仓库提交代码,请阅读以下内容:

  1. 首先fork一份轻雪仓库到你的个人/组织账户下。
  2. 在你的仓库中进行开发。
  3. 在你的仓库中创建一个新的分支,将你的代码提交到这个分支。
  4. 在你的仓库中创建一个Pull Request,将你的分支合并到轻雪仓库的main分支。

参与开发默认你已经了解Python语言和轻雪框架的基本使用方法,如果是文档相关的开发,请确保你了解Markdown语法和基本前端知识。 出现冲突请与仓库维护者联系。

建议

  • 开发过程中可以使用mypy, flake8, black等工具进行代码检查和格式化。
  • 启用开发者模式,可以在config.yml中设置dev_mode: true,这样可以在控制台看到更多的调试信息。

项目结构

  • main.py: 机器人入口文件
  • liteyuki: 框架目录(liteyukibot)
  • src: 机器人源码目录
    • liteyuki_plugins: 轻雪插件目录
    • nonebot_plugins: Nonebot插件目录
    • resources: 内置资源包目录
    • utils: 工具目录
  • tests: 单元测试目录
  • docs: 文档目录
    • en: 英文文档
    • zh: 中文文档
  • docker: Docker相关内容目录

其中,liteyuki框架是包含在LiteyukiBot应用中的,所以此项目既是LiteyukiBot应用仓库,同时也是liteyuki框架的仓库

src目录下为应用程序部分,业务逻辑请在此目录下进行开发,liteyuki_pluginsnonebot_plugins目录下为插件目录,插件开发请在此目录下进行开发。

规范化

  • 代码请遵循PEP8Google Python Style Guide
  • 提交到轻雪仓库的代码,请遵循以下规范:
    • 请确保代码是可运行的,没有危害的。
    • 请确保代码的类型提示是正确的。
    • 请确保注释风格为Google DocstringLiteyuki Docstring(推荐)以保证Litedoc能够正确解析并生成文档。
    • 字符串请使用双引号",尽量避免使用单引号',但在嵌套字符串时可以使用单引号。
    • 若有面向普通用户部分,请确保文档是完善的(每种语言都有对应的文档)。
  • commit message请遵循以下规范:
    • 应在每次完成一个功能或修复一个bug后提交代码,不要将多个功能或多个bug的代码混在一起提交。
    • 我们使用gitmoji来标记commit的类型,如:sparkles:表示引入新功能,:bug:表示修复bug等,具体请参考gitmoji
    • commit message的格式为<emoji> [type:] <message>,如:sparkles: feat: 给event添加新字段, 其中type字段为commit类型且可选,message字段为简短的描述,总结来说就是你干了什么。
    • 不限制commit message的语言,有条件可以使用中英双语。
  • 文档请遵循Markdown语法,并且支持vitepress相关内容:
    • 修订文档时,每个语言的文档都要修订。
    • 请确保文档内的链接是正确的,不要出现无法访问的死链接。
    • 请确保用户文档是通俗易懂的,开发文档是详细的。

最后

  • 本项目是一个非盈利的开源项目,我们欢迎任何人参与开发,你的贡献将会使轻雪变得更好。

感谢以下贡献者!

Contributors

文档由 VitePress 构建 | API引用由 litedoc 生成

- + \ No newline at end of file diff --git a/dev/lyfunc.html b/dev/lyfunc.html index 67b35aed..adc300dd 100644 --- a/dev/lyfunc.html +++ b/dev/lyfunc.html @@ -8,9 +8,9 @@ - + - + @@ -39,7 +39,7 @@ sleep 0.2 nohup function poke await

API

理论上所有基于onebotv11的api都可调用,不同Adapter api也有差别.

Onebot v11 API文档

结束关键字

由于LiteyukiBot基于异步运行, 所以在编写lyfunction时也要注意异步的调用,避免出现"单线程走到底"的情况是效率提升的关键.

await 异步任务结束关键字,用于结束当前已完成function的执行

WARNING

但若出现非单function的情况,有一个task任务没有完成而await被执行了,那么当前所有函数包的task都会被截停销毁

TIP

编写轻雪函数推荐你使用VS Code插件Liteyuki Function实现语法高亮

文档由 VitePress 构建 | API引用由 litedoc 生成

- + \ No newline at end of file diff --git a/dev/plugin.html b/dev/plugin.html index 52b6e5d1..f40b08aa 100644 --- a/dev/plugin.html +++ b/dev/plugin.html @@ -8,9 +8,9 @@ - + - + @@ -51,7 +51,7 @@ liteyuki.restart_process("nonebot") # 调用重启进程方法

加载插件

方法1

  • 在配置文件中的liteyuki.plugins中添加你的插件路径,例如watchdog_plugin,重启轻雪即可加载插件。

方法2

  • 使用开发工具快速运行插件,无需手动创建实例
  • 创建入口文件,例如main.py,并在其中写入以下代码
python
from liteyuki.dev.plugin import run_plugins
 
 run_plugins("watchdog_plugin")

然后运行python main.py即可启动插件

启用插件后,我们在src/nonebot_plugins下创建一个文件,例如test.py,并在其中写入一些代码,保存后轻雪会自动重载NoneBot进程

文档由 VitePress 构建 | API引用由 litedoc 生成

- + \ No newline at end of file diff --git a/dev/resource.html b/dev/resource.html index 075e8f77..b8253789 100644 --- a/dev/resource.html +++ b/dev/resource.html @@ -8,9 +8,9 @@ - + - + @@ -32,7 +32,7 @@ description: "资源包描述" # 你可以自定义一些信息,但请保证以上三个字段 ...
  • 资源包加载遵循一个优先级,即后加载的资源包会覆盖前面的资源包,例如,你在A包中定义了一个index.html文件,B包也定义了一个index.html文件,那么加载B包后,A包中的index.html文件会被覆盖
  • 对于不同资源包的不同文件,是可以相对引用的,例如你在A中定义了templates/index.html,在B中定义了templates/style.css,可以在A的index.html中用./style.css相对路径引用B中的css

TIP

资源包的结构会随着轻雪的更新而有变动,第三方资源包开发者需要注意版本兼容性,同时用户也应该自行选择可用的资源包

文档由 VitePress 构建 | API引用由 litedoc 生成

- + \ No newline at end of file diff --git a/en/deploy/config.html b/en/deploy/config.html index 35326a81..55d019ce 100644 --- a/en/deploy/config.html +++ b/en/deploy/config.html @@ -8,9 +8,9 @@ - + - + @@ -48,7 +48,7 @@ debug: false # Debug mode, if true, Liteyuki will output more detailed logs dev_mode: false # development mode, if true, Liteyuki will load all plugins in the development directory ...
yaml

Example: Configuration of OneBot implementation side connected to NoneBot

In production environments, it is recommended to use reverse WebSocket The fields provided by different implementation sides may be different, but basically the same. Here is a reference value

FieldsValueDescription
protocolReverse WebSocketLiteyuki-NoneBot as server
addressws://127.0.0.1:20216/onebot/v11/wsThe address depends on the configuration file, the default is `
AccessToken""If you have configured AccessToken for Liteyuki, please fill in the same value here
  • To use other communication methods, please visit OneBot Adapter for detailed information

Other

  • Liteyuki is not limited to the OneBot adapter and NoneBot2. You can use any adapter supported by NoneBot2 or use the Liteyuki message delivery plugin

Documentation built with VitePress | API references generated by litedoc

- + \ No newline at end of file diff --git a/en/deploy/fandq.html b/en/deploy/fandq.html index e4216f34..7159a109 100644 --- a/en/deploy/fandq.html +++ b/en/deploy/fandq.html @@ -8,9 +8,9 @@ - + - + @@ -20,7 +20,7 @@
Skip to content

FAQ

Frequently Asked Questions

  • There are too many python interpreters on my computer, how do I know which one to use?

    • You can specify which python interpreter to use by using the full path to the python executable, for example, /path/to/python main.py
    • Use virtual environments to avoid conflicts between different python interpreters
  • Why does the bot not respond after I start it?

    • Please check the configuration file command_start or superusers, make sure you have permission to use the command and send it correctly
    • Make sure the command header does not conflict with nickname{}, for example, a command is help, but the Bot nickname has a help, then it will be parsed as a nickname instead of a command
  • Update Liteyuki failed, error InvalidGitRepositoryError

    • Please install Git correctly and deploy Liteyuki using cloning instead of direct download
  • How to log in to chat platforms such as Telegram?

    • If you have this question, it means you don't know much about this project. This project does not implement the login function, only the message processing and response. The login function is provided by the implementation side (protocol side). The implementation side itself does not handle response logic. It processes and reports messages to Liteyuki according to the OneBot standard. You need to use an implementation side that complies with the OneBot standard to connect to Liteyuki and report messages to Liteyuki. Some recommended implementation sides have been listed below
  • Playwright installation failed

    • Enter playwright install to install the browser
  • Some plugins report errors after installation and cannot be started

    • Please refer to the plugin documentation first, confirm that the necessary configuration items of the plugin are intact, and if the problem persists, please contact the plugin author or start Liteyuki in safe mode safe_mode: true. In safe mode, you can use npm uninstall to uninstall problematic plugins

Other questions

  1. Lagrange.OneBot, based on Lagrange.Core, a Linux QQ implementation, supports OneBotv11 protocol
  2. LLOneBot, a plugin for Liteloader NTQQ, supports OneBotv11 protocol
  3. OpenShamrock, based on Lsposed, supports kritor protocol
  4. TRSS-Yunzai, based on Node.js, supports OneBotv11 protocol
  5. go-cqhttp,A QQ Client based on go, supports OneBotv11 protocol
  6. Gensokyo, use QQ protocol
  1. MinecraftOneBot, We develop a Minecraft server chat bot

Other project encountered issues, please prioritize the documentation and issues of the project itself, don't ask LiteyukiBot developers

Acknowledgements

Documentation built with VitePress | API references generated by litedoc

- + \ No newline at end of file diff --git a/en/deploy/install.html b/en/deploy/install.html index 4b7b8fb0..be4b6c6e 100644 --- a/en/deploy/install.html +++ b/en/deploy/install.html @@ -8,9 +8,9 @@ - + - + @@ -27,7 +27,7 @@ pip install -r requirements.txt # start the bot! python main.py

TIP

It is recommended to use a virtual environment to run Liteyuki to avoid dependency conflicts. You can use python -m venv .venv to create a virtual environment, and then use .venv\Scripts\activate to activate the virtual environment (use source .venv/bin/activate to activate on Linux).

Run with Docker

  1. Install Docker
  2. Clone Repo git clone https://github.com/LiteyukiStudio/LiteyukiBot --depth=1
  3. Change directory cd LiteyukiBot
  4. Build docker image docker build -t liteyukibot .
  5. Run container docker run -p 20216:20216 -v $(pwd):/liteyukibot -v $(pwd)/.cache:/root/.cache liteyukibot

TIP

If you are using Windows, please use the absolute project directory /path/to/LiteyukiBot instead of $&#40;pwd&#41;
If you have modified the port number, please replace 20216:20216 with your port number

Use TRSS Script

TRSS_Liteyuki Management Script, which provides a more convenient way to manage LiteyukiBot, recommended to use Arch Linux

Device Requirements

  • Windows system version minimum Windows10+/Windows Server 2019+
  • Linux system requires Python3.10+, recommended Ubuntu 20.04+
  • CPU: at least 1vCPU
  • Memory: Bot without other plugins will occupy 300~500MB, including chromium and node processes, other plugins depend on specific plugins, recommended 1GB or more
  • Disk: at least 1GB of space

WARNING

If there are multiple environments on the device, please use path/to/python -m pip install -r requirements.txt to install dependencies, path/to/python is the path to your Python executable

WARNING

Liteyuki's update function depends on Git. If you do not have Git installed and run the source code directly, you will not be able to use the update function

For other questions, please refer to FAQ

Documentation built with VitePress | API references generated by litedoc

- + \ No newline at end of file diff --git a/en/dev/api/bot/index.html b/en/dev/api/bot/index.html index b09d4b74..bd4f14b0 100644 --- a/en/dev/api/bot/index.html +++ b/en/dev/api/bot/index.html @@ -8,18 +8,18 @@ - + - + - + -
Skip to content

Module liteyuki.bot

class LiteyukiBot

func __init__(self, **kwargs) -> None

Description: 初始化轻雪实例

Arguments:

  • **kwargs: 配置
Source code or View on GitHub
python
def __init__(self, **kwargs) -> None:
+    
Skip to content

Module liteyuki.bot

class LiteyukiBot


func __init__(self, **kwargs) -> None

Description: 初始化轻雪实例

Arguments:

  • **kwargs: 配置
Source code or View on GitHub
python
def __init__(self, **kwargs) -> None:
     """常规操作"""
     print_logo()
     global _BOT_INSTANCE
@@ -38,21 +38,21 @@
     self.stop_event = threading.Event()
     self.call_restart_count = 0
     '加载插件加载器'
-    load_plugin('liteyuki.plugins.plugin_loader')

func run(self)

Description: 外部启动接口

Source code or View on GitHub
python
def run(self):
+    load_plugin('liteyuki.plugins.plugin_loader')

func run(self)

Description: 外部启动接口

Source code or View on GitHub
python
def run(self):
     self.process_manager.start_all()
     try:
         asyncio.run(self._run())
     except KeyboardInterrupt:
         logger.opt(colors=True).info('<y>Liteyuki is stopping...</y>')
         self.stop()
-    logger.opt(colors=True).info('<y>Liteyuki is stopped...</y>')

async func keep_alive(self)

Description: 保持轻雪运行

Source code or View on GitHub
python
async def keep_alive(self):
+    logger.opt(colors=True).info('<y>Liteyuki is stopped...</y>')

async func keep_alive(self)

Description: 保持轻雪运行

Source code or View on GitHub
python
async def keep_alive(self):
     logger.info('Liteyuki is keeping alive...')
     try:
         while not self.stop_event.is_set():
             await asyncio.sleep(0.1)
     except Exception:
         logger.info('Liteyuki is exiting...')
-        self.stop()

func restart(self, delay: int = 0)

Description: 重启轻雪本体

Arguments:

  • delay (int, optional): 延迟重启时间. Defaults to 0.
Source code or View on GitHub
python
def restart(self, delay: int=0):
+        self.stop()

func restart(self, delay: int = 0)

Description: 重启轻雪本体

Arguments:

  • delay (int, optional): 延迟重启时间. Defaults to 0.
Source code or View on GitHub
python
def restart(self, delay: int=0):
     if self.call_restart_count < 1:
         executable = sys.executable
         args = sys.argv
@@ -69,31 +69,31 @@
         self.process_manager.terminate_all()
         threading.Thread(target=os.system, args=(f"{cmd} {executable} {' '.join(args)}",), daemon=True).start()
         sys.exit(0)
-    self.call_restart_count += 1

func restart_process(self, name: Optional[str] = None)

Description: 停止轻雪

Arguments:

Source code or View on GitHub
python
def restart_process(self, name: Optional[str]=None):
+    self.call_restart_count += 1

func restart_process(self, name: Optional[str] = None)

Description: 停止轻雪

Arguments:

Source code or View on GitHub
python
def restart_process(self, name: Optional[str]=None):
     if name is not None:
         chan_active = get_channel(f'{name}-active')
         chan_active.send(1)
     else:
         for process_name in self.process_manager.processes:
             chan_active = get_channel(f'{process_name}-active')
-            chan_active.send(1)

func init(self, *args, **kwargs)

Description: 初始化轻雪, 自动调用

Arguments:

  • *args: 参数
  • **kwargs: 关键字参数
Source code or View on GitHub
python
def init(self, *args, **kwargs):
-    self.init_logger()

func init_logger(self)

Description: 初始化日志

Source code or View on GitHub
python
def init_logger(self):
-    init_log(config=self.config)

func stop(self)

Description: 停止轻雪

Source code or View on GitHub
python
def stop(self):
+            chan_active.send(1)

func init(self, *args, **kwargs)

Description: 初始化轻雪, 自动调用

Arguments:

  • *args: 参数
  • **kwargs: 关键字参数
Source code or View on GitHub
python
def init(self, *args, **kwargs):
+    self.init_logger()

func init_logger(self)

Description: 初始化日志

Source code or View on GitHub
python
def init_logger(self):
+    init_log(config=self.config)

func stop(self)

Description: 停止轻雪

Source code or View on GitHub
python
def stop(self):
     self.process_manager.terminate_all()
-    self.stop_event.set()

func on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

Description: 注册启动前的函数

Arguments:

Return: LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:
-    return self.lifespan.on_before_start(func)

func on_after_start(self, func: LIFESPAN_FUNC)

Description: 注册启动后的函数

Arguments:

Return: LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_after_start(self, func: LIFESPAN_FUNC):
-    return self.lifespan.on_after_start(func)

func on_after_shutdown(self, func: LIFESPAN_FUNC)

Description: 注册停止后的函数:未实现

Arguments:

Return: LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_after_shutdown(self, func: LIFESPAN_FUNC):
-    return self.lifespan.on_after_shutdown(func)

func on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC)

Description: 注册进程停止前的函数,为子进程停止时调用

Arguments:

Return: PROCESS_LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC):
-    return self.lifespan.on_before_process_shutdown(func)

func on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC

Description: 注册进程重启前的函数,为子进程重启时调用

Arguments:

Return: PROCESS_LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC:
-    return self.lifespan.on_before_process_restart(func)

func on_after_restart(self, func: LIFESPAN_FUNC)

Description: 注册重启后的函数:未实现

Arguments:

Return: LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_after_restart(self, func: LIFESPAN_FUNC):
-    return self.lifespan.on_after_restart(func)

func get_bot() -> LiteyukiBot

Description: 获取轻雪实例

Return: LiteyukiBot: 轻雪实例

Source code or View on GitHub
python
def get_bot() -> LiteyukiBot:
+    self.stop_event.set()

func on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

Description: 注册启动前的函数

Arguments:

Return: LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:
+    return self.lifespan.on_before_start(func)

func on_after_start(self, func: LIFESPAN_FUNC)

Description: 注册启动后的函数

Arguments:

Return: LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_after_start(self, func: LIFESPAN_FUNC):
+    return self.lifespan.on_after_start(func)

func on_after_shutdown(self, func: LIFESPAN_FUNC)

Description: 注册停止后的函数:未实现

Arguments:

Return: LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_after_shutdown(self, func: LIFESPAN_FUNC):
+    return self.lifespan.on_after_shutdown(func)

func on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC)

Description: 注册进程停止前的函数,为子进程停止时调用

Arguments:

Return: PROCESS_LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC):
+    return self.lifespan.on_before_process_shutdown(func)

func on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC

Description: 注册进程重启前的函数,为子进程重启时调用

Arguments:

Return: PROCESS_LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC:
+    return self.lifespan.on_before_process_restart(func)

func on_after_restart(self, func: LIFESPAN_FUNC)

Description: 注册重启后的函数:未实现

Arguments:

Return: LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_after_restart(self, func: LIFESPAN_FUNC):
+    return self.lifespan.on_after_restart(func)

func get_bot() -> LiteyukiBot

Description: 获取轻雪实例

Return: LiteyukiBot: 轻雪实例

Source code or View on GitHub
python
def get_bot() -> LiteyukiBot:
     if IS_MAIN_PROCESS:
         if _BOT_INSTANCE is None:
             raise RuntimeError('Liteyuki instance not initialized.')
         return _BOT_INSTANCE
     else:
-        raise RuntimeError("Can't get bot instance in sub process.")

func get_config(key: str, default: Any = None) -> Any

Description: 获取配置

Arguments:

  • key (str): 配置键
  • default (Any, optional): 默认值. Defaults to None.

Return: Any: 配置值

Source code or View on GitHub
python
def get_config(key: str, default: Any=None) -> Any:
-    return get_bot().config.get(key, default)

func get_config_with_compat(key: str, compat_keys: tuple[str], default: Any = None) -> Any

Description: 获取配置,兼容旧版本

Arguments:

  • key (str): 配置键
  • compat_keys (tuplestr): 兼容键
  • default (Any, optional): 默认值. Defaults to None.

Return: Any: 配置值

Source code or View on GitHub
python
def get_config_with_compat(key: str, compat_keys: tuple[str], default: Any=None) -> Any:
+        raise RuntimeError("Can't get bot instance in sub process.")

func get_config(key: str, default: Any = None) -> Any

Description: 获取配置

Arguments:

  • key (str): 配置键
  • default (Any, optional): 默认值. Defaults to None.

Return: Any: 配置值

Source code or View on GitHub
python
def get_config(key: str, default: Any=None) -> Any:
+    return get_bot().config.get(key, default)

func get_config_with_compat(key: str, compat_keys: tuple[str], default: Any = None) -> Any

Description: 获取配置,兼容旧版本

Arguments:

  • key (str): 配置键
  • compat_keys (tuplestr): 兼容键
  • default (Any, optional): 默认值. Defaults to None.

Return: Any: 配置值

Source code or View on GitHub
python
def get_config_with_compat(key: str, compat_keys: tuple[str], default: Any=None) -> Any:
     if key in get_bot().config:
         return get_bot().config[key]
     for compat_key in compat_keys:
@@ -101,7 +101,7 @@
             logger.warning(f'Config key "{compat_key}" will be deprecated, use "{key}" instead.')
             return get_bot().config[compat_key]
     return default

Documentation built with VitePress | API references generated by litedoc

- + \ No newline at end of file diff --git a/en/dev/api/bot/lifespan.html b/en/dev/api/bot/lifespan.html index cfc462bc..da4a7bc7 100644 --- a/en/dev/api/bot/lifespan.html +++ b/en/dev/api/bot/lifespan.html @@ -8,53 +8,53 @@ - + - + - + -
Skip to content

Module liteyuki.bot.lifespan

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/23 下午8:24 @Author : snowykami @Email : snowykami@outlook.com @File : lifespan.py @Software: PyCharm

var SYNC_LIFESPAN_FUNC

  • Description: 同步生命周期函数

  • Type: TypeAlias

  • Default: Callable[[], Any]

var ASYNC_LIFESPAN_FUNC

  • Description: 异步生命周期函数

  • Type: TypeAlias

  • Default: Callable[[], Awaitable[Any]]

var LIFESPAN_FUNC

  • Description: 生命周期函数

  • Type: TypeAlias

  • Default: SYNC_LIFESPAN_FUNC | ASYNC_LIFESPAN_FUNC

var SYNC_PROCESS_LIFESPAN_FUNC

  • Description: 同步进程生命周期函数

  • Type: TypeAlias

  • Default: Callable[[str], Any]

var ASYNC_PROCESS_LIFESPAN_FUNC

  • Description: 异步进程生命周期函数

  • Type: TypeAlias

  • Default: Callable[[str], Awaitable[Any]]

var PROCESS_LIFESPAN_FUNC

  • Description: 进程函数

  • Type: TypeAlias

  • Default: SYNC_PROCESS_LIFESPAN_FUNC | ASYNC_PROCESS_LIFESPAN_FUNC

class Lifespan

func __init__(self) -> None

Description: 轻雪生命周期管理,启动、停止、重启

Source code or View on GitHub
python
def __init__(self) -> None:
+    
Skip to content

Module liteyuki.bot.lifespan

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/23 下午8:24 @Author : snowykami @Email : snowykami@outlook.com @File : lifespan.py @Software: PyCharm

var SYNC_LIFESPAN_FUNC

  • Description: 同步生命周期函数

  • Type: TypeAlias

  • Default: Callable[[], Any]

var ASYNC_LIFESPAN_FUNC

  • Description: 异步生命周期函数

  • Type: TypeAlias

  • Default: Callable[[], Awaitable[Any]]

var LIFESPAN_FUNC

  • Description: 生命周期函数

  • Type: TypeAlias

  • Default: SYNC_LIFESPAN_FUNC | ASYNC_LIFESPAN_FUNC

var SYNC_PROCESS_LIFESPAN_FUNC

  • Description: 同步进程生命周期函数

  • Type: TypeAlias

  • Default: Callable[[str], Any]

var ASYNC_PROCESS_LIFESPAN_FUNC

  • Description: 异步进程生命周期函数

  • Type: TypeAlias

  • Default: Callable[[str], Awaitable[Any]]

var PROCESS_LIFESPAN_FUNC

  • Description: 进程函数

  • Type: TypeAlias

  • Default: SYNC_PROCESS_LIFESPAN_FUNC | ASYNC_PROCESS_LIFESPAN_FUNC

class Lifespan


func __init__(self) -> None

Description: 轻雪生命周期管理,启动、停止、重启

Source code or View on GitHub
python
def __init__(self) -> None:
     self.life_flag: int = 0
     self._before_start_funcs: list[LIFESPAN_FUNC] = []
     self._after_start_funcs: list[LIFESPAN_FUNC] = []
     self._before_process_shutdown_funcs: list[PROCESS_LIFESPAN_FUNC] = []
     self._after_shutdown_funcs: list[LIFESPAN_FUNC] = []
     self._before_process_restart_funcs: list[PROCESS_LIFESPAN_FUNC] = []
-    self._after_restart_funcs: list[LIFESPAN_FUNC] = []

@staticmethod

async func run_funcs(funcs: Sequence[LIFESPAN_FUNC | PROCESS_LIFESPAN_FUNC], *args, **kwargs) -> None

Description: 并发运行异步函数

Arguments:

Source code or View on GitHub
python
@staticmethod
+    self._after_restart_funcs: list[LIFESPAN_FUNC] = []

@staticmethod

async func run_funcs(funcs: Sequence[LIFESPAN_FUNC | PROCESS_LIFESPAN_FUNC], *args, **kwargs) -> None

Description: 并发运行异步函数

Arguments:

Source code or View on GitHub
python
@staticmethod
 async def run_funcs(funcs: Sequence[LIFESPAN_FUNC | PROCESS_LIFESPAN_FUNC], *args, **kwargs) -> None:
     tasks = [func(*args, **kwargs) if is_coroutine_callable(func) else async_wrapper(func)(*args, **kwargs) for func in funcs]
-    await asyncio.gather(*tasks)

func on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

Description: 注册启动时的函数

Arguments:

Return: LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:
+    await asyncio.gather(*tasks)

func on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

Description: 注册启动时的函数

Arguments:

Return: LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_before_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:
     self._before_start_funcs.append(func)
-    return func

func on_after_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

Description: 注册启动时的函数

Arguments:

Return: LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_after_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:
+    return func

func on_after_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

Description: 注册启动时的函数

Arguments:

Return: LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_after_start(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:
     self._after_start_funcs.append(func)
-    return func

func on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC

Description: 注册进程停止前的函数

Arguments:

Return: PROCESS_LIFESPAN_FUNC: 进程生命周期函数

Source code or View on GitHub
python
def on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC:
+    return func

func on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC

Description: 注册进程停止前的函数

Arguments:

Return: PROCESS_LIFESPAN_FUNC: 进程生命周期函数

Source code or View on GitHub
python
def on_before_process_shutdown(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC:
     self._before_process_shutdown_funcs.append(func)
-    return func

func on_after_shutdown(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

Description: 注册停止后的函数

Arguments:

Return: LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_after_shutdown(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:
+    return func

func on_after_shutdown(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

Description: 注册停止后的函数

Arguments:

Return: LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_after_shutdown(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:
     self._after_shutdown_funcs.append(func)
-    return func

func on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC

Description: 注册进程重启前的函数

Arguments:

Return: PROCESS_LIFESPAN_FUNC: 进程生命周期函数

Source code or View on GitHub
python
def on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC:
+    return func

func on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC

Description: 注册进程重启前的函数

Arguments:

Return: PROCESS_LIFESPAN_FUNC: 进程生命周期函数

Source code or View on GitHub
python
def on_before_process_restart(self, func: PROCESS_LIFESPAN_FUNC) -> PROCESS_LIFESPAN_FUNC:
     self._before_process_restart_funcs.append(func)
-    return func

func on_after_restart(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

Description: 注册重启后的函数

Arguments:

Return: LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_after_restart(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:
+    return func

func on_after_restart(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC

Description: 注册重启后的函数

Arguments:

Return: LIFESPAN_FUNC: 生命周期函数

Source code or View on GitHub
python
def on_after_restart(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:
     self._after_restart_funcs.append(func)
-    return func

async func before_start(self) -> None

Description: 启动前钩子

Source code or View on GitHub
python
async def before_start(self) -> None:
+    return func

async func before_start(self) -> None

Description: 启动前钩子

Source code or View on GitHub
python
async def before_start(self) -> None:
     logger.debug('Running before_start functions')
-    await self.run_funcs(self._before_start_funcs)

async func after_start(self) -> None

Description: 启动后钩子

Source code or View on GitHub
python
async def after_start(self) -> None:
+    await self.run_funcs(self._before_start_funcs)

async func after_start(self) -> None

Description: 启动后钩子

Source code or View on GitHub
python
async def after_start(self) -> None:
     logger.debug('Running after_start functions')
-    await self.run_funcs(self._after_start_funcs)

async func before_process_shutdown(self, *args, **kwargs) -> None

Description: 停止前钩子

Source code or View on GitHub
python
async def before_process_shutdown(self, *args, **kwargs) -> None:
+    await self.run_funcs(self._after_start_funcs)

async func before_process_shutdown(self, *args, **kwargs) -> None

Description: 停止前钩子

Source code or View on GitHub
python
async def before_process_shutdown(self, *args, **kwargs) -> None:
     logger.debug('Running before_shutdown functions')
-    await self.run_funcs(self._before_process_shutdown_funcs, *args, **kwargs)

async func after_shutdown(self) -> None

Description: 停止后钩子 未实现

Source code or View on GitHub
python
async def after_shutdown(self) -> None:
+    await self.run_funcs(self._before_process_shutdown_funcs, *args, **kwargs)

async func after_shutdown(self) -> None

Description: 停止后钩子 未实现

Source code or View on GitHub
python
async def after_shutdown(self) -> None:
     logger.debug('Running after_shutdown functions')
-    await self.run_funcs(self._after_shutdown_funcs)

async func before_process_restart(self, *args, **kwargs) -> None

Description: 重启前钩子

Source code or View on GitHub
python
async def before_process_restart(self, *args, **kwargs) -> None:
+    await self.run_funcs(self._after_shutdown_funcs)

async func before_process_restart(self, *args, **kwargs) -> None

Description: 重启前钩子

Source code or View on GitHub
python
async def before_process_restart(self, *args, **kwargs) -> None:
     logger.debug('Running before_restart functions')
-    await self.run_funcs(self._before_process_restart_funcs, *args, **kwargs)

async func after_restart(self) -> None

Description: 重启后钩子 未实现

Source code or View on GitHub
python
async def after_restart(self) -> None:
+    await self.run_funcs(self._before_process_restart_funcs, *args, **kwargs)

async func after_restart(self) -> None

Description: 重启后钩子 未实现

Source code or View on GitHub
python
async def after_restart(self) -> None:
     logger.debug('Running after_restart functions')
     await self.run_funcs(self._after_restart_funcs)

Documentation built with VitePress | API references generated by litedoc

- + \ No newline at end of file diff --git a/en/dev/api/comm/channel.html b/en/dev/api/comm/channel.html index 7cf0a4ad..b463a935 100644 --- a/en/dev/api/comm/channel.html +++ b/en/dev/api/comm/channel.html @@ -8,18 +8,18 @@ - + - + - + -
Skip to content

Module liteyuki.comm.channel

本模块定义了一个通用的通道类,用于进程间通信

var SYNC_ON_RECEIVE_FUNC

  • Description: 同步接收函数

  • Type: TypeAlias

  • Default: Callable[[T], Any]

var ASYNC_ON_RECEIVE_FUNC

  • Description: 异步接收函数

  • Type: TypeAlias

  • Default: Callable[[T], Coroutine[Any, Any, Any]]

var ON_RECEIVE_FUNC

  • Description: 接收函数

  • Type: TypeAlias

  • Default: SYNC_ON_RECEIVE_FUNC | ASYNC_ON_RECEIVE_FUNC

var SYNC_FILTER_FUNC

  • Description: 同步过滤函数

  • Type: TypeAlias

  • Default: Callable[[T], bool]

var ASYNC_FILTER_FUNC

  • Description: 异步过滤函数

  • Type: TypeAlias

  • Default: Callable[[T], Coroutine[Any, Any, bool]]

var FILTER_FUNC

  • Description: 过滤函数

  • Type: TypeAlias

  • Default: SYNC_FILTER_FUNC | ASYNC_FILTER_FUNC

class Channel(Generic[T])

func __init__(self, name: str, type_check: Optional[bool] = None)

Description: 初始化通道

Arguments:

  • name: 通道ID
  • type_check: 是否开启类型检查, 若为空,则传入泛型默认开启,否则默认关闭
Source code or View on GitHub
python
def __init__(self, name: str, type_check: Optional[bool]=None):
+    
Skip to content

Module liteyuki.comm.channel

本模块定义了一个通用的通道类,用于进程间通信

var SYNC_ON_RECEIVE_FUNC

  • Description: 同步接收函数

  • Type: TypeAlias

  • Default: Callable[[T], Any]

var ASYNC_ON_RECEIVE_FUNC

  • Description: 异步接收函数

  • Type: TypeAlias

  • Default: Callable[[T], Coroutine[Any, Any, Any]]

var ON_RECEIVE_FUNC

  • Description: 接收函数

  • Type: TypeAlias

  • Default: SYNC_ON_RECEIVE_FUNC | ASYNC_ON_RECEIVE_FUNC

var SYNC_FILTER_FUNC

  • Description: 同步过滤函数

  • Type: TypeAlias

  • Default: Callable[[T], bool]

var ASYNC_FILTER_FUNC

  • Description: 异步过滤函数

  • Type: TypeAlias

  • Default: Callable[[T], Coroutine[Any, Any, bool]]

var FILTER_FUNC

  • Description: 过滤函数

  • Type: TypeAlias

  • Default: SYNC_FILTER_FUNC | ASYNC_FILTER_FUNC

class Channel(Generic[T])


func __init__(self, name: str, type_check: Optional[bool] = None)

Description: 初始化通道

Arguments:

  • name: 通道ID
  • type_check: 是否开启类型检查, 若为空,则传入泛型默认开启,否则默认关闭
Source code or View on GitHub
python
def __init__(self, name: str, type_check: Optional[bool]=None):
     self.conn_send, self.conn_recv = Pipe()
     self._conn_send_inner, self._conn_recv_inner = Pipe()
     self._closed = False
@@ -41,22 +41,22 @@
         _channel[name] = self
         logger.debug(f'Channel {name} initialized in main process')
     else:
-        logger.debug(f'Channel {name} initialized in sub process, should manually set in main process')

func send(self, data: T)

Description: 发送数据,发送函数为同步函数,没有异步的必要

Arguments:

  • data (T): 数据
Source code or View on GitHub
python
def send(self, data: T):
+        logger.debug(f'Channel {name} initialized in sub process, should manually set in main process')

func send(self, data: T)

Description: 发送数据,发送函数为同步函数,没有异步的必要

Arguments:

  • data (T): 数据
Source code or View on GitHub
python
def send(self, data: T):
     if self.type_check:
         _type = self._get_generic_type()
         if _type is not None and (not self._validate_structure(data, _type)):
             raise TypeError(f'Data must be an instance of {_type}, {type(data)} found')
     if self._closed:
         raise RuntimeError('Cannot send to a closed channel_')
-    self.conn_send.send(data)

func receive(self) -> T

Description: 同步接收数据,会阻塞线程

Return: T: 数据

Source code or View on GitHub
python
def receive(self) -> T:
+    self.conn_send.send(data)

func receive(self) -> T

Description: 同步接收数据,会阻塞线程

Return: T: 数据

Source code or View on GitHub
python
def receive(self) -> T:
     if self._closed:
         raise RuntimeError('Cannot receive from a closed channel_')
     while True:
         data = self.conn_recv.recv()
-        return data

async func async_receive(self) -> T

Description: 异步接收数据,会挂起等待

Return: T: 数据

Source code or View on GitHub
python
async def async_receive(self) -> T:
+        return data

async func async_receive(self) -> T

Description: 异步接收数据,会挂起等待

Return: T: 数据

Source code or View on GitHub
python
async def async_receive(self) -> T:
     loop = asyncio.get_running_loop()
     data = await loop.run_in_executor(None, self.receive)
-    return data

func on_receive(self, filter_func: Optional[FILTER_FUNC] = None) -> Callable[[Callable[[T], Any]], Callable[[T], Any]]

Description: 接收数据并执行函数

Arguments:

Return: Callable[[Callable[[T], Any]], Callable[[T], Any]]: 装饰器

Source code or View on GitHub
python
def on_receive(self, filter_func: Optional[FILTER_FUNC]=None) -> Callable[[Callable[[T], Any]], Callable[[T], Any]]:
+    return data

func on_receive(self, filter_func: Optional[FILTER_FUNC] = None) -> Callable[[Callable[[T], Any]], Callable[[T], Any]]

Description: 接收数据并执行函数

Arguments:

Return: Callable[[Callable[[T], Any]], Callable[[T], Any]]: 装饰器

Source code or View on GitHub
python
def on_receive(self, filter_func: Optional[FILTER_FUNC]=None) -> Callable[[Callable[[T], Any]], Callable[[T], Any]]:
     if not IS_MAIN_PROCESS:
         raise RuntimeError('on_receive can only be used in main process')
 
@@ -81,7 +81,7 @@
             self._on_sub_receive_func_ids.append(_func_id)
         _func_id += 1
         return func
-    return decorator

var active_channel

  • Description: 子进程可用的主动和被动通道

  • Type: Channel

  • Default: Channel(name='active_channel')

var passive_channel

  • Description: 被动通道

  • Type: Channel

  • Default: Channel(name='passive_channel')

var publish_channel

  • Description: 通道传递通道,主进程创建单例,子进程初始化时实例化

  • Type: Channel[tuple[str, dict[str, Any]]]

  • Default: Channel(name='publish_channel')

var channel_deliver_active_channel

  • Description: 通道传递通道,主进程创建单例,子进程初始化时实例化

  • Type: Channel[Channel[Any]]

  • Default: NO_DEFAULT

var channel_deliver_passive_channel

  • Description: 被动通道传递通道

  • Type: Channel[tuple[str, dict[str, Any]]]

  • Default: NO_DEFAULT

func set_channel(name: str, channel: Channel)

Description: 设置通道实例

Arguments:

  • name (str): 通道名称
  • channel (Channel): 通道实例
Source code or View on GitHub
python
def set_channel(name: str, channel: 'Channel'):
+    return decorator

var active_channel

  • Description: 子进程可用的主动和被动通道

  • Type: Channel

  • Default: Channel(name='active_channel')

var passive_channel

  • Description: 被动通道

  • Type: Channel

  • Default: Channel(name='passive_channel')

var publish_channel

  • Description: 通道传递通道,主进程创建单例,子进程初始化时实例化

  • Type: Channel[tuple[str, dict[str, Any]]]

  • Default: Channel(name='publish_channel')

var channel_deliver_active_channel

  • Description: 通道传递通道,主进程创建单例,子进程初始化时实例化

  • Type: Channel[Channel[Any]]

  • Default: NO_DEFAULT

var channel_deliver_passive_channel

  • Description: 被动通道传递通道

  • Type: Channel[tuple[str, dict[str, Any]]]

  • Default: NO_DEFAULT


func set_channel(name: str, channel: Channel)

Description: 设置通道实例

Arguments:

  • name (str): 通道名称
  • channel (Channel): 通道实例
Source code or View on GitHub
python
def set_channel(name: str, channel: 'Channel'):
     if not isinstance(channel, Channel):
         raise TypeError(f'channel_ must be an instance of Channel, {type(channel)} found')
     if IS_MAIN_PROCESS:
@@ -89,31 +89,31 @@
             raise ValueError(f'Channel {name} already exists')
         _channel[name] = channel
     else:
-        channel_deliver_passive_channel.send(('set_channel', {'name': name, 'channel_': channel}))

func set_channels(channels: dict[str, Channel])

Description: 设置通道实例

Arguments:

Source code or View on GitHub
python
def set_channels(channels: dict[str, 'Channel']):
+        channel_deliver_passive_channel.send(('set_channel', {'name': name, 'channel_': channel}))

func set_channels(channels: dict[str, Channel])

Description: 设置通道实例

Arguments:

Source code or View on GitHub
python
def set_channels(channels: dict[str, 'Channel']):
     for name, channel in channels.items():
-        set_channel(name, channel)

func get_channel(name: str) -> Channel

Description: 获取通道实例

Arguments:

  • name (str): 通道名称

Return: Channel: 通道实例

Source code or View on GitHub
python
def get_channel(name: str) -> 'Channel':
+        set_channel(name, channel)

func get_channel(name: str) -> Channel

Description: 获取通道实例

Arguments:

  • name (str): 通道名称

Return: Channel: 通道实例

Source code or View on GitHub
python
def get_channel(name: str) -> 'Channel':
     if IS_MAIN_PROCESS:
         return _channel[name]
     else:
         recv_chan = Channel[Channel[Any]]('recv_chan')
         channel_deliver_passive_channel.send(('get_channel', {'name': name, 'recv_chan': recv_chan}))
-        return recv_chan.receive()

func get_channels() -> dict[str, Channel]

Description: 获取通道实例们

Return: dict[str, Channel]: 通道实例

Source code or View on GitHub
python
def get_channels() -> dict[str, 'Channel']:
+        return recv_chan.receive()

func get_channels() -> dict[str, Channel]

Description: 获取通道实例们

Return: dict[str, Channel]: 通道实例

Source code or View on GitHub
python
def get_channels() -> dict[str, 'Channel']:
     if IS_MAIN_PROCESS:
         return _channel
     else:
         recv_chan = Channel[dict[str, Channel[Any]]]('recv_chan')
         channel_deliver_passive_channel.send(('get_channels', {'recv_chan': recv_chan}))
-        return recv_chan.receive()

var channel_deliver_active_channel

  • Description: 主动通道传递通道

  • Default: Channel(name='channel_deliver_active_channel')

var channel_deliver_passive_channel

  • Description: 被动通道传递通道

  • Default: Channel(name='channel_deliver_passive_channel')

@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'set_channel')

func on_set_channel(data: tuple[str, dict[str, Any]])

Source code or View on GitHub
python
@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'set_channel')
+        return recv_chan.receive()

var channel_deliver_active_channel

  • Description: 主动通道传递通道

  • Default: Channel(name='channel_deliver_active_channel')

var channel_deliver_passive_channel

  • Description: 被动通道传递通道

  • Default: Channel(name='channel_deliver_passive_channel')


@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'set_channel')

func on_set_channel(data: tuple[str, dict[str, Any]])

Source code or View on GitHub
python
@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'set_channel')
 def on_set_channel(data: tuple[str, dict[str, Any]]):
     name, channel = (data[1]['name'], data[1]['channel_'])
-    set_channel(name, channel)

@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'get_channel')

func on_get_channel(data: tuple[str, dict[str, Any]])

Source code or View on GitHub
python
@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'get_channel')
+    set_channel(name, channel)

@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'get_channel')

func on_get_channel(data: tuple[str, dict[str, Any]])

Source code or View on GitHub
python
@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'get_channel')
 def on_get_channel(data: tuple[str, dict[str, Any]]):
     name, recv_chan = (data[1]['name'], data[1]['recv_chan'])
-    recv_chan.send(get_channel(name))

@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'get_channels')

func on_get_channels(data: tuple[str, dict[str, Any]])

Source code or View on GitHub
python
@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'get_channels')
+    recv_chan.send(get_channel(name))

@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'get_channels')

func on_get_channels(data: tuple[str, dict[str, Any]])

Source code or View on GitHub
python
@channel_deliver_passive_channel.on_receive(filter_func=lambda data: data[0] == 'get_channels')
 def on_get_channels(data: tuple[str, dict[str, Any]]):
     recv_chan = data[1]['recv_chan']
     recv_chan.send(get_channels())

Documentation built with VitePress | API references generated by litedoc

- + \ No newline at end of file diff --git a/en/dev/api/comm/event.html b/en/dev/api/comm/event.html index 873a677a..b5c52e8c 100644 --- a/en/dev/api/comm/event.html +++ b/en/dev/api/comm/event.html @@ -8,21 +8,21 @@ - + - + - + -
Skip to content

Module liteyuki.comm.event

本模块用于轻雪主进程和子进程之间的通信的事件类

class Event

func __init__(self, name: str, data: dict[str, Any])

Source code or View on GitHub
python
def __init__(self, name: str, data: dict[str, Any]):
+    
Skip to content

Module liteyuki.comm.event

本模块用于轻雪主进程和子进程之间的通信的事件类

class Event


func __init__(self, name: str, data: dict[str, Any])

Source code or View on GitHub
python
def __init__(self, name: str, data: dict[str, Any]):
     self.name = name
     self.data = data

Documentation built with VitePress | API references generated by litedoc

- + \ No newline at end of file diff --git a/en/dev/api/comm/index.html b/en/dev/api/comm/index.html index 55a2cdda..79296981 100644 --- a/en/dev/api/comm/index.html +++ b/en/dev/api/comm/index.html @@ -8,9 +8,9 @@ - + - + @@ -20,7 +20,7 @@ - + \ No newline at end of file diff --git a/en/dev/api/comm/rpc.html b/en/dev/api/comm/rpc.html index 0a3714c3..fe3bed3c 100644 --- a/en/dev/api/comm/rpc.html +++ b/en/dev/api/comm/rpc.html @@ -8,21 +8,21 @@ - + - + - + -
Skip to content

Module liteyuki.comm.rpc

本模块用于实现RPC(基于IPC)通信

class RPC

func __init__(self, on_calling: ON_CALLING_FUNC) -> None

Source code or View on GitHub
python
def __init__(self, on_calling: ON_CALLING_FUNC) -> None:
-    self.on_calling = on_calling

func call(self, args: tuple, kwargs: dict) -> Any

Description: 调用

Source code or View on GitHub
python
def call(self, args: tuple, kwargs: dict) -> Any:
+    
Skip to content

Module liteyuki.comm.rpc

本模块用于实现RPC(基于IPC)通信

class RPC


func __init__(self, on_calling: ON_CALLING_FUNC) -> None

Source code or View on GitHub
python
def __init__(self, on_calling: ON_CALLING_FUNC) -> None:
+    self.on_calling = on_calling

func call(self, args: tuple, kwargs: dict) -> Any

Description: 调用

Source code or View on GitHub
python
def call(self, args: tuple, kwargs: dict) -> Any:
     return self.on_calling(args, kwargs)

Documentation built with VitePress | API references generated by litedoc

- + \ No newline at end of file diff --git a/en/dev/api/comm/socks_channel.html b/en/dev/api/comm/socks_channel.html index ec8733bf..b9f09b12 100644 --- a/en/dev/api/comm/socks_channel.html +++ b/en/dev/api/comm/socks_channel.html @@ -8,26 +8,26 @@ - + - + - + -
Skip to content

Module liteyuki.comm.socks_channel

基于socket的通道

class SocksChannel

func __init__(self, name: str)

Description: 初始化通道

Arguments:

  • name: 通道ID
Source code or View on GitHub
python
def __init__(self, name: str):
+    
Skip to content

Module liteyuki.comm.socks_channel

基于socket的通道

class SocksChannel


func __init__(self, name: str)

Description: 初始化通道

Arguments:

  • name: 通道ID
Source code or View on GitHub
python
def __init__(self, name: str):
     self._name = name
     self._conn_send = None
     self._conn_recv = None
-    self._closed = False

func send(self, data)

Description: 发送数据

Arguments:

  • data: 数据
Source code or View on GitHub
python
def send(self, data):
-    pass

func receive(self)

Description: 接收数据

Return: data: 数据

Source code or View on GitHub
python
def receive(self):
-    pass

func close(self)

Description: 关闭通道

Source code or View on GitHub
python
def close(self):
+    self._closed = False

func send(self, data)

Description: 发送数据

Arguments:

  • data: 数据
Source code or View on GitHub
python
def send(self, data):
+    pass

func receive(self)

Description: 接收数据

Return: data: 数据

Source code or View on GitHub
python
def receive(self):
+    pass

func close(self)

Description: 关闭通道

Source code or View on GitHub
python
def close(self):
     pass

Documentation built with VitePress | API references generated by litedoc

- + \ No newline at end of file diff --git a/en/dev/api/comm/storage.html b/en/dev/api/comm/storage.html index 0c1341c3..e9e602af 100644 --- a/en/dev/api/comm/storage.html +++ b/en/dev/api/comm/storage.html @@ -8,30 +8,30 @@ - + - + - + -
Skip to content

Module liteyuki.comm.storage

共享内存模块。类似于redis,但是更加轻量级并且线程安全

var _on_main_subscriber_receive_funcs

  • Description: 主进程订阅者接收函数

  • Type: dict[str, list[ASYNC_ON_RECEIVE_FUNC]]

  • Default: {}

var _on_sub_subscriber_receive_funcs

  • Description: 子进程订阅者接收函数

  • Type: dict[str, list[ASYNC_ON_RECEIVE_FUNC]]

  • Default: {}

class KeyValueStore

func __init__(self)

Source code or View on GitHub
python
def __init__(self):
+    
Skip to content

Module liteyuki.comm.storage

共享内存模块。类似于redis,但是更加轻量级并且线程安全

var _on_main_subscriber_receive_funcs

  • Description: 主进程订阅者接收函数

  • Type: dict[str, list[ASYNC_ON_RECEIVE_FUNC]]

  • Default: {}

var _on_sub_subscriber_receive_funcs

  • Description: 子进程订阅者接收函数

  • Type: dict[str, list[ASYNC_ON_RECEIVE_FUNC]]

  • Default: {}

class KeyValueStore


func __init__(self)

Source code or View on GitHub
python
def __init__(self):
     self._store = {}
     self.active_chan = Channel[tuple[str, Optional[dict[str, Any]]]](name='shared_memory-active')
     self.passive_chan = Channel[tuple[str, Optional[dict[str, Any]]]](name='shared_memory-passive')
     self.publish_channel = Channel[tuple[str, Any]](name='shared_memory-publish')
     self.is_main_receive_loop_running = False
-    self.is_sub_receive_loop_running = False

func set(self, key: str, value: Any) -> None

Description: 设置键值对

Arguments:

  • key: 键
  • value: 值
Source code or View on GitHub
python
def set(self, key: str, value: Any) -> None:
+    self.is_sub_receive_loop_running = False

func set(self, key: str, value: Any) -> None

Description: 设置键值对

Arguments:

  • key: 键
  • value: 值
Source code or View on GitHub
python
def set(self, key: str, value: Any) -> None:
     if IS_MAIN_PROCESS:
         lock = _get_lock(key)
         with lock:
             self._store[key] = value
     else:
-        self.passive_chan.send(('set', {'key': key, 'value': value}))

func get(self, key: str, default: Optional[Any] = None) -> Optional[Any]

Description: 获取键值对

Arguments:

  • key: 键
  • default: 默认值

Return: Any: 值

Source code or View on GitHub
python
def get(self, key: str, default: Optional[Any]=None) -> Optional[Any]:
+        self.passive_chan.send(('set', {'key': key, 'value': value}))

func get(self, key: str, default: Optional[Any] = None) -> Optional[Any]

Description: 获取键值对

Arguments:

  • key: 键
  • default: 默认值

Return: Any: 值

Source code or View on GitHub
python
def get(self, key: str, default: Optional[Any]=None) -> Optional[Any]:
     if IS_MAIN_PROCESS:
         lock = _get_lock(key)
         with lock:
@@ -39,7 +39,7 @@
     else:
         recv_chan = Channel[Optional[Any]]('recv_chan')
         self.passive_chan.send(('get', {'key': key, 'default': default, 'recv_chan': recv_chan}))
-        return recv_chan.receive()

func delete(self, key: str, ignore_key_error: bool = True) -> None

Description: 删除键值对

Arguments:

  • key: 键
  • ignore_key_error: 是否忽略键不存在的错误
Source code or View on GitHub
python
def delete(self, key: str, ignore_key_error: bool=True) -> None:
+        return recv_chan.receive()

func delete(self, key: str, ignore_key_error: bool = True) -> None

Description: 删除键值对

Arguments:

  • key: 键
  • ignore_key_error: 是否忽略键不存在的错误
Source code or View on GitHub
python
def delete(self, key: str, ignore_key_error: bool=True) -> None:
     if IS_MAIN_PROCESS:
         lock = _get_lock(key)
         with lock:
@@ -51,14 +51,14 @@
                     if not ignore_key_error:
                         raise e
     else:
-        self.passive_chan.send(('delete', {'key': key}))

func get_all(self) -> dict[str, Any]

Description: 获取所有键值对

Return: dict[str, Any]: 键值对

Source code or View on GitHub
python
def get_all(self) -> dict[str, Any]:
+        self.passive_chan.send(('delete', {'key': key}))

func get_all(self) -> dict[str, Any]

Description: 获取所有键值对

Return: dict[str, Any]: 键值对

Source code or View on GitHub
python
def get_all(self) -> dict[str, Any]:
     if IS_MAIN_PROCESS:
         return self._store
     else:
         recv_chan = Channel[dict[str, Any]]('recv_chan')
         self.passive_chan.send(('get_all', {'recv_chan': recv_chan}))
-        return recv_chan.receive()

func publish(self, channel_: str, data: Any) -> None

Description: 发布消息

Arguments:

  • channel_: 频道
  • data: 数据
Source code or View on GitHub
python
def publish(self, channel_: str, data: Any) -> None:
-    self.active_chan.send(('publish', {'channel': channel_, 'data': data}))

func on_subscriber_receive(self, channel_: str) -> Callable[[ON_RECEIVE_FUNC], ON_RECEIVE_FUNC]

Description: 订阅者接收消息时的回调

Arguments:

  • channel_: 频道

Return: 装饰器

Source code or View on GitHub
python
def on_subscriber_receive(self, channel_: str) -> Callable[[ON_RECEIVE_FUNC], ON_RECEIVE_FUNC]:
+        return recv_chan.receive()

func publish(self, channel_: str, data: Any) -> None

Description: 发布消息

Arguments:

  • channel_: 频道
  • data: 数据
Source code or View on GitHub
python
def publish(self, channel_: str, data: Any) -> None:
+    self.active_chan.send(('publish', {'channel': channel_, 'data': data}))

func on_subscriber_receive(self, channel_: str) -> Callable[[ON_RECEIVE_FUNC], ON_RECEIVE_FUNC]

Description: 订阅者接收消息时的回调

Arguments:

  • channel_: 频道

Return: 装饰器

Source code or View on GitHub
python
def on_subscriber_receive(self, channel_: str) -> Callable[[ON_RECEIVE_FUNC], ON_RECEIVE_FUNC]:
     if not IS_MAIN_PROCESS:
         raise RuntimeError('Cannot subscribe in sub process.')
 
@@ -78,38 +78,38 @@
                 _on_sub_subscriber_receive_funcs[channel_] = []
             _on_sub_subscriber_receive_funcs[channel_].append(wrapper)
         return wrapper
-    return decorator

@staticmethod

async func run_subscriber_receive_funcs(channel_: str, data: Any)

Description: 运行订阅者接收函数

Arguments:

  • channel_: 频道
  • data: 数据
Source code or View on GitHub
python
@staticmethod
+    return decorator

@staticmethod

async func run_subscriber_receive_funcs(channel_: str, data: Any)

Description: 运行订阅者接收函数

Arguments:

  • channel_: 频道
  • data: 数据
Source code or View on GitHub
python
@staticmethod
 async def run_subscriber_receive_funcs(channel_: str, data: Any):
-    [asyncio.create_task(func(data)) for func in _on_main_subscriber_receive_funcs[channel_]]

async func start_receive_loop(self)

Description: 启动发布订阅接收器循环,在主进程中运行,若有子进程订阅则推送给子进程

Source code or View on GitHub
python
async def start_receive_loop(self):
+    [asyncio.create_task(func(data)) for func in _on_main_subscriber_receive_funcs[channel_]]

async func start_receive_loop(self)

Description: 启动发布订阅接收器循环,在主进程中运行,若有子进程订阅则推送给子进程

Source code or View on GitHub
python
async def start_receive_loop(self):
     if not IS_MAIN_PROCESS:
         raise RuntimeError('Cannot start receive loop in sub process.')
     while True:
         data = await self.active_chan.async_receive()
         if data[0] == 'publish':
             await self.run_subscriber_receive_funcs(data[1]['channel'], data[1]['data'])
-            self.publish_channel.send(data)

class GlobalKeyValueStore

@classmethod

func get_instance(cls)

Source code or View on GitHub
python
@classmethod
+            self.publish_channel.send(data)

class GlobalKeyValueStore


@classmethod

func get_instance(cls)

Source code or View on GitHub
python
@classmethod
 def get_instance(cls):
     if cls._instance is None:
         with cls._lock:
             if cls._instance is None:
                 cls._instance = KeyValueStore()
-    return cls._instance

attr _instance = None

attr _lock = threading.Lock()

var shared_memory

  • Description: 共享内存对象

  • Type: KeyValueStore

  • Default: GlobalKeyValueStore.get_instance()

var _ref_count

  • Description: import 引用计数, 防止获取空指针

  • Default: 0

@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'get')

func on_get(data: tuple[str, dict[str, Any]])

Source code or View on GitHub
python
@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'get')
+    return cls._instance

attr _instance = None

attr _lock = threading.Lock()

var shared_memory

  • Description: 共享内存对象

  • Type: KeyValueStore

  • Default: GlobalKeyValueStore.get_instance()

var _ref_count

  • Description: import 引用计数, 防止获取空指针

  • Default: 0


@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'get')

func on_get(data: tuple[str, dict[str, Any]])

Source code or View on GitHub
python
@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'get')
 def on_get(data: tuple[str, dict[str, Any]]):
     key = data[1]['key']
     default = data[1]['default']
     recv_chan = data[1]['recv_chan']
-    recv_chan.send(shared_memory.get(key, default))

@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'set')

func on_set(data: tuple[str, dict[str, Any]])

Source code or View on GitHub
python
@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'set')
+    recv_chan.send(shared_memory.get(key, default))

@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'set')

func on_set(data: tuple[str, dict[str, Any]])

Source code or View on GitHub
python
@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'set')
 def on_set(data: tuple[str, dict[str, Any]]):
     key = data[1]['key']
     value = data[1]['value']
-    shared_memory.set(key, value)

@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'delete')

func on_delete(data: tuple[str, dict[str, Any]])

Source code or View on GitHub
python
@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'delete')
+    shared_memory.set(key, value)

@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'delete')

func on_delete(data: tuple[str, dict[str, Any]])

Source code or View on GitHub
python
@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'delete')
 def on_delete(data: tuple[str, dict[str, Any]]):
     key = data[1]['key']
-    shared_memory.delete(key)

@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'get_all')

func on_get_all(data: tuple[str, dict[str, Any]])

Source code or View on GitHub
python
@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'get_all')
+    shared_memory.delete(key)

@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'get_all')

func on_get_all(data: tuple[str, dict[str, Any]])

Source code or View on GitHub
python
@shared_memory.passive_chan.on_receive(lambda d: d[0] == 'get_all')
 def on_get_all(data: tuple[str, dict[str, Any]]):
     recv_chan = data[1]['recv_chan']
     recv_chan.send(shared_memory.get_all())

Documentation built with VitePress | API references generated by litedoc

- + \ No newline at end of file diff --git a/en/dev/api/config.html b/en/dev/api/config.html index 9281b7f5..c937d109 100644 --- a/en/dev/api/config.html +++ b/en/dev/api/config.html @@ -8,33 +8,33 @@ - + - + - + -
Skip to content

Module liteyuki.config

该模块用于常用配置文件的加载 多配置文件编写原则:

  1. 尽量不要冲突: 一个键不要多次出现
  2. 分工明确: 每个配置文件给一个或一类服务提供配置
  3. 扁平化编写: 配置文件尽量扁平化,不要出现过多的嵌套
  4. 注意冲突时的优先级: 项目目录下的配置文件优先级高于config目录下的配置文件
  5. 请不要将需要动态加载的内容写入配置文件,你应该使用其他储存方式

func flat_config(config: dict[str, Any]) -> dict[str, Any]

Description: 扁平化配置文件

{a:{b:{c:1}}} ->

Arguments:

  • config: 配置项目

Return: 扁平化后的配置文件,但也包含原有的键值对

Source code or View on GitHub
python
def flat_config(config: dict[str, Any]) -> dict[str, Any]:
+    
Skip to content

Module liteyuki.config

该模块用于常用配置文件的加载 多配置文件编写原则:

  1. 尽量不要冲突: 一个键不要多次出现
  2. 分工明确: 每个配置文件给一个或一类服务提供配置
  3. 扁平化编写: 配置文件尽量扁平化,不要出现过多的嵌套
  4. 注意冲突时的优先级: 项目目录下的配置文件优先级高于config目录下的配置文件
  5. 请不要将需要动态加载的内容写入配置文件,你应该使用其他储存方式

func flat_config(config: dict[str, Any]) -> dict[str, Any]

Description: 扁平化配置文件

{a:{b:{c:1}}} ->

Arguments:

  • config: 配置项目

Return: 扁平化后的配置文件,但也包含原有的键值对

Source code or View on GitHub
python
def flat_config(config: dict[str, Any]) -> dict[str, Any]:
     new_config = copy.deepcopy(config)
     for key, value in config.items():
         if isinstance(value, dict):
             for k, v in flat_config(value).items():
                 new_config[f'{key}.{k}'] = v
-    return new_config

func load_from_yaml(file_: str) -> dict[str, Any]

Description: Load config from yaml file

Source code or View on GitHub
python
def load_from_yaml(file_: str) -> dict[str, Any]:
+    return new_config

func load_from_yaml(file_: str) -> dict[str, Any]

Description: Load config from yaml file

Source code or View on GitHub
python
def load_from_yaml(file_: str) -> dict[str, Any]:
     logger.debug(f'Loading YAML config from {file_}')
     config = yaml.safe_load(open(file_, 'r', encoding='utf-8'))
-    return flat_config(config if config is not None else {})

func load_from_json(file_: str) -> dict[str, Any]

Description: Load config from json file

Source code or View on GitHub
python
def load_from_json(file_: str) -> dict[str, Any]:
+    return flat_config(config if config is not None else {})

func load_from_json(file_: str) -> dict[str, Any]

Description: Load config from json file

Source code or View on GitHub
python
def load_from_json(file_: str) -> dict[str, Any]:
     logger.debug(f'Loading JSON config from {file_}')
     config = json.load(open(file_, 'r', encoding='utf-8'))
-    return flat_config(config if config is not None else {})

func load_from_toml(file_: str) -> dict[str, Any]

Description: Load config from toml file

Source code or View on GitHub
python
def load_from_toml(file_: str) -> dict[str, Any]:
+    return flat_config(config if config is not None else {})

func load_from_toml(file_: str) -> dict[str, Any]

Description: Load config from toml file

Source code or View on GitHub
python
def load_from_toml(file_: str) -> dict[str, Any]:
     logger.debug(f'Loading TOML config from {file_}')
     config = toml.load(open(file_, 'r', encoding='utf-8'))
-    return flat_config(config if config is not None else {})

func load_from_files(*files: str, *, no_warning: bool = False) -> dict[str, Any]

Description: 从指定文件加载配置项,会自动识别文件格式 默认执行扁平化选项

Source code or View on GitHub
python
def load_from_files(*files: str, no_warning: bool=False) -> dict[str, Any]:
+    return flat_config(config if config is not None else {})

func load_from_files(*files: str, *, no_warning: bool = False) -> dict[str, Any]

Description: 从指定文件加载配置项,会自动识别文件格式 默认执行扁平化选项

Source code or View on GitHub
python
def load_from_files(*files: str, no_warning: bool=False) -> dict[str, Any]:
     config = {}
     for file in files:
         if os.path.exists(file):
@@ -48,7 +48,7 @@
                 logger.warning(f'Unsupported config file format: {file}')
         elif not no_warning:
             logger.warning(f'Config file not found: {file}')
-    return config

func load_configs_from_dirs(*directories: str, *, no_waring: bool = False) -> dict[str, Any]

Description: 从目录下加载配置文件,不递归 按照读取文件的优先级反向覆盖 默认执行扁平化选项

Source code or View on GitHub
python
def load_configs_from_dirs(*directories: str, no_waring: bool=False) -> dict[str, Any]:
+    return config

func load_configs_from_dirs(*directories: str, *, no_waring: bool = False) -> dict[str, Any]

Description: 从目录下加载配置文件,不递归 按照读取文件的优先级反向覆盖 默认执行扁平化选项

Source code or View on GitHub
python
def load_configs_from_dirs(*directories: str, no_waring: bool=False) -> dict[str, Any]:
     config = {}
     for directory in directories:
         if not os.path.exists(directory):
@@ -58,11 +58,11 @@
         for file in os.listdir(directory):
             if file.endswith(_SUPPORTED_CONFIG_FORMATS):
                 config.update(load_from_files(os.path.join(directory, file), no_warning=no_waring))
-    return config

func load_config_in_default(no_waring: bool = False) -> dict[str, Any]

Description: 从一个标准的轻雪项目加载配置文件 项目目录下的config.*和config目录下的所有配置文件 项目目录下的配置文件优先

Source code or View on GitHub
python
def load_config_in_default(no_waring: bool=False) -> dict[str, Any]:
+    return config

func load_config_in_default(no_waring: bool = False) -> dict[str, Any]

Description: 从一个标准的轻雪项目加载配置文件 项目目录下的config.*和config目录下的所有配置文件 项目目录下的配置文件优先

Source code or View on GitHub
python
def load_config_in_default(no_waring: bool=False) -> dict[str, Any]:
     config = load_configs_from_dirs('config', no_waring=no_waring)
     config.update(load_from_files('config.yaml', 'config.toml', 'config.json', 'config.yml', no_warning=no_waring))
     return config

Documentation built with VitePress | API references generated by litedoc

- + \ No newline at end of file diff --git a/en/dev/api/core/index.html b/en/dev/api/core/index.html index 5ebf1554..b56f2873 100644 --- a/en/dev/api/core/index.html +++ b/en/dev/api/core/index.html @@ -8,9 +8,9 @@ - + - + @@ -20,7 +20,7 @@ - + \ No newline at end of file diff --git a/en/dev/api/core/manager.html b/en/dev/api/core/manager.html index d8097ead..0ca3a0da 100644 --- a/en/dev/api/core/manager.html +++ b/en/dev/api/core/manager.html @@ -8,37 +8,37 @@ - + - + - + -
Skip to content

Module liteyuki.core.manager

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/27 上午11:12 @Author : snowykami @Email : snowykami@outlook.com @File : manager.py @Software: PyCharm

class ChannelDeliver

func __init__(self, active: Channel[Any], passive: Channel[Any], channel_deliver_active: Channel[Channel[Any]], channel_deliver_passive: Channel[tuple[str, dict]], publish: Channel[tuple[str, Any]])

Source code or View on GitHub
python
def __init__(self, active: Channel[Any], passive: Channel[Any], channel_deliver_active: Channel[Channel[Any]], channel_deliver_passive: Channel[tuple[str, dict]], publish: Channel[tuple[str, Any]]):
+    
Skip to content

Module liteyuki.core.manager

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/27 上午11:12 @Author : snowykami @Email : snowykami@outlook.com @File : manager.py @Software: PyCharm

class ChannelDeliver


func __init__(self, active: Channel[Any], passive: Channel[Any], channel_deliver_active: Channel[Channel[Any]], channel_deliver_passive: Channel[tuple[str, dict]], publish: Channel[tuple[str, Any]])

Source code or View on GitHub
python
def __init__(self, active: Channel[Any], passive: Channel[Any], channel_deliver_active: Channel[Channel[Any]], channel_deliver_passive: Channel[tuple[str, dict]], publish: Channel[tuple[str, Any]]):
     self.active = active
     self.passive = passive
     self.channel_deliver_active = channel_deliver_active
     self.channel_deliver_passive = channel_deliver_passive
-    self.publish = publish

class ProcessManager

func __init__(self, lifespan: Lifespan)

Source code or View on GitHub
python
def __init__(self, lifespan: 'Lifespan'):
+    self.publish = publish

class ProcessManager


func __init__(self, lifespan: Lifespan)

Source code or View on GitHub
python
def __init__(self, lifespan: 'Lifespan'):
     self.lifespan = lifespan
     self.targets: dict[str, tuple[Callable, tuple, dict]] = {}
-    self.processes: dict[str, Process] = {}

func start_all(self)

Description: 对外启动方法,启动所有进程,创建asyncio task

Source code or View on GitHub
python
def start_all(self):
+    self.processes: dict[str, Process] = {}

func start_all(self)

Description: 对外启动方法,启动所有进程,创建asyncio task

Source code or View on GitHub
python
def start_all(self):
     for name in self.targets:
         logger.debug(f'Starting process {name}')
-        threading.Thread(target=self._run_process, args=(name,), daemon=True).start()

func add_target(self, name: str, target: TARGET_FUNC, args: tuple = (), kwargs = None)

Description: 添加进程

Arguments:

  • name: 进程名,用于获取和唯一标识
  • target: 进程函数
  • args: 进程函数参数
  • kwargs: 进程函数关键字参数,通常会默认传入chan_active和chan_passive
Source code or View on GitHub
python
def add_target(self, name: str, target: TARGET_FUNC, args: tuple=(), kwargs=None):
+        threading.Thread(target=self._run_process, args=(name,), daemon=True).start()

func add_target(self, name: str, target: TARGET_FUNC, args: tuple = (), kwargs = None)

Description: 添加进程

Arguments:

  • name: 进程名,用于获取和唯一标识
  • target: 进程函数
  • args: 进程函数参数
  • kwargs: 进程函数关键字参数,通常会默认传入chan_active和chan_passive
Source code or View on GitHub
python
def add_target(self, name: str, target: TARGET_FUNC, args: tuple=(), kwargs=None):
     if kwargs is None:
         kwargs = {}
     chan_active: Channel = Channel(name=f'{name}-active')
     chan_passive: Channel = Channel(name=f'{name}-passive')
     channel_deliver = ChannelDeliver(active=chan_active, passive=chan_passive, channel_deliver_active=channel_deliver_active_channel, channel_deliver_passive=channel_deliver_passive_channel, publish=publish_channel)
-    self.targets[name] = (_delivery_channel_wrapper, (target, channel_deliver, shared_memory, *args), kwargs)

func join_all(self)

Source code or View on GitHub
python
def join_all(self):
+    self.targets[name] = (_delivery_channel_wrapper, (target, channel_deliver, shared_memory, *args), kwargs)

func join_all(self)

Source code or View on GitHub
python
def join_all(self):
     for name, process in self.targets:
-        process.join()

func terminate(self, name: str)

Description: 终止进程并从进程字典中删除

Arguments:

  • name:
Source code or View on GitHub
python
def terminate(self, name: str):
+        process.join()

func terminate(self, name: str)

Description: 终止进程并从进程字典中删除

Arguments:

  • name:
Source code or View on GitHub
python
def terminate(self, name: str):
     if name not in self.processes:
         logger.warning(f'Process {name} not found.')
         return
@@ -47,13 +47,13 @@
     process.join(TIMEOUT)
     if process.is_alive():
         process.kill()
-    logger.success(f'Process {name} terminated.')

func terminate_all(self)

Source code or View on GitHub
python
def terminate_all(self):
+    logger.success(f'Process {name} terminated.')

func terminate_all(self)

Source code or View on GitHub
python
def terminate_all(self):
     for name in self.targets:
-        self.terminate(name)

func is_process_alive(self, name: str) -> bool

Description: 检查进程是否存活

Arguments:

  • name:
Source code or View on GitHub
python
def is_process_alive(self, name: str) -> bool:
+        self.terminate(name)

func is_process_alive(self, name: str) -> bool

Description: 检查进程是否存活

Arguments:

  • name:
Source code or View on GitHub
python
def is_process_alive(self, name: str) -> bool:
     if name not in self.targets:
         logger.warning(f'Process {name} not found.')
     return self.processes[name].is_alive()

Documentation built with VitePress | API references generated by litedoc

- + \ No newline at end of file diff --git a/en/dev/api/dev/index.html b/en/dev/api/dev/index.html index b6f319c9..559fd704 100644 --- a/en/dev/api/dev/index.html +++ b/en/dev/api/dev/index.html @@ -8,9 +8,9 @@ - + - + @@ -20,7 +20,7 @@ - + \ No newline at end of file diff --git a/en/dev/api/dev/observer.html b/en/dev/api/dev/observer.html index 747f1e2a..1b4488c6 100644 --- a/en/dev/api/dev/observer.html +++ b/en/dev/api/dev/observer.html @@ -8,18 +8,18 @@ - + - + - + -
Skip to content

Module liteyuki.dev.observer

此模块用于注册观察者函数,使用watchdog监控文件变化并重启bot 启用该模块需要在配置文件中设置dev_mode为True

var CALLBACK_FUNC

  • Description: 位置1为FileSystemEvent

  • Type: TypeAlias

  • Default: Callable[[FileSystemEvent], None]

var FILTER_FUNC

  • Description: 位置1为FileSystemEvent

  • Type: TypeAlias

  • Default: Callable[[FileSystemEvent], bool]

func debounce(wait)

Description: 防抖函数

Source code or View on GitHub
python
def debounce(wait):
+    
Skip to content

Module liteyuki.dev.observer

此模块用于注册观察者函数,使用watchdog监控文件变化并重启bot 启用该模块需要在配置文件中设置dev_mode为True

var CALLBACK_FUNC

  • Description: 位置1为FileSystemEvent

  • Type: TypeAlias

  • Default: Callable[[FileSystemEvent], None]

var FILTER_FUNC

  • Description: 位置1为FileSystemEvent

  • Type: TypeAlias

  • Default: Callable[[FileSystemEvent], bool]


func debounce(wait)

Description: 防抖函数

Source code or View on GitHub
python
def debounce(wait):
 
     def decorator(func):
 
@@ -31,13 +31,13 @@
                 return func(*args, **kwargs)
         last_call_time = None
         return wrapper
-    return decorator

class CodeModifiedHandler(FileSystemEventHandler)

@debounce(1)

func on_modified(self, event)

Source code or View on GitHub
python
@debounce(1)
+    return decorator

class CodeModifiedHandler(FileSystemEventHandler)


@debounce(1)

func on_modified(self, event)

Source code or View on GitHub
python
@debounce(1)
 def on_modified(self, event):
-    raise NotImplementedError('on_modified must be implemented')

func on_created(self, event)

Source code or View on GitHub
python
def on_created(self, event):
-    self.on_modified(event)

func on_deleted(self, event)

Source code or View on GitHub
python
def on_deleted(self, event):
-    self.on_modified(event)

func on_moved(self, event)

Source code or View on GitHub
python
def on_moved(self, event):
-    self.on_modified(event)

func on_any_event(self, event)

Source code or View on GitHub
python
def on_any_event(self, event):
-    self.on_modified(event)

func on_file_system_event(directories: tuple[str], recursive: bool = True, event_filter: FILTER_FUNC = None) -> Callable[[CALLBACK_FUNC], CALLBACK_FUNC]

Description: 注册文件系统变化监听器

Arguments:

  • directories: 监听目录们
  • recursive: 是否递归监听子目录
  • event_filter: 事件过滤器, 返回True则执行回调函数

Return: 装饰器,装饰一个函数在接收到数据后执行

Source code or View on GitHub
python
def on_file_system_event(directories: tuple[str], recursive: bool=True, event_filter: FILTER_FUNC=None) -> Callable[[CALLBACK_FUNC], CALLBACK_FUNC]:
+    raise NotImplementedError('on_modified must be implemented')

func on_created(self, event)

Source code or View on GitHub
python
def on_created(self, event):
+    self.on_modified(event)

func on_deleted(self, event)

Source code or View on GitHub
python
def on_deleted(self, event):
+    self.on_modified(event)

func on_moved(self, event)

Source code or View on GitHub
python
def on_moved(self, event):
+    self.on_modified(event)

func on_any_event(self, event)

Source code or View on GitHub
python
def on_any_event(self, event):
+    self.on_modified(event)

func on_file_system_event(directories: tuple[str], recursive: bool = True, event_filter: FILTER_FUNC = None) -> Callable[[CALLBACK_FUNC], CALLBACK_FUNC]

Description: 注册文件系统变化监听器

Arguments:

  • directories: 监听目录们
  • recursive: 是否递归监听子目录
  • event_filter: 事件过滤器, 返回True则执行回调函数

Return: 装饰器,装饰一个函数在接收到数据后执行

Source code or View on GitHub
python
def on_file_system_event(directories: tuple[str], recursive: bool=True, event_filter: FILTER_FUNC=None) -> Callable[[CALLBACK_FUNC], CALLBACK_FUNC]:
 
     def decorator(func: CALLBACK_FUNC) -> CALLBACK_FUNC:
 
@@ -51,7 +51,7 @@
             observer.schedule(code_modified_handler, directory, recursive=recursive)
         return func
     return decorator

Documentation built with VitePress | API references generated by litedoc

- + \ No newline at end of file diff --git a/en/dev/api/dev/plugin.html b/en/dev/api/dev/plugin.html index 92e6b17b..e9e8d705 100644 --- a/en/dev/api/dev/plugin.html +++ b/en/dev/api/dev/plugin.html @@ -8,25 +8,25 @@ - + - + - + -
Skip to content

Module liteyuki.dev.plugin

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/18 上午5:04 @Author : snowykami @Email : snowykami@outlook.com @File : plugin.py @Software: PyCharm

func run_plugins(*module_path: str | Path)

Description: 运行插件,无需手动初始化bot

Arguments:

  • module_path: 插件路径,参考liteyuki.load_plugin的函数签名
Source code or View on GitHub
python
def run_plugins(*module_path: str | Path):
+    
Skip to content

Module liteyuki.dev.plugin

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/18 上午5:04 @Author : snowykami @Email : snowykami@outlook.com @File : plugin.py @Software: PyCharm


func run_plugins(*module_path: str | Path)

Description: 运行插件,无需手动初始化bot

Arguments:

  • module_path: 插件路径,参考liteyuki.load_plugin的函数签名
Source code or View on GitHub
python
def run_plugins(*module_path: str | Path):
     cfg = load_config_in_default()
     plugins = cfg.get('liteyuki.plugins', [])
     plugins.extend(module_path)
     cfg['liteyuki.plugins'] = plugins
     bot = LiteyukiBot(**cfg)
     bot.run()

Documentation built with VitePress | API references generated by litedoc

- + \ No newline at end of file diff --git a/en/dev/api/exception.html b/en/dev/api/exception.html index 81016da5..1d85056d 100644 --- a/en/dev/api/exception.html +++ b/en/dev/api/exception.html @@ -8,9 +8,9 @@ - + - + @@ -20,7 +20,7 @@ - + \ No newline at end of file diff --git a/en/dev/api/index.html b/en/dev/api/index.html index 83680c7b..aa05d2c4 100644 --- a/en/dev/api/index.html +++ b/en/dev/api/index.html @@ -8,9 +8,9 @@ - + - + @@ -20,7 +20,7 @@ - + \ No newline at end of file diff --git a/en/dev/api/log.html b/en/dev/api/log.html index 11c17c1d..ab38ea5b 100644 --- a/en/dev/api/log.html +++ b/en/dev/api/log.html @@ -8,22 +8,22 @@ - + - + - + -
Skip to content

Module liteyuki.log

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/27 上午9:12 @Author : snowykami @Email : snowykami@outlook.com @File : log.py @Software: PyCharm

func get_format(level: str) -> str

Source code or View on GitHub
python
def get_format(level: str) -> str:
+    
Skip to content

Module liteyuki.log

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/27 上午9:12 @Author : snowykami @Email : snowykami@outlook.com @File : log.py @Software: PyCharm


func get_format(level: str) -> str

Source code or View on GitHub
python
def get_format(level: str) -> str:
     if level == 'DEBUG':
         return debug_format
     else:
-        return default_format

func init_log(config: dict)

Description: 在语言加载完成后执行

Source code or View on GitHub
python
def init_log(config: dict):
+        return default_format

func init_log(config: dict)

Description: 在语言加载完成后执行

Source code or View on GitHub
python
def init_log(config: dict):
     logger.remove()
     logger.add(sys.stdout, level=0, diagnose=False, format=get_format(config.get('log_level', 'INFO')))
     show_icon = config.get('log_icon', True)
@@ -32,7 +32,7 @@
     logger.level('SUCCESS', color='<green>', icon=f"{('✅' if show_icon else '')}SUCCESS")
     logger.level('WARNING', color='<yellow>', icon=f"{('⚠️' if show_icon else '')}WARNING")
     logger.level('ERROR', color='<red>', icon=f"{('⭕' if show_icon else '')}ERROR")

Documentation built with VitePress | API references generated by litedoc

- + \ No newline at end of file diff --git a/en/dev/api/message/event.html b/en/dev/api/message/event.html index f9410dd9..77a02132 100644 --- a/en/dev/api/message/event.html +++ b/en/dev/api/message/event.html @@ -8,18 +8,18 @@ - + - + - + -
Skip to content

Module liteyuki.message.event

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:47 @Author : snowykami @Email : snowykami@outlook.com @File : event.py @Software: PyCharm

class MessageEvent

func __init__(self, bot_id: str, message: list[dict[str, Any]] | str, message_type: str, raw_message: str, session_id: str, user_id: str, session_type: str, receive_channel: Optional[Channel[MessageEvent]] = None, data: Optional[dict[str, Any]] = None)

Description: 轻雪抽象消息事件

Source code or View on GitHub
python
def __init__(self, bot_id: str, message: list[dict[str, Any]] | str, message_type: str, raw_message: str, session_id: str, user_id: str, session_type: str, receive_channel: Optional[Channel['MessageEvent']]=None, data: Optional[dict[str, Any]]=None):
+    
Skip to content

Module liteyuki.message.event

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:47 @Author : snowykami @Email : snowykami@outlook.com @File : event.py @Software: PyCharm

class MessageEvent


func __init__(self, bot_id: str, message: list[dict[str, Any]] | str, message_type: str, raw_message: str, session_id: str, user_id: str, session_type: str, receive_channel: Optional[Channel[MessageEvent]] = None, data: Optional[dict[str, Any]] = None)

Description: 轻雪抽象消息事件

Source code or View on GitHub
python
def __init__(self, bot_id: str, message: list[dict[str, Any]] | str, message_type: str, raw_message: str, session_id: str, user_id: str, session_type: str, receive_channel: Optional[Channel['MessageEvent']]=None, data: Optional[dict[str, Any]]=None):
     if data is None:
         data = {}
     self.message_type = message_type
@@ -30,11 +30,11 @@
     self.session_id = session_id
     self.session_type = session_type
     self.user_id = user_id
-    self.receive_channel = receive_channel

func reply(self, message: str | dict[str, Any])

Description: 回复消息

Arguments:

  • message:
Source code or View on GitHub
python
def reply(self, message: str | dict[str, Any]):
+    self.receive_channel = receive_channel

func reply(self, message: str | dict[str, Any])

Description: 回复消息

Arguments:

  • message:
Source code or View on GitHub
python
def reply(self, message: str | dict[str, Any]):
     reply_event = MessageEvent(message_type=self.session_type, message=message, raw_message='', data={'message': message}, bot_id=self.bot_id, session_id=self.session_id, user_id=self.user_id, session_type=self.session_type, receive_channel=None)
     if self.receive_channel:
         self.receive_channel.send(reply_event)

Documentation built with VitePress | API references generated by litedoc

- + \ No newline at end of file diff --git a/en/dev/api/message/index.html b/en/dev/api/message/index.html index e95ff8e2..53e3ac11 100644 --- a/en/dev/api/message/index.html +++ b/en/dev/api/message/index.html @@ -8,9 +8,9 @@ - + - + @@ -20,7 +20,7 @@ - + \ No newline at end of file diff --git a/en/dev/api/message/matcher.html b/en/dev/api/message/matcher.html index 3b3258ee..277b65f6 100644 --- a/en/dev/api/message/matcher.html +++ b/en/dev/api/message/matcher.html @@ -8,27 +8,27 @@ - + - + - + -
Skip to content

Module liteyuki.message.matcher

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:51 @Author : snowykami @Email : snowykami@outlook.com @File : matcher.py @Software: PyCharm

class Matcher

func __init__(self, rule: Rule, priority: int, block: bool)

Description: 匹配器

Arguments:

  • rule: 规则
  • priority: 优先级 >= 0
  • block: 是否阻断后续优先级更低的匹配器
Source code or View on GitHub
python
def __init__(self, rule: Rule, priority: int, block: bool):
+    
Skip to content

Module liteyuki.message.matcher

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:51 @Author : snowykami @Email : snowykami@outlook.com @File : matcher.py @Software: PyCharm

class Matcher


func __init__(self, rule: Rule, priority: int, block: bool)

Description: 匹配器

Arguments:

  • rule: 规则
  • priority: 优先级 >= 0
  • block: 是否阻断后续优先级更低的匹配器
Source code or View on GitHub
python
def __init__(self, rule: Rule, priority: int, block: bool):
     self.rule = rule
     self.priority = priority
     self.block = block
-    self.handlers: list[EventHandler] = []

func handle(self) -> Callable[[EventHandler], EventHandler]

Description: 添加处理函数,装饰器

Return: 装饰器 handler

Source code or View on GitHub
python
def handle(self) -> Callable[[EventHandler], EventHandler]:
+    self.handlers: list[EventHandler] = []

func handle(self) -> Callable[[EventHandler], EventHandler]

Description: 添加处理函数,装饰器

Return: 装饰器 handler

Source code or View on GitHub
python
def handle(self) -> Callable[[EventHandler], EventHandler]:
 
     def decorator(handler: EventHandler) -> EventHandler:
         self.handlers.append(handler)
         return handler
-    return decorator

async func run(self, event: MessageEvent) -> None

Description: 运行处理函数

Arguments:

  • event:
Source code or View on GitHub
python
async def run(self, event: MessageEvent) -> None:
+    return decorator

async func run(self, event: MessageEvent) -> None

Description: 运行处理函数

Arguments:

  • event:
Source code or View on GitHub
python
async def run(self, event: MessageEvent) -> None:
     if not await self.rule(event):
         return
     for handler in self.handlers:
@@ -36,7 +36,7 @@
             await handler(event)
         except Exception:
             traceback.print_exc()

Documentation built with VitePress | API references generated by litedoc

- + \ No newline at end of file diff --git a/en/dev/api/message/on.html b/en/dev/api/message/on.html index 34fa2592..a7b2d0be 100644 --- a/en/dev/api/message/on.html +++ b/en/dev/api/message/on.html @@ -8,33 +8,33 @@ - + - + - + -
Skip to content

Module liteyuki.message.on

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:52 @Author : snowykami @Email : snowykami@outlook.com @File : on.py @Software: PyCharm

func add_matcher(matcher: Matcher)

Source code or View on GitHub
python
def add_matcher(matcher: Matcher):
+    
Skip to content

Module liteyuki.message.on

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:52 @Author : snowykami @Email : snowykami@outlook.com @File : on.py @Software: PyCharm


func add_matcher(matcher: Matcher)

Source code or View on GitHub
python
def add_matcher(matcher: Matcher):
     for i, m in enumerate(_matcher_list):
         if m.priority < matcher.priority:
             _matcher_list.insert(i, matcher)
             break
     else:
-        _matcher_list.append(matcher)

func on_message(rule: Rule = empty_rule, priority: int = 0, block: bool = False) -> Matcher

Source code or View on GitHub
python
def on_message(rule: Rule=empty_rule, priority: int=0, block: bool=False) -> Matcher:
+        _matcher_list.append(matcher)

func on_message(rule: Rule = empty_rule, priority: int = 0, block: bool = False) -> Matcher

Source code or View on GitHub
python
def on_message(rule: Rule=empty_rule, priority: int=0, block: bool=False) -> Matcher:
     matcher = Matcher(rule, priority, block)
     add_matcher(matcher)
-    return matcher

func on_keywords(keywords: list[str], rule = empty_rule, priority: int = 0, block: bool = False) -> Matcher

Source code or View on GitHub
python
def on_keywords(keywords: list[str], rule=empty_rule, priority: int=0, block: bool=False) -> Matcher:
+    return matcher

func on_keywords(keywords: list[str], rule = empty_rule, priority: int = 0, block: bool = False) -> Matcher

Source code or View on GitHub
python
def on_keywords(keywords: list[str], rule=empty_rule, priority: int=0, block: bool=False) -> Matcher:
 
     @Rule
     async def on_keywords_rule(event: MessageEvent):
         return any((keyword in event.raw_message for keyword in keywords))
     return on_message(on_keywords_rule & rule, priority, block)

Documentation built with VitePress | API references generated by litedoc

- + \ No newline at end of file diff --git a/en/dev/api/message/rule.html b/en/dev/api/message/rule.html index 716992f3..6e1f97b3 100644 --- a/en/dev/api/message/rule.html +++ b/en/dev/api/message/rule.html @@ -8,35 +8,35 @@ - + - + - + -
Skip to content

Module liteyuki.message.rule

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:55 @Author : snowykami @Email : snowykami@outlook.com @File : rule.py @Software: PyCharm

var RuleHandlerFunc

  • Description: 规则函数签名

  • Type: TypeAlias

  • Default: Callable[[MessageEvent], Coroutine[None, None, bool]]

class Rule

func __init__(self, handler: RuleHandlerFunc)

Source code or View on GitHub
python
def __init__(self, handler: RuleHandlerFunc):
-    self.handler = handler

func self | other: Rule => Rule

Source code or View on GitHub
python
def __or__(self, other: 'Rule') -> 'Rule':
+    
Skip to content

Module liteyuki.message.rule

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 下午10:55 @Author : snowykami @Email : snowykami@outlook.com @File : rule.py @Software: PyCharm

var RuleHandlerFunc

  • Description: 规则函数签名

  • Type: TypeAlias

  • Default: Callable[[MessageEvent], Coroutine[None, None, bool]]

class Rule


func __init__(self, handler: RuleHandlerFunc)

Source code or View on GitHub
python
def __init__(self, handler: RuleHandlerFunc):
+    self.handler = handler

func self | other: Rule => Rule

Source code or View on GitHub
python
def __or__(self, other: 'Rule') -> 'Rule':
 
     async def combined_handler(event: MessageEvent) -> bool:
         return await self.handler(event) or await other.handler(event)
-    return Rule(combined_handler)

func self & other: Rule => Rule

Source code or View on GitHub
python
def __and__(self, other: 'Rule') -> 'Rule':
+    return Rule(combined_handler)

func self & other: Rule => Rule

Source code or View on GitHub
python
def __and__(self, other: 'Rule') -> 'Rule':
 
     async def combined_handler(event: MessageEvent) -> bool:
         return await self.handler(event) and await other.handler(event)
-    return Rule(combined_handler)

async func self () event: MessageEvent => bool

Source code or View on GitHub
python
async def __call__(self, event: MessageEvent) -> bool:
+    return Rule(combined_handler)

async func self () event: MessageEvent => bool

Source code or View on GitHub
python
async def __call__(self, event: MessageEvent) -> bool:
     if self.handler is None:
         return True
-    return await self.handler(event)

@Rule

async func empty_rule(event: MessageEvent) -> bool

Source code or View on GitHub
python
@Rule
+    return await self.handler(event)

@Rule

async func empty_rule(event: MessageEvent) -> bool

Source code or View on GitHub
python
@Rule
 async def empty_rule(event: MessageEvent) -> bool:
-    return True

@Rule

async func is_su_rule(event: MessageEvent) -> bool

Source code or View on GitHub
python
@Rule
+    return True

@Rule

async func is_su_rule(event: MessageEvent) -> bool

Source code or View on GitHub
python
@Rule
 async def is_su_rule(event: MessageEvent) -> bool:
     return str(event.user_id) in _superusers

Documentation built with VitePress | API references generated by litedoc

- + \ No newline at end of file diff --git a/en/dev/api/message/session.html b/en/dev/api/message/session.html index 98586a15..817fd6ce 100644 --- a/en/dev/api/message/session.html +++ b/en/dev/api/message/session.html @@ -8,9 +8,9 @@ - + - + @@ -20,7 +20,7 @@ - + \ No newline at end of file diff --git a/en/dev/api/mkdoc.html b/en/dev/api/mkdoc.html index 493f44d1..be796489 100644 --- a/en/dev/api/mkdoc.html +++ b/en/dev/api/mkdoc.html @@ -8,30 +8,30 @@ - + - + - + -
Skip to content

Module liteyuki.mkdoc

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 上午6:23 @Author : snowykami @Email : snowykami@outlook.com @File : mkdoc.py @Software: PyCharm

class DefType(Enum)

attr FUNCTION = 'function'

attr METHOD = 'method'

attr STATIC_METHOD = 'staticmethod'

attr CLASS_METHOD = 'classmethod'

attr PROPERTY = 'property'

class FunctionInfo(BaseModel)

attr name: str = NO_DEFAULT

attr args: list[tuple[str, str]] = NO_DEFAULT

attr return_type: str = NO_DEFAULT

attr docstring: str = NO_DEFAULT

attr source_code: str = ''

attr type: DefType = NO_DEFAULT

attr is_async: bool = NO_DEFAULT

class AttributeInfo(BaseModel)

attr name: str = NO_DEFAULT

attr type: str = NO_DEFAULT

attr value: Any = None

attr docstring: str = ''

class ClassInfo(BaseModel)

attr name: str = NO_DEFAULT

attr docstring: str = NO_DEFAULT

attr methods: list[FunctionInfo] = NO_DEFAULT

attr attributes: list[AttributeInfo] = NO_DEFAULT

attr inherit: list[str] = NO_DEFAULT

class ModuleInfo(BaseModel)

attr module_path: str = NO_DEFAULT

attr functions: list[FunctionInfo] = NO_DEFAULT

attr classes: list[ClassInfo] = NO_DEFAULT

attr attributes: list[AttributeInfo] = NO_DEFAULT

attr docstring: str = NO_DEFAULT

func get_relative_path(base_path: str, target_path: str) -> str

Description: 获取相对路径

Arguments:

  • base_path: 基础路径
  • target_path: 目标路径
Source code or View on GitHub
python
def get_relative_path(base_path: str, target_path: str) -> str:
-    return os.path.relpath(target_path, base_path)

func write_to_files(file_data: dict[str, str])

Description: 输出文件

Arguments:

  • file_data: 文件数据 相对路径
Source code or View on GitHub
python
def write_to_files(file_data: dict[str, str]):
+    
Skip to content

Module liteyuki.mkdoc

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/19 上午6:23 @Author : snowykami @Email : snowykami@outlook.com @File : mkdoc.py @Software: PyCharm

class DefType(Enum)

attr FUNCTION = 'function'

attr METHOD = 'method'

attr STATIC_METHOD = 'staticmethod'

attr CLASS_METHOD = 'classmethod'

attr PROPERTY = 'property'

class FunctionInfo(BaseModel)

attr name: str = NO_DEFAULT

attr args: list[tuple[str, str]] = NO_DEFAULT

attr return_type: str = NO_DEFAULT

attr docstring: str = NO_DEFAULT

attr source_code: str = ''

attr type: DefType = NO_DEFAULT

attr is_async: bool = NO_DEFAULT

class AttributeInfo(BaseModel)

attr name: str = NO_DEFAULT

attr type: str = NO_DEFAULT

attr value: Any = None

attr docstring: str = ''

class ClassInfo(BaseModel)

attr name: str = NO_DEFAULT

attr docstring: str = NO_DEFAULT

attr methods: list[FunctionInfo] = NO_DEFAULT

attr attributes: list[AttributeInfo] = NO_DEFAULT

attr inherit: list[str] = NO_DEFAULT

class ModuleInfo(BaseModel)

attr module_path: str = NO_DEFAULT

attr functions: list[FunctionInfo] = NO_DEFAULT

attr classes: list[ClassInfo] = NO_DEFAULT

attr attributes: list[AttributeInfo] = NO_DEFAULT

attr docstring: str = NO_DEFAULT


func get_relative_path(base_path: str, target_path: str) -> str

Description: 获取相对路径

Arguments:

  • base_path: 基础路径
  • target_path: 目标路径
Source code or View on GitHub
python
def get_relative_path(base_path: str, target_path: str) -> str:
+    return os.path.relpath(target_path, base_path)

func write_to_files(file_data: dict[str, str])

Description: 输出文件

Arguments:

  • file_data: 文件数据 相对路径
Source code or View on GitHub
python
def write_to_files(file_data: dict[str, str]):
     for rp, data in file_data.items():
         if not os.path.exists(os.path.dirname(rp)):
             os.makedirs(os.path.dirname(rp))
         with open(rp, 'w', encoding='utf-8') as f:
-            f.write(data)

func get_file_list(module_folder: str)

Source code or View on GitHub
python
def get_file_list(module_folder: str):
+            f.write(data)

func get_file_list(module_folder: str)

Source code or View on GitHub
python
def get_file_list(module_folder: str):
     file_list = []
     for root, dirs, files in os.walk(module_folder):
         for file in files:
             if file.endswith(('.py', '.pyi')):
                 file_list.append(os.path.join(root, file))
-    return file_list

func get_module_info_normal(file_path: str, ignore_private: bool = True) -> ModuleInfo

Description: 获取函数和类

Arguments:

  • file_path: Python 文件路径
  • ignore_private: 忽略私有函数和类

Return: 模块信息

Source code or View on GitHub
python
def get_module_info_normal(file_path: str, ignore_private: bool=True) -> ModuleInfo:
+    return file_list

func get_module_info_normal(file_path: str, ignore_private: bool = True) -> ModuleInfo

Description: 获取函数和类

Arguments:

  • file_path: Python 文件路径
  • ignore_private: 忽略私有函数和类

Return: 模块信息

Source code or View on GitHub
python
def get_module_info_normal(file_path: str, ignore_private: bool=True) -> ModuleInfo:
     with open(file_path, 'r', encoding='utf-8') as file:
         file_content = file.read()
         tree = ast.parse(file_content)
@@ -76,7 +76,7 @@
                         if isinstance(node.value, ast.AnnAssign) and node.value.annotation:
                             attr_type = ast.unparse(node.value.annotation)
                         module_info.attributes.append(AttributeInfo(name=target.id, type=attr_type, value=ast.unparse(node.value) if node.value else None))
-    return module_info

func generate_markdown(module_info: ModuleInfo, front_matter = None, lang: str = 'zh-CN') -> str

Description: 生成模块的Markdown 你可在此自定义生成的Markdown格式

Arguments:

  • module_info: 模块信息
  • front_matter: 自定义选项title, index, icon, category
  • lang: 语言

Return: Markdown 字符串

Source code or View on GitHub
python
def generate_markdown(module_info: ModuleInfo, front_matter=None, lang: str='zh-CN') -> str:
+    return module_info

func generate_markdown(module_info: ModuleInfo, front_matter = None, lang: str = 'zh-CN') -> str

Description: 生成模块的Markdown 你可在此自定义生成的Markdown格式

Arguments:

  • module_info: 模块信息
  • front_matter: 自定义选项title, index, icon, category
  • lang: 语言

Return: Markdown 字符串

Source code or View on GitHub
python
def generate_markdown(module_info: ModuleInfo, front_matter=None, lang: str='zh-CN') -> str:
     content = ''
     front_matter = '---\n' + '\n'.join([f'{k}: {v}' for k, v in front_matter.items()]) + '\n---\n\n'
     content += front_matter
@@ -117,7 +117,7 @@
             content += f'### ***var*** `{attr.name}: {attr.type} = {attr.value}`\n\n'
         attr.docstring = attr.docstring.replace('\n', '\n\n')
         content += f'{attr.docstring}\n\n'
-    return content

func generate_docs(module_folder: str, output_dir: str, with_top: bool = False, lang: str = 'zh-CN', ignored_paths = None)

Description: 生成文档

Arguments:

  • module_folder: 模块文件夹
  • output_dir: 输出文件夹
  • with_top: 是否包含顶层文件夹 False时例如docs/api/module_a, docs/api/module_b, True时例如docs/api/module/module_a.md, docs/api/module/module_b.md
  • ignored_paths: 忽略的路径
  • lang: 语言
Source code or View on GitHub
python
def generate_docs(module_folder: str, output_dir: str, with_top: bool=False, lang: str='zh-CN', ignored_paths=None):
+    return content

func generate_docs(module_folder: str, output_dir: str, with_top: bool = False, lang: str = 'zh-CN', ignored_paths = None)

Description: 生成文档

Arguments:

  • module_folder: 模块文件夹
  • output_dir: 输出文件夹
  • with_top: 是否包含顶层文件夹 False时例如docs/api/module_a, docs/api/module_b, True时例如docs/api/module/module_a.md, docs/api/module/module_b.md
  • ignored_paths: 忽略的路径
  • lang: 语言
Source code or View on GitHub
python
def generate_docs(module_folder: str, output_dir: str, with_top: bool=False, lang: str='zh-CN', ignored_paths=None):
     if ignored_paths is None:
         ignored_paths = []
     file_data: dict[str, str] = {}
@@ -142,7 +142,7 @@
         print(f'Generate {pyfile_path} -> {abs_md_path}')
         file_data[abs_md_path] = md_content
     write_to_files(file_data)

var no_module_name_pyfile_path

  • Description: 去头路径

  • Default: get_relative_path(module_folder, pyfile_path)

Documentation built with VitePress | API references generated by litedoc

- + \ No newline at end of file diff --git a/en/dev/api/plugin/index.html b/en/dev/api/plugin/index.html index 3660c02e..85784506 100644 --- a/en/dev/api/plugin/index.html +++ b/en/dev/api/plugin/index.html @@ -8,20 +8,20 @@ - + - + - + -
Skip to content

Module liteyuki.plugin

func get_loaded_plugins() -> dict[str, Plugin]

Description: 获取已加载的插件

Return: dict[str, Plugin]: 插件字典

Source code or View on GitHub
python
def get_loaded_plugins() -> dict[str, Plugin]:
+    
-    
+    
     
   
 
\ No newline at end of file
diff --git a/en/dev/api/plugin/load.html b/en/dev/api/plugin/load.html
index 85883bb1..c651d692 100644
--- a/en/dev/api/plugin/load.html
+++ b/en/dev/api/plugin/load.html
@@ -8,18 +8,18 @@
     
     
     
-    
+    
     
-    
+    
     
-    
+    
     
     
     
     
   
   
-    
Skip to content

Module liteyuki.plugin.load

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/23 下午11:59 @Author : snowykami @Email : snowykami@outlook.com @File : load.py @Software: PyCharm

func load_plugin(module_path: str | Path) -> Optional[Plugin]

Description: 加载单个插件,可以是本地插件或是通过 pip 安装的插件。

Arguments:

  • module_path: 插件名称 path.to.your.plugin
  • 或插件路径 pathlib.Path(path/to/your/plugin):
Source code or View on GitHub
python
def load_plugin(module_path: str | Path) -> Optional[Plugin]:
+    
Skip to content

Module liteyuki.plugin.load

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/23 下午11:59 @Author : snowykami @Email : snowykami@outlook.com @File : load.py @Software: PyCharm


func load_plugin(module_path: str | Path) -> Optional[Plugin]

Description: 加载单个插件,可以是本地插件或是通过 pip 安装的插件。

Arguments:

  • module_path: 插件名称 path.to.your.plugin
  • 或插件路径 pathlib.Path(path/to/your/plugin):
Source code or View on GitHub
python
def load_plugin(module_path: str | Path) -> Optional[Plugin]:
     module_path = path_to_module_name(Path(module_path)) if isinstance(module_path, Path) else module_path
     try:
         module = import_module(module_path)
@@ -43,7 +43,7 @@
     except Exception as e:
         logger.opt(colors=True).success(f'Failed to load liteyuki plugin "<r>{module_path}</r>"')
         traceback.print_exc()
-        return None

func load_plugins(*plugin_dir: str, *, ignore_warning: bool = True) -> set[Plugin]

Description: 导入文件夹下多个插件

Arguments:

  • plugin_dir: 文件夹路径
  • ignore_warning: 是否忽略警告,通常是目录不存在或目录为空
Source code or View on GitHub
python
def load_plugins(*plugin_dir: str, ignore_warning: bool=True) -> set[Plugin]:
+        return None

func load_plugins(*plugin_dir: str, *, ignore_warning: bool = True) -> set[Plugin]

Description: 导入文件夹下多个插件

Arguments:

  • plugin_dir: 文件夹路径
  • ignore_warning: 是否忽略警告,通常是目录不存在或目录为空
Source code or View on GitHub
python
def load_plugins(*plugin_dir: str, ignore_warning: bool=True) -> set[Plugin]:
     plugins = set()
     for dir_path in plugin_dir:
         if not os.path.exists(dir_path):
@@ -69,7 +69,7 @@
                 load_plugin(module_name)
                 if _plugins.get(module_name):
                     plugins.add(_plugins[module_name])
-    return plugins

func format_display_name(display_name: str, plugin_type: PluginType) -> str

Description: 设置插件名称颜色,根据不同类型插件设置颜色

Arguments:

  • display_name: 插件名称
  • plugin_type: 插件类型

Return: str: 设置后的插件名称

Source code or View on GitHub
python
def format_display_name(display_name: str, plugin_type: PluginType) -> str:
+    return plugins

func format_display_name(display_name: str, plugin_type: PluginType) -> str

Description: 设置插件名称颜色,根据不同类型插件设置颜色

Arguments:

  • display_name: 插件名称
  • plugin_type: 插件类型

Return: str: 设置后的插件名称

Source code or View on GitHub
python
def format_display_name(display_name: str, plugin_type: PluginType) -> str:
     color = 'y'
     match plugin_type:
         case PluginType.APPLICATION:
@@ -81,7 +81,7 @@
         case PluginType.SERVICE:
             color = 'c'
     return f'<{color}>{display_name} [{plugin_type.name}]</{color}>'

Documentation built with VitePress | API references generated by litedoc

- + \ No newline at end of file diff --git a/en/dev/api/plugin/manager.html b/en/dev/api/plugin/manager.html index 7f4b039b..6c2f21c0 100644 --- a/en/dev/api/plugin/manager.html +++ b/en/dev/api/plugin/manager.html @@ -8,9 +8,9 @@ - + - + @@ -20,7 +20,7 @@ - + \ No newline at end of file diff --git a/en/dev/api/plugin/model.html b/en/dev/api/plugin/model.html index 289f1e2b..ca8d0861 100644 --- a/en/dev/api/plugin/model.html +++ b/en/dev/api/plugin/model.html @@ -8,20 +8,20 @@ - + - + - + -
Skip to content

Module liteyuki.plugin.model

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/24 上午12:02 @Author : snowykami @Email : snowykami@outlook.com @File : model.py @Software: PyCharm

class PluginType(Enum)

attr APPLICATION = 'application'

attr SERVICE = 'service'

attr MODULE = 'module'

attr UNCLASSIFIED = 'unclassified'

attr TEST = 'test'

class PluginMetadata(BaseModel)

attr name: str = NO_DEFAULT

attr description: str = ''

attr usage: str = ''

attr type: PluginType = PluginType.UNCLASSIFIED

attr author: str = ''

attr homepage: str = ''

attr extra: dict[str, Any] = {}

class Plugin(BaseModel)

func hash self

Source code or View on GitHub
python
def __hash__(self):
+    
Skip to content

Module liteyuki.plugin.model

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/7/24 上午12:02 @Author : snowykami @Email : snowykami@outlook.com @File : model.py @Software: PyCharm

class PluginType(Enum)

attr APPLICATION = 'application'

attr SERVICE = 'service'

attr MODULE = 'module'

attr UNCLASSIFIED = 'unclassified'

attr TEST = 'test'

class PluginMetadata(BaseModel)

attr name: str = NO_DEFAULT

attr description: str = ''

attr usage: str = ''

attr type: PluginType = PluginType.UNCLASSIFIED

attr author: str = ''

attr homepage: str = ''

attr extra: dict[str, Any] = {}

class Plugin(BaseModel)


func hash self

Source code or View on GitHub
python
def __hash__(self):
     return hash(self.module_name)

attr model_config = {'arbitrary_types_allowed': True}

attr name: str = NO_DEFAULT

attr module: ModuleType = NO_DEFAULT

attr module_name: str = NO_DEFAULT

attr metadata: Optional[PluginMetadata] = None

Documentation built with VitePress | API references generated by litedoc

- + \ No newline at end of file diff --git a/en/dev/api/plugins/index.html b/en/dev/api/plugins/index.html index 9aef2b37..6a08ec59 100644 --- a/en/dev/api/plugins/index.html +++ b/en/dev/api/plugins/index.html @@ -8,9 +8,9 @@ - + - + @@ -20,7 +20,7 @@ - + \ No newline at end of file diff --git a/en/dev/api/plugins/liteecho.html b/en/dev/api/plugins/liteecho.html index 1a5e63d5..ff43c829 100644 --- a/en/dev/api/plugins/liteecho.html +++ b/en/dev/api/plugins/liteecho.html @@ -8,21 +8,21 @@ - + - + - + -
Skip to content

Module liteyuki.plugins.liteecho

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/22 下午12:31 @Author : snowykami @Email : snowykami@outlook.com @File : liteecho.py @Software: PyCharm

@on_startswith(['liteecho'], rule=is_su_rule).handle()

async func liteecho(event: MessageEvent)

Source code or View on GitHub
python
@on_startswith(['liteecho'], rule=is_su_rule).handle()
+    
Skip to content

Module liteyuki.plugins.liteecho

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/22 下午12:31 @Author : snowykami @Email : snowykami@outlook.com @File : liteecho.py @Software: PyCharm


@on_startswith(['liteecho'], rule=is_su_rule).handle()

async func liteecho(event: MessageEvent)

Source code or View on GitHub
python
@on_startswith(['liteecho'], rule=is_su_rule).handle()
 async def liteecho(event: MessageEvent):
     event.reply(event.raw_message.strip()[8:].strip())

Documentation built with VitePress | API references generated by litedoc

- + \ No newline at end of file diff --git a/en/dev/api/plugins/plugin_loader/index.html b/en/dev/api/plugins/plugin_loader/index.html index a080c9ac..873e947a 100644 --- a/en/dev/api/plugins/plugin_loader/index.html +++ b/en/dev/api/plugins/plugin_loader/index.html @@ -8,23 +8,23 @@ - + - + - + -
Skip to content

Module liteyuki.plugins.plugin_loader

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/11 下午10:02 @Author : snowykami @Email : snowykami@outlook.com @File : init.py.py @Software: PyCharm

func default_plugins_loader()

Description: 默认插件加载器,应在初始化时调用

Source code or View on GitHub
python
def default_plugins_loader():
+    
Skip to content

Module liteyuki.plugins.plugin_loader

Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/11 下午10:02 @Author : snowykami @Email : snowykami@outlook.com @File : init.py.py @Software: PyCharm


func default_plugins_loader()

Description: 默认插件加载器,应在初始化时调用

Source code or View on GitHub
python
def default_plugins_loader():
     for plugin in get_config('liteyuki.plugins', []):
         load_plugin(plugin)
     for plugin_dir in get_config('liteyuki.plugin_dirs', ['src/liteyuki_plugins']):
         load_plugins(plugin_dir)

Documentation built with VitePress | API references generated by litedoc

- + \ No newline at end of file diff --git a/en/dev/api/utils.html b/en/dev/api/utils.html index 0f5256fe..256be4bd 100644 --- a/en/dev/api/utils.html +++ b/en/dev/api/utils.html @@ -8,24 +8,24 @@ - + - + - + -
Skip to content

Module liteyuki.utils

一些常用的工具类,部分来源于 nonebot 并遵循其许可进行修改

func is_coroutine_callable(call: Callable[..., Any]) -> bool

Description: 判断是否为协程可调用对象

Arguments:

  • call: 可调用对象

Return: bool: 是否为协程可调用对象

Source code or View on GitHub
python
def is_coroutine_callable(call: Callable[..., Any]) -> bool:
+    
Skip to content

Module liteyuki.utils

一些常用的工具类,部分来源于 nonebot 并遵循其许可进行修改


func is_coroutine_callable(call: Callable[..., Any]) -> bool

Description: 判断是否为协程可调用对象

Arguments:

  • call: 可调用对象

Return: bool: 是否为协程可调用对象

Source code or View on GitHub
python
def is_coroutine_callable(call: Callable[..., Any]) -> bool:
     if inspect.isroutine(call):
         return inspect.iscoroutinefunction(call)
     if inspect.isclass(call):
         return False
     func_ = getattr(call, '__call__', None)
-    return inspect.iscoroutinefunction(func_)

func run_coroutine(*coro: Coroutine)

Description: 运行协程

Arguments:

  • coro:
Source code or View on GitHub
python
def run_coroutine(*coro: Coroutine):
+    return inspect.iscoroutinefunction(func_)

func run_coroutine(*coro: Coroutine)

Description: 运行协程

Arguments:

  • coro:
Source code or View on GitHub
python
def run_coroutine(*coro: Coroutine):
     try:
         loop = asyncio.get_running_loop()
         if loop.is_running():
@@ -40,19 +40,19 @@
         loop.run_until_complete(asyncio.gather(*coro))
         loop.close()
     except Exception as e:
-        logger.error(f'Exception occurred: {e}')

func run_coroutine_in_thread(*coro: Coroutine)

Description: 在新线程中运行协程

Arguments:

  • coro:
Source code or View on GitHub
python
def run_coroutine_in_thread(*coro: Coroutine):
-    threading.Thread(target=run_coroutine, args=coro, daemon=True).start()

func path_to_module_name(path: Path) -> str

Description: 转换路径为模块名

Arguments:

  • path: 路径a/b/c/d -> a.b.c.d

Return: str: 模块名

Source code or View on GitHub
python
def path_to_module_name(path: Path) -> str:
+        logger.error(f'Exception occurred: {e}')

func run_coroutine_in_thread(*coro: Coroutine)

Description: 在新线程中运行协程

Arguments:

  • coro:
Source code or View on GitHub
python
def run_coroutine_in_thread(*coro: Coroutine):
+    threading.Thread(target=run_coroutine, args=coro, daemon=True).start()

func path_to_module_name(path: Path) -> str

Description: 转换路径为模块名

Arguments:

  • path: 路径a/b/c/d -> a.b.c.d

Return: str: 模块名

Source code or View on GitHub
python
def path_to_module_name(path: Path) -> str:
     rel_path = path.resolve().relative_to(Path.cwd().resolve())
     if rel_path.stem == '__init__':
         return '.'.join(rel_path.parts[:-1])
     else:
-        return '.'.join(rel_path.parts[:-1] + (rel_path.stem,))

func async_wrapper(func: Callable[..., Any]) -> Callable[..., Coroutine]

Description: 异步包装器

Arguments:

  • func: Sync Callable

Return: Coroutine: Asynchronous Callable

Source code or View on GitHub
python
def async_wrapper(func: Callable[..., Any]) -> Callable[..., Coroutine]:
+        return '.'.join(rel_path.parts[:-1] + (rel_path.stem,))

func async_wrapper(func: Callable[..., Any]) -> Callable[..., Coroutine]

Description: 异步包装器

Arguments:

  • func: Sync Callable

Return: Coroutine: Asynchronous Callable

Source code or View on GitHub
python
def async_wrapper(func: Callable[..., Any]) -> Callable[..., Coroutine]:
 
     async def wrapper(*args, **kwargs):
         return func(*args, **kwargs)
     wrapper.__signature__ = inspect.signature(func)
     return wrapper

Documentation built with VitePress | API references generated by litedoc

- + \ No newline at end of file diff --git a/en/dev/comm.html b/en/dev/comm.html index 909f3bfd..1e95ebc0 100644 --- a/en/dev/comm.html +++ b/en/dev/comm.html @@ -8,9 +8,9 @@ - + - + @@ -62,7 +62,7 @@ shared_memory.set("key", "value") # 设置共享内存 value = shared_memory.get("key") # 获取共享内存

源代码:liteyuki/comm/storage.py

Documentation built with VitePress | API references generated by litedoc

- + \ No newline at end of file diff --git a/en/dev/guide.html b/en/dev/guide.html index a5adbdeb..97142edf 100644 --- a/en/dev/guide.html +++ b/en/dev/guide.html @@ -8,12 +8,12 @@ - + - + - - + + @@ -21,7 +21,7 @@
Skip to content

Development Guide

How to Develop

Please read the Plugin Development and API Reference documents if you are developing a plugin.

If you need to submit code to the Liteyuki repository, please read the following:

  1. First fork a copy of the Liteyuki repository to your personal/organization account.
  2. Develop in your repository.
  3. Create a new branch in your repository and submit your code to this branch.
  4. Create a Pull Request in your repository to merge your branch into the main branch of the Liteyuki repository.
  • Participation in development assumes that you are already familiar with the basic usage of the Python language and the Liteyuki framework.
  • If you are developing documentation, please ensure that you are familiar with Markdown syntax and basic front-end knowledge.
  • Contact the repository maintainer in case of conflicts.

Suggestions

  • During development, you can use tools such as mypy, flake8, and black for code checking and formatting.
  • Enable developer mode by setting dev_mode: true in config.yml to see more debugging information in the console.

Project Structure

  • main.py: Bot entry file
  • liteyuki: Framework directory (liteyukibot)
  • src: Bot application source code directory
    • liteyuki_plugins: Liteyuki plugin directory
    • nonebot_plugins: Nonebot plugin directory
    • resources: Built-in resource packs directory
    • utils: Utility directory
  • tests: Unit test directory
  • docs: Documentation directory
    • en: English documentation
    • zh: Chinese documentation
  • docker: Docker related content directory

The liteyuki framework is included in the LiteyukiBot application, so this project is both the LiteyukiBot application repository and the liteyuki framework repository.

The src directory is the application part, please develop business logic in this directory. liteyuki_plugins and nonebot_plugins directories are plugin directories, please develop plugins in these directories.

Standardization

  • Code should follow PEP8 and Google Python Style Guide.
  • In addition, code submitted to the Liteyuki repository should follow the following guidelines:
    • Ensure that the code is runnable and harmless.
    • Ensure that the type hints in the code are correct.
    • Ensure that the comment style is Google Docstring or Liteyuki Docstring(recommended) to ensure that Litedoc can parse and generate documentation correctly.
    • Strings should be enclosed in double quotes " as much as possible, and single quotes ' should be used when nesting strings.
    • If there is a part for ordinary users, ensure that the documentation is complete (each language has corresponding documentation).
  • commit message should follow the following guidelines:
    • You should commit the code after completing a feature or fixing a bug, and not mix the code of multiple features or bugs together.
    • We use gitmoji to mark the type of commit, such as :sparkles: for introducing new features, :bug: for fixing bugs, etc., please refer to gitmoji for details.
    • The format of the commit message is <emoji> [type:] <message>, such as :sparkles: feat: add new field to event, where the type field is the type of commit, not much is required, but please fill in as much as possible; the message field is a brief description, in summary, what you did.
    • There is no restriction on the language of the commit message, and bilingual use is possible if conditions permit.
  • The documentation should follow Markdown syntax and support vitepress-related content:
    • Revise the documentation for each language when editing.
    • Ensure that the links in the document are correct and do not lead to inaccessible links.
    • Ensure that the User Documentation is easy to understand and the Development Documentation is detailed.

Finally

  • This project is a non-profit open-source project, and we welcome anyone to participate in development. Your contributions will make Liteyuki better.

Thanks the following contributors!

Contributors

Documentation built with VitePress | API references generated by litedoc

- + \ No newline at end of file diff --git a/en/dev/lyfunc.html b/en/dev/lyfunc.html index 283707f8..81f823f9 100644 --- a/en/dev/lyfunc.html +++ b/en/dev/lyfunc.html @@ -8,9 +8,9 @@ - + - + @@ -39,7 +39,7 @@ sleep 0.2 nohup function poke await

API

理论上所有基于onebotv11的api都可调用,不同Adapter api也有差别.

Onebot v11 API文档

结束关键字

由于LiteyukiBot基于异步运行, 所以在编写lyfunction时也要注意异步的调用,避免出现"单线程走到底"的情况是效率提升的关键.

await 异步任务结束关键字,用于结束当前已完成function的执行

WARNING

但若出现非单function的情况,有一个task任务没有完成而await被执行了,那么当前所有函数包的task都会被截停销毁

TIP

编写轻雪函数推荐你使用VS Code插件Liteyuki Function实现语法高亮

Documentation built with VitePress | API references generated by litedoc

- + \ No newline at end of file diff --git a/en/dev/plugin.html b/en/dev/plugin.html index 870f40b5..27dc1eca 100644 --- a/en/dev/plugin.html +++ b/en/dev/plugin.html @@ -8,9 +8,9 @@ - + - + @@ -51,7 +51,7 @@ liteyuki.restart_process("nonebot") # 调用重启进程方法

加载插件

方法1

  • 在配置文件中的liteyuki.plugins中添加你的插件路径,例如watchdog_plugin,重启轻雪即可加载插件。

方法2

  • 使用开发工具快速运行插件,无需手动创建实例
  • 创建入口文件,例如main.py,并在其中写入以下代码
python
from liteyuki.dev.plugin import run_plugins
 
 run_plugins("watchdog_plugin")

然后运行python main.py即可启动插件

启用插件后,我们在src/nonebot_plugins下创建一个文件,例如test.py,并在其中写入一些代码,保存后轻雪会自动重载NoneBot进程

Documentation built with VitePress | API references generated by litedoc

- + \ No newline at end of file diff --git a/en/dev/resource.html b/en/dev/resource.html index 320795e4..c4d12ca1 100644 --- a/en/dev/resource.html +++ b/en/dev/resource.html @@ -8,9 +8,9 @@ - + - + @@ -32,7 +32,7 @@ description: "资源包描述" # 你可以自定义一些信息,但请保证以上三个字段 ...
  • 资源包加载遵循一个优先级,即后加载的资源包会覆盖前面的资源包,例如,你在A包中定义了一个index.html文件,B包也定义了一个index.html文件,那么加载B包后,A包中的index.html文件会被覆盖
  • 对于不同资源包的不同文件,是可以相对引用的,例如你在A中定义了templates/index.html,在B中定义了templates/style.css,可以在A的index.html中用./style.css相对路径引用B中的css

TIP

资源包的结构会随着轻雪的更新而有变动,第三方资源包开发者需要注意版本兼容性,同时用户也应该自行选择可用的资源包

Documentation built with VitePress | API references generated by litedoc

- + \ No newline at end of file diff --git a/en/index.html b/en/index.html index e62d668b..fa4265ec 100644 --- a/en/index.html +++ b/en/index.html @@ -8,9 +8,9 @@ - + - + @@ -20,7 +20,7 @@ - + \ No newline at end of file diff --git a/en/store/plugin.html b/en/store/plugin.html index db6f0a16..a8048f2e 100644 --- a/en/store/plugin.html +++ b/en/store/plugin.html @@ -8,9 +8,9 @@ - + - + @@ -20,7 +20,7 @@
Skip to content

Plugin Store

Content from the LightSnow Plugin Store, LightSnow supports NoneBot through the lpnonebot plugin, and references some NoneBot plugins

Liteyuki Only

Documentation built with VitePress | API references generated by litedoc

- + \ No newline at end of file diff --git a/en/store/resource.html b/en/store/resource.html index 82beafc4..3003fedf 100644 --- a/en/store/resource.html +++ b/en/store/resource.html @@ -8,9 +8,9 @@ - + - + @@ -20,7 +20,7 @@
Skip to content

Resources Store

Documentation built with VitePress | API references generated by litedoc

- + \ No newline at end of file diff --git a/en/usage/agreement.html b/en/usage/agreement.html index a33b4e82..ba4954ea 100644 --- a/en/usage/agreement.html +++ b/en/usage/agreement.html @@ -8,9 +8,9 @@ - + - + @@ -20,7 +20,7 @@
Skip to content

用户协议

  1. 本项目遵循MIT协议,你可以自由使用,修改,分发,但是请保留原作者信息
  2. 你可以选择开启auto_report(默认开启),轻雪会收集以下内容
    • 运行环境的设备信息:CPU,内存,系统信息及Python信息
    • 插件信息(不含插件数据)
    • 部分异常信息,
    • 会话负载信息(不含隐私部分) 以上内容仅用于项目的优化,不包含任何隐私信息,且通过安全的方式传输到轻雪的服务器,若你不希望提供这些信息,可以在配置文件中把auto_report设定为false
  3. 本项目不会收集用户的任何隐私信息,但请注意甄别第三方插件的安全性
  4. 使用此项目代表你已经同意以上协议

Documentation built with VitePress | API references generated by litedoc

- + \ No newline at end of file diff --git a/en/usage/basic.html b/en/usage/basic.html index ff293688..8129d590 100644 --- a/en/usage/basic.html +++ b/en/usage/basic.html @@ -8,9 +8,9 @@ - + - + @@ -20,7 +20,7 @@
Skip to content

基础插件


TIP

参数<param>为必填参数,[option]为可选参数。

命令别名:配置了命令别名的命令可以使用别名代替原命令,例如npm install ~可以使用插件 安装 ~代替。

轻雪命令liteyuki_command

命令说明权限举例可用参数
reload-liteyuki重载轻雪超级用户
update-liteyuki更新轻雪超级用户
liteecho查看当前bot 版本超级用户
status查看统计信息和状态超级用户
config set <key> value添加配置项,若存在则会覆盖,输入值会被执行以转换为正确的类型,"10"和10是不一样的超级用户config set name 'liteyuki-bot'<key>: 若存在则覆盖, 若不存在则创建于config.yml ; value: yml格式的所有合法内容
config get [key] 查询配置项,不带key返回配置项列表,推荐私聊使用超级用户config get name<key>: 若存在则返回, 若不存在则返回空
switch-image-mode 在普通图片和Markdown大图之间切换,该功能需要commit:505468b及以后的Lagrange.OneBot,默认普通图片超级用户switch-image-mode
/api api_name [args] 调用机器人API超级用户/api get_group_member_list group_id=1234567<args>: 参数列表, 格式为onebot v11协议api, 可用%20代替空格
/function function_name [args] [kwargs] 调用机器人函数(.lyfunction语法)超级用户/function send_group_msg group_id=1234567 message='hello'<args><kwargs>: 参数列表, api格式为onebot v11协议api
group enable/disable [group_id]在群聊启用/停用机器人,group_id仅超级用户可用超级用户,群聊仅群主、管理员、超级用户可用group enable 1145141919810<group_id>: 群号
liteyuki-docs查看轻雪文档所有人

命令别名

命令别名
status状态
reload-liteyuki重启轻雪
update-liteyuki更新轻雪
reload-resources重载资源
config配置, set 设置 / get 查询
switch-image-mode切换图片模式
liteyuki-docs轻雪文档
group群聊, enable 启用 / disable 停用

插件/包管理器 liteyuki_pacman

  • 插件管理
命令说明权限
npm update更新插件商店索引超级用户
npm install <plugin_name>安装插件超级用户
npm uninstall <plugin_name>卸载插件超级用户
npm search <keywords...>通过关键词搜索插件超级用户
npm enable-global/disable-global <plugin_name>全局启用/停用插件超级用户
npm enable/disable <plugin_name> [--group <group_id>]当前会话启用/停用插件群聊仅群主、管理员、超级用户可用,私聊所有人可用
npm list [page] [num]列出所有插件 page为页数,num为每页显示数量群聊仅群主、管理员、超级用户可用,私聊所有人可用
help <plugin_name>查看插件帮助所有人
  • 资源包管理
命令说明权限
rpm list [page] [num]列出所有资源包 page为页数,num为每页显示数量超级用户
rpm load <pack_name>加载资源包超级用户
rpm unload <pack_name>卸载资源包超级用户
rpm change <pack_name>修改优先级超级用户
rpm reload重载所有资源包超级用户

命令别名

命令别名
npm插件管理
update更新
install安装
uninstall卸载
search搜索
enable启用
disable停用
enable-global全局启用
disable-global全局停用
rpm资源包
load加载
unload卸载
change更改
reload重载
list列表
help帮助

WARNING

受限于NoneBot2钩子函数的依赖注入参数,插件停用只能阻断传入响应,对于主动推送的插件不生效,请阅读插件主页的说明。


用户管理liteyuki_user

命令说明权限
profile查看用户信息菜单所有人
profile set <key> [value]设置用户信息或打开属性设置菜单所有人
profile get <key>获取用户信息所有人

###命令别名

命令别名
profile个人信息
set设置
get查询

Documentation built with VitePress | API references generated by litedoc

- + \ No newline at end of file diff --git a/en/usage/extra.html b/en/usage/extra.html index 9b3b92e7..615a55f9 100644 --- a/en/usage/extra.html +++ b/en/usage/extra.html @@ -8,9 +8,9 @@ - + - + @@ -20,7 +20,7 @@
Skip to content

功能插件命令

轻雪天气liteyuki_weather

查询实时天气,支持绑定城市,支持中英文城市名,支持多个关键词查询。

配置项

yaml
weather_key: "" # 和风天气的天气key,会自动判断key版本

命令

shell
weather <keywords...> # Keywords为城市名,支持中英文

查询目标地实时天气,例如:"天气 北京 海淀", "weather Tokyo Shinjuku"

shell
bind-city <keywords...> # Keywords为城市名,支持中英文

绑定查询城市,个人全局生效

命令别名

命令别名
weather天气
bind-city绑定城市

统计信息liteyuki_statistics

统计信息 命令

shell
statistic message --duration <duration> --period <period> --group [current|group_id] --bot [current|bot_id]

功能: 用于统计Bot接收到的消息, 统计周期为period, 统计时间范围为duration

参数格式
duration使用通用日期简写: 1d(天), 1h(小时), 45m(分钟), 14s(秒)
period使用通用日期简写: 1d(天), 1h(小时), 45m(分钟), 14s(秒)
groupcurrent (当前群聊) 或 group_id (QQ群号)
botcurrent (当前Bot) 或 bot_id

命令别名

命令别名
statisticstat
messagem
--duration-d
--period`-p
--group-g
--bot-b
currentc

Documentation built with VitePress | API references generated by litedoc

- + \ No newline at end of file diff --git a/hashmap.json b/hashmap.json index 52da09fc..43936167 100644 --- a/hashmap.json +++ b/hashmap.json @@ -1 +1 @@ -{"deploy_config.md":"BBoJ_SVs","deploy_fandq.md":"D3AaSKzf","deploy_install.md":"DMcLeaSP","dev_api_bot_index.md":"DNY8cUbE","dev_api_bot_lifespan.md":"cXpYfBFa","dev_api_comm_channel.md":"Rby8KuoW","dev_api_comm_event.md":"0WEOopJJ","dev_api_comm_index.md":"BubSUNVe","dev_api_comm_rpc.md":"CATS97wW","dev_api_comm_socks_channel.md":"DowR8ySw","dev_api_comm_storage.md":"BTq8RCp9","dev_api_config.md":"DBrWZGxB","dev_api_core_index.md":"B0E7Phf1","dev_api_core_manager.md":"CEfbZ5pK","dev_api_dev_index.md":"Chgr0inF","dev_api_dev_observer.md":"1UR7dS3y","dev_api_dev_plugin.md":"C_CkUgwx","dev_api_exception.md":"Bo7F9S9r","dev_api_index.md":"mhROT_CR","dev_api_log.md":"CJtELCL9","dev_api_message_event.md":"z4kIykti","dev_api_message_index.md":"Ox32xQC5","dev_api_message_matcher.md":"Dl6noJmI","dev_api_message_on.md":"C1h6vNQo","dev_api_message_rule.md":"D55CYU4N","dev_api_message_session.md":"Dvgy6WBS","dev_api_mkdoc.md":"KHhZ0jbQ","dev_api_plugin_index.md":"CcmFWY5K","dev_api_plugin_load.md":"CssacMr6","dev_api_plugin_manager.md":"WWoouVFL","dev_api_plugin_model.md":"CSS29TEc","dev_api_plugins_index.md":"kWwCXP54","dev_api_plugins_liteecho.md":"a-DHFJ66","dev_api_plugins_plugin_loader_index.md":"VShWijpV","dev_api_utils.md":"BCCrA2Tn","dev_comm.md":"cMJIV6AK","dev_guide.md":"CeOBWODY","dev_lyfunc.md":"D4LU5X67","dev_plugin.md":"phZolwS6","dev_resource.md":"CiEukBtC","en_deploy_config.md":"DdMT5vqs","en_deploy_fandq.md":"BKc7kj27","en_deploy_install.md":"C00Sx2cS","en_dev_api_bot_index.md":"Etpbg95G","en_dev_api_bot_lifespan.md":"B5dt163D","en_dev_api_comm_channel.md":"Db8NECOS","en_dev_api_comm_event.md":"DVEQ_riJ","en_dev_api_comm_index.md":"BghEev94","en_dev_api_comm_rpc.md":"CY-ENZCj","en_dev_api_comm_socks_channel.md":"CndQIApl","en_dev_api_comm_storage.md":"CBNLmX3O","en_dev_api_config.md":"Dm7JCHCl","en_dev_api_core_index.md":"NuGEgKq2","en_dev_api_core_manager.md":"BEvIQjQG","en_dev_api_dev_index.md":"UZwSl7RN","en_dev_api_dev_observer.md":"B50F8CO1","en_dev_api_dev_plugin.md":"CGOTYIDu","en_dev_api_exception.md":"HPP9FBE6","en_dev_api_index.md":"Bem5oMXv","en_dev_api_log.md":"DR6xjPic","en_dev_api_message_event.md":"DPY-2dlG","en_dev_api_message_index.md":"CTleW7FS","en_dev_api_message_matcher.md":"EXm6yebY","en_dev_api_message_on.md":"DHqvXPYl","en_dev_api_message_rule.md":"v7qMjTeZ","en_dev_api_message_session.md":"BJvZrFxU","en_dev_api_mkdoc.md":"DyhS85pU","en_dev_api_plugin_index.md":"BlDLlzQ8","en_dev_api_plugin_load.md":"CNTMTSZw","en_dev_api_plugin_manager.md":"LGDmEnuh","en_dev_api_plugin_model.md":"hMsXQnst","en_dev_api_plugins_index.md":"CBJItUz2","en_dev_api_plugins_liteecho.md":"Bq_UeUyc","en_dev_api_plugins_plugin_loader_index.md":"Dyg-8Oyz","en_dev_api_utils.md":"pu8aZDZV","en_dev_comm.md":"DWySVBZ2","en_dev_guide.md":"C76-pPPo","en_dev_lyfunc.md":"BhYjNK3N","en_dev_plugin.md":"CKzO3RVR","en_dev_resource.md":"Q8AwzAyN","en_index.md":"DS37TlOH","en_store_plugin.md":"C0UyBVv2","en_store_resource.md":"Ci-LBCav","en_usage_agreement.md":"vFfahjeR","en_usage_basic.md":"DVpsBy5w","en_usage_extra.md":"DU-WQhbO","index.md":"Dl11pd1E","store_plugin.md":"BhQadjel","store_resource.md":"CgUrr2wJ","usage_agreement.md":"BYijSUyJ","usage_basic.md":"CS9J19pD","usage_extra.md":"CPLcG44C"} +{"deploy_config.md":"BBoJ_SVs","deploy_fandq.md":"D3AaSKzf","deploy_install.md":"DMcLeaSP","dev_api_bot_index.md":"CygawBD3","dev_api_bot_lifespan.md":"DBf_PC3G","dev_api_comm_channel.md":"B_Q8RkLg","dev_api_comm_event.md":"Dkw9vL8j","dev_api_comm_index.md":"BubSUNVe","dev_api_comm_rpc.md":"ZF5gW_b7","dev_api_comm_socks_channel.md":"D0z-3box","dev_api_comm_storage.md":"DlCQ-bAW","dev_api_config.md":"BWciqFj4","dev_api_core_index.md":"B0E7Phf1","dev_api_core_manager.md":"B3hq0Rpu","dev_api_dev_index.md":"Chgr0inF","dev_api_dev_observer.md":"DXfnQgLO","dev_api_dev_plugin.md":"Cops7KZu","dev_api_exception.md":"Bo7F9S9r","dev_api_index.md":"mhROT_CR","dev_api_log.md":"B0RBm2Ui","dev_api_message_event.md":"DyDwsc6d","dev_api_message_index.md":"Ox32xQC5","dev_api_message_matcher.md":"DVuQfqJD","dev_api_message_on.md":"CApMkdr1","dev_api_message_rule.md":"DtsqYM0_","dev_api_message_session.md":"Dvgy6WBS","dev_api_mkdoc.md":"BQNdAtbl","dev_api_plugin_index.md":"DyFjlTCa","dev_api_plugin_load.md":"CqVkk0P5","dev_api_plugin_manager.md":"WWoouVFL","dev_api_plugin_model.md":"BmVr2u82","dev_api_plugins_index.md":"kWwCXP54","dev_api_plugins_liteecho.md":"sryx6SuS","dev_api_plugins_plugin_loader_index.md":"DVvGETw-","dev_api_utils.md":"wryzX8vr","dev_comm.md":"cMJIV6AK","dev_guide.md":"S84qIxk3","dev_lyfunc.md":"D4LU5X67","dev_plugin.md":"phZolwS6","dev_resource.md":"CiEukBtC","en_deploy_config.md":"DdMT5vqs","en_deploy_fandq.md":"BKc7kj27","en_deploy_install.md":"C00Sx2cS","en_dev_api_bot_index.md":"C4r8HhEl","en_dev_api_bot_lifespan.md":"B-nofctY","en_dev_api_comm_channel.md":"VoA9irwY","en_dev_api_comm_event.md":"Crpo-bJ4","en_dev_api_comm_index.md":"BghEev94","en_dev_api_comm_rpc.md":"DKVp72_P","en_dev_api_comm_socks_channel.md":"B8_s4Hv_","en_dev_api_comm_storage.md":"WX6gT40z","en_dev_api_config.md":"CRNFMcJd","en_dev_api_core_index.md":"NuGEgKq2","en_dev_api_core_manager.md":"D7QE1GyX","en_dev_api_dev_index.md":"UZwSl7RN","en_dev_api_dev_observer.md":"DAh-d3XU","en_dev_api_dev_plugin.md":"ByOqvpeD","en_dev_api_exception.md":"HPP9FBE6","en_dev_api_index.md":"Bem5oMXv","en_dev_api_log.md":"t5U3-0Tg","en_dev_api_message_event.md":"C6I96y2L","en_dev_api_message_index.md":"CTleW7FS","en_dev_api_message_matcher.md":"CtCEbUVJ","en_dev_api_message_on.md":"DOPTBR4O","en_dev_api_message_rule.md":"BBaFECzV","en_dev_api_message_session.md":"BJvZrFxU","en_dev_api_mkdoc.md":"B0odpxJC","en_dev_api_plugin_index.md":"ibr3u-4e","en_dev_api_plugin_load.md":"BqElTQmm","en_dev_api_plugin_manager.md":"LGDmEnuh","en_dev_api_plugin_model.md":"C8mVVzkp","en_dev_api_plugins_index.md":"CBJItUz2","en_dev_api_plugins_liteecho.md":"BkpA_Gke","en_dev_api_plugins_plugin_loader_index.md":"cG7vDNwD","en_dev_api_utils.md":"DKuaapxu","en_dev_comm.md":"DWySVBZ2","en_dev_guide.md":"DMm2-_b5","en_dev_lyfunc.md":"BhYjNK3N","en_dev_plugin.md":"CKzO3RVR","en_dev_resource.md":"Q8AwzAyN","en_index.md":"DS37TlOH","en_store_plugin.md":"C0UyBVv2","en_store_resource.md":"Ci-LBCav","en_usage_agreement.md":"vFfahjeR","en_usage_basic.md":"DVpsBy5w","en_usage_extra.md":"DU-WQhbO","index.md":"Dl11pd1E","store_plugin.md":"BhQadjel","store_resource.md":"CgUrr2wJ","usage_agreement.md":"BYijSUyJ","usage_basic.md":"CS9J19pD","usage_extra.md":"CPLcG44C"} diff --git a/index.html b/index.html index e5393b18..8fbe8cd1 100644 --- a/index.html +++ b/index.html @@ -8,9 +8,9 @@ - + - + @@ -20,7 +20,7 @@ - + \ No newline at end of file diff --git a/store/plugin.html b/store/plugin.html index 6be3b9c3..bda49106 100644 --- a/store/plugin.html +++ b/store/plugin.html @@ -8,9 +8,9 @@ - + - + @@ -20,7 +20,7 @@
Skip to content

插件商店

内容来自轻雪插件商店,轻雪通过lpnonebot插件对NoneBot实现支持,引用了部分NoneBot插件

仅轻雪

文档由 VitePress 构建 | API引用由 litedoc 生成

- + \ No newline at end of file diff --git a/store/resource.html b/store/resource.html index 46f6e3d2..bb015cdb 100644 --- a/store/resource.html +++ b/store/resource.html @@ -8,9 +8,9 @@ - + - + @@ -20,7 +20,7 @@
Skip to content

文档由 VitePress 构建 | API引用由 litedoc 生成

- + \ No newline at end of file diff --git a/usage/agreement.html b/usage/agreement.html index 7ec56950..9703c07a 100644 --- a/usage/agreement.html +++ b/usage/agreement.html @@ -8,9 +8,9 @@ - + - + @@ -20,7 +20,7 @@
Skip to content

用户协议

  1. 本项目遵循MIT协议,你可以自由使用,修改,分发,但是请保留原作者信息
  2. 你可以选择开启auto_report(默认开启),轻雪会收集以下内容
    • 运行环境的设备信息:CPU,内存,系统信息及Python信息
    • 插件信息(不含插件数据)
    • 部分异常信息,
    • 会话负载信息(不含隐私部分) 以上内容仅用于项目的优化,不包含任何隐私信息,且通过安全的方式传输到轻雪的服务器,若你不希望提供这些信息,可以在配置文件中把auto_report设定为false
  3. 本项目不会收集用户的任何隐私信息,但请注意甄别第三方插件的安全性
  4. 使用此项目代表你已经同意以上协议

文档由 VitePress 构建 | API引用由 litedoc 生成

- + \ No newline at end of file diff --git a/usage/basic.html b/usage/basic.html index d61180a2..0f3e86dd 100644 --- a/usage/basic.html +++ b/usage/basic.html @@ -8,9 +8,9 @@ - + - + @@ -20,7 +20,7 @@
Skip to content

基础插件


TIP

参数<param>为必填参数,[option]为可选参数。

命令别名:配置了命令别名的命令可以使用别名代替原命令,例如npm install ~可以使用插件 安装 ~代替。

轻雪命令liteyuki_command

命令说明权限举例可用参数
reload-liteyuki重载轻雪超级用户
update-liteyuki更新轻雪超级用户
liteecho查看当前bot 版本超级用户
status查看统计信息和状态超级用户
config set <key> value添加配置项,若存在则会覆盖,输入值会被执行以转换为正确的类型,"10"和10是不一样的超级用户config set name 'liteyuki-bot'<key>: 若存在则覆盖, 若不存在则创建于config.yml ; value: yml格式的所有合法内容
config get [key] 查询配置项,不带key返回配置项列表,推荐私聊使用超级用户config get name<key>: 若存在则返回, 若不存在则返回空
switch-image-mode 在普通图片和Markdown大图之间切换,该功能需要commit:505468b及以后的Lagrange.OneBot,默认普通图片超级用户switch-image-mode
/api api_name [args] 调用机器人API超级用户/api get_group_member_list group_id=1234567<args>: 参数列表, 格式为onebot v11协议api, 可用%20代替空格
/function function_name [args] [kwargs] 调用机器人函数(.lyfunction语法)超级用户/function send_group_msg group_id=1234567 message='hello'<args><kwargs>: 参数列表, api格式为onebot v11协议api
group enable/disable [group_id]在群聊启用/停用机器人,group_id仅超级用户可用超级用户,群聊仅群主、管理员、超级用户可用group enable 1145141919810<group_id>: 群号
liteyuki-docs查看轻雪文档所有人

命令别名

命令别名
status状态
reload-liteyuki重启轻雪
update-liteyuki更新轻雪
reload-resources重载资源
config配置, set 设置 / get 查询
switch-image-mode切换图片模式
liteyuki-docs轻雪文档
group群聊, enable 启用 / disable 停用

插件/包管理器 liteyuki_pacman

  • 插件管理
命令说明权限
npm update更新插件商店索引超级用户
npm install <plugin_name>安装插件超级用户
npm uninstall <plugin_name>卸载插件超级用户
npm search <keywords...>通过关键词搜索插件超级用户
npm enable-global/disable-global <plugin_name>全局启用/停用插件超级用户
npm enable/disable <plugin_name> [--group <group_id>]当前会话启用/停用插件群聊仅群主、管理员、超级用户可用,私聊所有人可用
npm list [page] [num]列出所有插件 page为页数,num为每页显示数量群聊仅群主、管理员、超级用户可用,私聊所有人可用
help <plugin_name>查看插件帮助所有人
  • 资源包管理
命令说明权限
rpm list [page] [num]列出所有资源包 page为页数,num为每页显示数量超级用户
rpm load <pack_name>加载资源包超级用户
rpm unload <pack_name>卸载资源包超级用户
rpm change <pack_name>修改优先级超级用户
rpm reload重载所有资源包超级用户

命令别名

命令别名
npm插件管理
update更新
install安装
uninstall卸载
search搜索
enable启用
disable停用
enable-global全局启用
disable-global全局停用
rpm资源包
load加载
unload卸载
change更改
reload重载
list列表
help帮助

WARNING

受限于NoneBot2钩子函数的依赖注入参数,插件停用只能阻断传入响应,对于主动推送的插件不生效,请阅读插件主页的说明。


用户管理liteyuki_user

命令说明权限
profile查看用户信息菜单所有人
profile set <key> [value]设置用户信息或打开属性设置菜单所有人
profile get <key>获取用户信息所有人

###命令别名

命令别名
profile个人信息
set设置
get查询

文档由 VitePress 构建 | API引用由 litedoc 生成

- + \ No newline at end of file diff --git a/usage/extra.html b/usage/extra.html index 0e9feff8..60be659f 100644 --- a/usage/extra.html +++ b/usage/extra.html @@ -8,9 +8,9 @@ - + - + @@ -20,7 +20,7 @@
Skip to content

功能插件命令

轻雪天气liteyuki_weather

查询实时天气,支持绑定城市,支持中英文城市名,支持多个关键词查询。

配置项

yaml
weather_key: "" # 和风天气的天气key,会自动判断key版本

命令

shell
weather <keywords...> # Keywords为城市名,支持中英文

查询目标地实时天气,例如:"天气 北京 海淀", "weather Tokyo Shinjuku"

shell
bind-city <keywords...> # Keywords为城市名,支持中英文

绑定查询城市,个人全局生效

命令别名

命令别名
weather天气
bind-city绑定城市

统计信息liteyuki_statistics

统计信息 命令

shell
statistic message --duration <duration> --period <period> --group [current|group_id] --bot [current|bot_id]

功能: 用于统计Bot接收到的消息, 统计周期为period, 统计时间范围为duration

参数格式
duration使用通用日期简写: 1d(天), 1h(小时), 45m(分钟), 14s(秒)
period使用通用日期简写: 1d(天), 1h(小时), 45m(分钟), 14s(秒)
groupcurrent (当前群聊) 或 group_id (QQ群号)
botcurrent (当前Bot) 或 bot_id

命令别名

命令别名
statisticstat
messagem
--duration-d
--period`-p
--group-g
--bot-b
currentc

文档由 VitePress 构建 | API引用由 litedoc 生成

- + \ No newline at end of file