add vulnchatters command and add comments

This commit is contained in:
2025-06-24 20:14:45 +02:00
parent dcfb013447
commit 5728440fcd
6 changed files with 44 additions and 8 deletions

View File

@@ -0,0 +1,12 @@
import { redis } from "bun";
import { Command, sendMessage } from ".";
export default new Command('vulnchatters',
['vulnchatters', 'vulnc'],
[],
async msg => {
const data = await redis.keys('vulnchatters:*');
const one = data.length === 1;
await sendMessage(`There ${one ? 'is' : 'are'} ${data.length} vulnerable chatter${one ? '' : 's'}`, msg.messageId);
}
);