We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d41f48 commit 9b7e897Copy full SHA for 9b7e897
1 file changed
src/modules/utils/index.ts
@@ -1,6 +1,5 @@
1
import type { PluginFunction } from '~/lib/plugin'
2
3
-import { escapeMarkdown } from '~/lib/helper'
4
import { setTGBotCommands } from '~/lib/register-command'
5
6
import { fetchHitokoto } from '../mx-space/api/hitokoto'
@@ -13,9 +12,10 @@ export const register: PluginFunction = async (ctx) => {
13
12
group: '其他小功能',
14
command: 'hitokoto',
15
description: '获取一条一言',
16
- handler: async () => {
+ handler: async (_, ctx) => {
17
const { hitokoto } = await fetchHitokoto()
18
- return escapeMarkdown(hitokoto)
+ await ctx.reply(hitokoto)
+ return true
19
},
20
21
])
0 commit comments