<divid="app"><divclass="Layout"data-v-7e3343f7><!--[--><!--]--><!--[--><spantabindex="-1"data-v-a977b129></span><ahref="#VPContent"class="VPSkipLink visually-hidden"data-v-a977b129> Skip to content </a><!--]--><!----><headerclass="VPNav"data-v-7e3343f7data-v-d52d372b><divclass="VPNavBar has-sidebar top"data-v-d52d372bdata-v-37a6b570><divclass="wrapper"data-v-37a6b570><divclass="container"data-v-37a6b570><divclass="title"data-v-37a6b570><divclass="VPNavBarTitle has-sidebar"data-v-37a6b570data-v-de953605><aclass="title"href="/en/"data-v-de953605><!--[--><!--]--><!--[--><imgclass="VPImage logo"src="/liteyuki.svg"altdata-v-6e911b93><!--]--><spandata-v-de953605>LiteyukiBot</span><!--[--><!--]--></a></div></div><divclass="content"data-v-37a6b570><divclass="content-body"data-v-37a6b570><!--[--><!--]--><divclass="VPNavBarSearch search"data-v-37a6b570><!--[--><!----><divid="local-search"><buttontype="button"class="DocSearch DocSearch-Button"aria-label="Search"><spanclass="DocSearch-Button-Container"><spanclass="vp-icon DocSearch-Search-Icon"></span><spanclass="DocSearch-Button-Placeholder">Search</span></span><spanclass="DocSearch-Button-Keys"><kbdclass="DocSearch-Button-Key"></kbd><kbdclass="DocSearch-Button-Key">K</kbd></span></button></div><!--]--></div><navaria-labelledby="main-nav-aria-label"class="VPNavBarMenu menu"data-v-37a6b570data-v-71183eee><spanid="main-nav-aria-label"class="visually-hidden"data-v-71183eee> Main Navigation </span><!--[--><!--[--><aclass="VPLink link VPNavBarMenuLink"href="/en/deploy/install.html"tabindex="0"data-v-71183eeedata-v-c423e9f4><!--[--><spandata-v-c423e9f4>Deploy</span><!--]--></a><!--]--><!--[--><aclass="VPLink link VPNavBarMenuLink"href="/en/usage/basic.html"tabindex="0"data-v-71183eeedata-v-c423e9f4><!--[--><spandata-v-c423e9f4>Usage</span><!--]--></a><!--]--><!--[--><aclass="VPLink link VPNavBarMenuLink"href="/en/store/resource.html"tabindex="0"data-v-71183eeedata-v-c423e9f4><!--[--><spandata-v-c423e9f4>Extension</span><!--]--></a><!--]--><!--[--><aclass="VPLink link VPNavBarMenuLink"href="/en/dev/api.html"tabindex="0"data-v-71183eeedata-v-c423e9f4><!--[--><spandata-v-c423e9f4>Develop</span><!--]--></a><!--]--><!--]--></nav><divclass="VPFlyout VPNavBarTranslations translations"data-v-37a6b570data-v-d3047050data-v-12ec5ee2><buttontype="button"class="button"aria-haspopup="true"aria-expanded="false"aria-label="Change language"data-v-12ec5ee2><spanclass="text"data-v-12ec5ee2><spanclass="vpi-languages option-icon"data-v-12ec5ee2></span><!----><spanclass="vpi-chevron-down text-icon"data-v-12ec5ee2></span></span></button><divclass="menu"data-v-12ec5ee2><divclass="VPMenu"data-v-12ec5ee2data-v-0e22c6c5><!----><!--[--><!--[--><divclass="items"data-v-d3047050><pclass="title"data-v-d3047050>English</p><!--[--><divclass="VPMenuLink"data-v-d3047050data-v-19363427><aclass="VPLink link"href="/dev/api/message/on.html"data-v-19363427><!--[-->简体中文<!--]--></a></div><!--]--></div><!--]--><!--]--></div></div></div><divclass="VPNavBarAppearance appearance"data-v-37a6b570data-v-0a1958c9><buttonclass="VPSwitch VPSwitchAppearance"type="button"role="switch"title="Switch to dark theme"aria-checked="false"data-v-0a1958c9data-v-0f382965data-v-b19619af><spanclass="check"data-v-b19619af><spanclass="icon"data-v-b19619af><!--[--><spanclass="vpi-sun sun"data-v-0f382965></span><spanclass="vpi-moon moon"data-v-0f382965></span><!--]--></span></span></button></div><divclass="VPSocialLinks VPNavBarSocialLinks social-links"data-v-37a6b570data-v-edaebeb1data-v-52782a78><!--[--><aclass="VPSocialLink no-icon"href="https://github.com/LiteyukiStudio/LiteyukiBot"aria-label="github"target="_blank"rel="noopener"data-v-52782a78data-v-974e0aed><spanclass="vpi-social-github"/></a><!--]--></div><divclass="VPFlyout VPNavBarExtra extra"data-v-37a6b570data-v-c34ef5aadata-v-12ec5ee2><buttontype="button"class="button"aria-haspopup="true"aria-expanded="false"aria-label="extranavigatio
<spanclass="line"><spanstyle="--shiki-light:#D73A49;--shiki-dark:#F97583;"> for</span><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> i, m </span><spanstyle="--shiki-light:#D73A49;--shiki-dark:#F97583;">in</span><spanstyle="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> enumerate</span><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(_matcher_list):</span></span>
<spanclass="line"><spanstyle="--shiki-light:#D73A49;--shiki-dark:#F97583;"> return</span><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> on_message(on_keywords_rule </span><spanstyle="--shiki-light:#D73A49;--shiki-dark:#F97583;">&</span><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> rule, priority, block)</span></span></code></pre></div></details></div></div></main><footerclass="VPDocFooter"data-v-4981c415data-v-e27a0cf7><!--[--><!--]--><divclass="edit-info"data-v-e27a0cf7><divclass="edit-link"data-v-e27a0cf7><aclass="VPLink link vp-external-link-icon no-icon edit-link-button"href="https://github.com/LiteyukiStudio/LiteyukiBot/tree/main/liteyuki/message/on.py"target="_blank"rel="noreferrer"data-v-e27a0cf7><!--[--><spanclass="vpi-square-pen edit-link-icon"data-v-e27a0cf7></span> Edit this page on GitHub<!--]--></a></div><divclass="last-updated"data-v-e27a0cf7><pclass="VPLastUpdated"data-v-e27a0cf7data-v-243e2690>Last updated: <timedatetime="2024-08-31T10:57:48.000Z"data-v-243e2690></time></p></div></div><navclass="prev-next"aria-labelledby="doc-footer-aria-label"data-v-e27a0cf7><spanclass="visually-hidden"id="doc-footer-aria-label"data-v-e27a0cf7>Pager</span><divclass="pager"data-v-e27a0cf7><aclass="VPLink link pager-link prev"href="/en/dev/api/message/matcher.html"data-v-e27a0cf7><!--[--><spanclass="desc"data-v-e27a0cf7>Prev Page</span><spanclass="title"data-v-e27a0cf7>liteyuki.message.matcher</span><!--]--></a></div><divclass="pager"data-v-e27a0cf7><aclass="VPLink link pager-link next"href="/en/dev/api/message/rule.html"data-v-e27a0cf7><!--[--><spanclass="desc"data-v-e27a0cf7>Next Page</span><spanclass="title"data-v-e27a0cf7>liteyuki.message.rule</span><!--]--></a></div></nav></footer><!--[--><!--]--></div></div></div><!--[--><!--]--></div></div><footerclass="VPFooter has-sidebar"data-v-7e3343f7data-v-098a46ae><divclass="container"data-v-098a46ae><pclass="message"data-v-098a46ae>Documentation built with <ahref="https://vitepress.dev/">VitePress</a> | API references generated by <ahref="https://github.com/LiteyukiStudio/litedoc">litedoc</a></p><pclass="copyright"data-v-098a46ae>Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved</p></div></footer><!--[--><!--]--></div></div>