mirror of
https://github.com/qwerinope/qweribot.git
synced 2025-12-19 08:41:39 +01:00
13 lines
382 B
TypeScript
13 lines
382 B
TypeScript
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);
|
|
}
|
|
);
|