mirror of
https://github.com/qwerinope/qweribot.git
synced 2025-12-18 23:01:38 +01:00
9 lines
384 B
TypeScript
9 lines
384 B
TypeScript
import { redis } from "bun";
|
|
import { Command, sendMessage } from "commands";
|
|
|
|
export default new Command('vulnchatters', ['vulnchatters', 'vulnc'], 'chatter', async msg => {
|
|
const data = await redis.keys('user:*:vulnerable');
|
|
const one = data.length === 1;
|
|
await sendMessage(`There ${one ? 'is' : 'are'} ${data.length} vulnerable chatter${one ? '' : 's'}`, msg.messageId);
|
|
});
|