diff --git a/docs/.vitepress/config/common.ts b/docs/.vitepress/config/common.ts index 33ed3b6c..a038f757 100644 --- a/docs/.vitepress/config/common.ts +++ b/docs/.vitepress/config/common.ts @@ -1,9 +1,9 @@ // 共有配置项,导入index用 -import {defineConfig} from 'vitepress' -import {generateSidebar} from 'vitepress-sidebar'; -import {zh} from "./zh"; -import {en} from "./en"; +import { defineConfig } from 'vitepress' +import { generateSidebar } from 'vitepress-sidebar'; +import { zh } from "./zh"; +import { en } from "./en"; let defaultLocale = 'zh'; const commonSidebarOptions = { @@ -53,8 +53,8 @@ console.log(generateSidebarConfig()) export const common = defineConfig({ head: [ // 配置favicon.ico - ['link', {rel: 'icon', type: 'image/x-icon', href: 'favicon.ico'}], - ['link', {rel: 'stylesheet', href: 'https://fonts.font.im/css?family=Cousine:400,400i,700,700i|Poppins:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i'}], + ['link', { rel: 'icon', type: 'image/x-icon', href: 'favicon.ico' }], + ['link', { rel: 'stylesheet', href: 'https://fonts.font.im/css?family=Cousine:400,400i,700,700i|Poppins:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i' }], ], rewrites: { [`${defaultLocale}/:rest*`]: ":rest*", @@ -71,12 +71,12 @@ export const common = defineConfig({ ] ), socialLinks: [ - {icon: 'github', link: 'https://github.com/LiteyukiStudio/LiteyukiBot'}, + { icon: 'github', link: 'https://github.com/LiteyukiStudio/LiteyukiBot' }, { icon: { svg: '' }, - link: "https://git.liteyuki.icu/LiteyukiStudio/LiteyukiBot" + link: "https://git.liteyuki.icu/bot/app" } ], search: { @@ -124,8 +124,8 @@ export const common = defineConfig({ }, lastUpdated: true, locales: { - root: {label: "简体中文", ...zh}, - en: {label: "English", ...en}, + root: { label: "简体中文", ...zh }, + en: { label: "English", ...en }, }, }) \ No newline at end of file diff --git a/src/liteyuki_plugins/nonebot/nonebot_plugins/to_liteyuki.py b/src/liteyuki_plugins/nonebot/nonebot_plugins/to_liteyuki.py index 310b376a..34989d9a 100644 --- a/src/liteyuki_plugins/nonebot/nonebot_plugins/to_liteyuki.py +++ b/src/liteyuki_plugins/nonebot/nonebot_plugins/to_liteyuki.py @@ -36,9 +36,5 @@ ctx = get_ctx() @on_message(block=False, priority=0).handle() async def _(bot: Bot, event: MessageEvent): session = await get_session(bot, event) - print("Role", session.member.role) - new_session = Session(**session.dump()) - - logger.debug("SESSION", new_session) logger.debug("Pushing message to Liteyuki") - ctx.sub_chan << event.raw_message + ctx.sub_chan << event.raw_message # type: ignore