(user?: string, pass?: string)
| 501 | |
| 502 | private async handleLogin(msg: Api.Message, user?: string, pass?: string) { |
| 503 | if (!user || !pass) { |
| 504 | await msg.edit({ text: `用法: ${commandName} login [用户名] [密码]` }); |
| 505 | return; |
| 506 | } |
| 507 | await this.updateStoredCredentials(user, pass); |
| 508 | await msg.edit({ text: "✅ 账号信息已保存,可以尝试上传文件了。" }); |
| 509 | } |
| 510 | |
| 511 | private async handleSetDefault(msg: Api.Message, path?: string) { |
| 512 | const db = await this.getDb(); |
no test coverage detected