fix: 邮箱打码

This commit is contained in:
ikechan8370 2024-02-21 14:50:44 +08:00
parent c46c8fe458
commit 76caf5d040
2 changed files with 54 additions and 3 deletions

View file

@ -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