mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 13:27:08 +00:00
fix: #chatgpt删除token
This commit is contained in:
parent
08e78209a0
commit
bb87169454
1 changed files with 10 additions and 0 deletions
|
|
@ -48,6 +48,11 @@ export class ChatgptManagement extends plugin {
|
|||
fnc: 'setAccessToken',
|
||||
permission: 'master'
|
||||
},
|
||||
{
|
||||
reg: '^#chatgpt(删除|解绑)(token|Token)?',
|
||||
fnc: 'delAccessToken',
|
||||
permission: 'master'
|
||||
},
|
||||
{
|
||||
reg: '^#chatgpt(设置|绑定)(Poe|POE)(token|Token)',
|
||||
fnc: 'setPoeCookie',
|
||||
|
|
@ -705,6 +710,11 @@ azure语音:Azure 语音是微软 Azure 平台提供的一项语音服务,
|
|||
return false
|
||||
}
|
||||
|
||||
async delAccessToken () {
|
||||
await redis.del('CHATGPT:TOKEN')
|
||||
await this.reply('删除成功', true)
|
||||
}
|
||||
|
||||
async setPoeCookie () {
|
||||
this.setContext('savePoeToken')
|
||||
await this.reply('请发送Poe Cookie', true)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue