mirror of
https://github.com/qwerinope/qweribot.git
synced 2025-12-19 08:41:39 +01:00
disallow aniv bots from giving items
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
import { getUserRecord } from "db/dbUser";
|
||||
import items, { changeItemCount } from "items";
|
||||
import { Command, sendMessage } from "lib/commandUtils";
|
||||
import { ANIVNAMES } from "lib/handleAnivMessage";
|
||||
import logger from "lib/logger";
|
||||
import parseCommandArgs from "lib/parseCommandArgs";
|
||||
import { timeout } from "lib/timeout";
|
||||
import User from "user";
|
||||
|
||||
export default new Command({
|
||||
@@ -10,6 +12,11 @@ export default new Command({
|
||||
aliases: ["give"],
|
||||
usertype: "chatter",
|
||||
execution: async (msg, user) => {
|
||||
if (Array.from<string>(ANIVNAMES).includes(msg.chatterName)) {
|
||||
await sendMessage("CLANKERS CAN'T GIVE ITEMS UltraMad UltraMad UltraMad");
|
||||
await timeout(user, "STUPID CLANKER", 30);
|
||||
return;
|
||||
}
|
||||
const args = parseCommandArgs(msg.messageText);
|
||||
if (!args[0]) {
|
||||
await sendMessage("Please specify a user", msg.messageId);
|
||||
|
||||
Reference in New Issue
Block a user