mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 13:57: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娱乐小功能',
|
||||
event: 'message',
|
||||
priority: 500,
|
||||
task: [
|
||||
{
|
||||
// 每半小时
|
||||
cron: '*/30 * * * ?',
|
||||
name: 'ChatGPT主动随机说话',
|
||||
fnc: 'sendRandomMessage'
|
||||
}
|
||||
],
|
||||
rule: [
|
||||
{
|
||||
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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue