mirror of
https://github.com/qwerinope/qweribot.git
synced 2025-12-19 00:51:37 +01:00
17 lines
463 B
TypeScript
17 lines
463 B
TypeScript
import { Command, sendMessage } from "lib/commandUtils";
|
|
import { redis } from "lib/redis";
|
|
|
|
export default new Command({
|
|
name: "vulnchatters",
|
|
aliases: ["vulnchatters", "vulnc", "vc"],
|
|
usertype: "chatter",
|
|
execution: 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,
|
|
);
|
|
},
|
|
});
|