mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 22:07:10 +00:00
fix: task格式错误
This commit is contained in:
parent
c11732be4c
commit
65d0679745
1 changed files with 8 additions and 8 deletions
|
|
@ -11,14 +11,6 @@ export class Entertainment extends plugin {
|
||||||
dsc: 'ChatGPT-Plugin娱乐小功能',
|
dsc: 'ChatGPT-Plugin娱乐小功能',
|
||||||
event: 'message',
|
event: 'message',
|
||||||
priority: 500,
|
priority: 500,
|
||||||
task: [
|
|
||||||
{
|
|
||||||
// 每半小时
|
|
||||||
cron: '*/30 * * * ?',
|
|
||||||
name: 'ChatGPT主动随机说话',
|
|
||||||
fnc: 'sendRandomMessage'
|
|
||||||
}
|
|
||||||
],
|
|
||||||
rule: [
|
rule: [
|
||||||
{
|
{
|
||||||
reg: '^#(chatgpt|ChatGPT)打招呼',
|
reg: '^#(chatgpt|ChatGPT)打招呼',
|
||||||
|
|
@ -26,6 +18,14 @@ export class Entertainment extends plugin {
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
this.task = [
|
||||||
|
{
|
||||||
|
// 每半小时
|
||||||
|
cron: '*/30 * * * ?',
|
||||||
|
name: 'ChatGPT主动随机说话',
|
||||||
|
fnc: this.sendRandomMessage.bind(this)
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
async sendMessage (e) {
|
async sendMessage (e) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue