mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-16 08:20:14 +01:00
⚙️ feat: includedTools and script changes (#2690)
* chore: add email to npm scripts (user-stats and list-balances) * feat: included tools * chore: update console terminal links * chore: add back typing
This commit is contained in:
parent
89899164ed
commit
6fc664e4a3
9 changed files with 94 additions and 79 deletions
|
|
@ -19,9 +19,9 @@ const connect = require('./connect');
|
|||
for (const user of users) {
|
||||
let balance = await Balance.findOne({ user: user._id });
|
||||
if (balance !== null) {
|
||||
console.green(`User ${user.name} has a balance of ${balance.tokenCredits}`);
|
||||
console.green(`User ${user.name} (${user.email}) has a balance of ${balance.tokenCredits}`);
|
||||
} else {
|
||||
console.yellow(`User ${user.name} has no balance`);
|
||||
console.yellow(`User ${user.name} (${user.email}) has no balance`);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ const connect = require('./connect');
|
|||
|
||||
userData.push({
|
||||
User: user.name,
|
||||
Email: user.email,
|
||||
Conversations: conversationsCount,
|
||||
Messages: messagesCount,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue