mirror of
https://github.com/qwerinope/qweribot.git
synced 2025-12-19 05:51:37 +01:00
9 lines
374 B
TypeScript
9 lines
374 B
TypeScript
import { redis } from "bun";
|
|
import { Command, sendMessage } from ".";
|
|
|
|
export default new Command('vulnchatters', ['vulnchatters', 'vulnc'], 'chatter', 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);
|
|
});
|