mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 21:37:11 +00:00
fix: 邮箱打码
This commit is contained in:
parent
c46c8fe458
commit
76caf5d040
2 changed files with 54 additions and 3 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import plugin from '../../../lib/plugins/plugin.js'
|
||||
import { SunoClient } from '../client/SunoClient.js'
|
||||
import { Config } from '../utils/config.js'
|
||||
import { downloadFile } from '../utils/common.js'
|
||||
import { downloadFile, maskEmail } from '../utils/common.js'
|
||||
import common from '../../../lib/common/common.js'
|
||||
|
||||
export class Vocal extends plugin {
|
||||
|
|
@ -59,7 +59,9 @@ export class Vocal extends plugin {
|
|||
let client = new SunoClient({ sessToken: sess, clientToken })
|
||||
let { credit, email } = await client.queryCredit()
|
||||
logger.info({ credit, email })
|
||||
msg += `用户${email}余额:${credit}\n`
|
||||
msg += `用户: ${maskEmail(email)} 余额:${credit}\n`
|
||||
msg += '-------------------\n'
|
||||
msg += 'Notice:每首歌消耗5credit,每次生成2首歌'
|
||||
}
|
||||
await e.reply(msg)
|
||||
return true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue