From bdde9c45fdf56aaa425a4ed3aa6048ab031c84b3 Mon Sep 17 00:00:00 2001 From: snowykami Date: Sat, 9 Nov 2024 23:51:35 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20=E4=BC=98=E5=8C=96=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=96=87=E4=BB=B6=E6=A0=BC=E5=BC=8F=E5=92=8C=E6=B8=85?= =?UTF-8?q?=E7=90=86=E6=97=A0=E7=94=A8=E8=B0=83=E8=AF=95=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=EF=BC=8C=E4=BF=AE=E6=94=B9gitea=E4=BB=93=E5=BA=93=E8=B7=AF?= =?UTF-8?q?=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vitepress/config/common.ts | 20 +++++++++---------- .../nonebot/nonebot_plugins/to_liteyuki.py | 6 +----- 2 files changed, 11 insertions(+), 15 deletions(-) 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