mirror of
https://gitlab.com/qwerinope/qweribot.git
synced 2026-02-04 13:56:57 +01:00
small refactor and small lootbox rebalance SMILERS
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { changeItemCount, Item } from "items";
|
||||
import { sendMessage } from "commands";
|
||||
import { sendMessage } from "lib/commandUtils";
|
||||
import { createTimeoutRecord } from "db/dbTimeouts";
|
||||
import { createUsedItemRecord } from "db/dbUsedItems";
|
||||
import { getUserRecord } from "db/dbUser";
|
||||
@@ -17,8 +17,8 @@ export default new Item({
|
||||
description: 'Times a specific person out for 60 seconds',
|
||||
aliases: ['blaster', 'blast'],
|
||||
price: 100,
|
||||
execution: async (msg, user) => {
|
||||
const messagequery = parseCommandArgs(msg.messageText);
|
||||
execution: async (msg, user, specialargs) => {
|
||||
const messagequery = parseCommandArgs(msg.messageText, specialargs?.activation);
|
||||
if (!messagequery[0]) { await sendMessage('Please specify a target'); return; };
|
||||
const target = await User.initUsername(messagequery[0].toLowerCase());
|
||||
if (!target) { await sendMessage(`${messagequery[0]} doesn't exist`); return; };
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { redis } from "bun";
|
||||
import { sendMessage } from "commands";
|
||||
import { redis } from "lib/redis";
|
||||
import { sendMessage } from "lib/commandUtils";
|
||||
import { timeout } from "lib/timeout";
|
||||
import { changeItemCount, Item } from "items";
|
||||
import User from "user";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { EventSubChannelChatMessageEvent } from "@twurple/eventsub-base";
|
||||
import User from "user";
|
||||
import { type userType, type specialExecuteArgs } from "commands";
|
||||
import { type userType, type specialExecuteArgs } from "lib/commandUtils";
|
||||
|
||||
type itemOptions = {
|
||||
name: items;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { changeItemCount, Item } from "items";
|
||||
import { sendMessage } from "commands";
|
||||
import { sendMessage } from "lib/commandUtils";
|
||||
import { createTimeoutRecord } from "db/dbTimeouts";
|
||||
import { createUsedItemRecord } from "db/dbUsedItems";
|
||||
import { getUserRecord } from "db/dbUser";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { redis } from "bun";
|
||||
import { sendMessage } from "commands";
|
||||
import { redis } from "lib/redis";
|
||||
import { sendMessage } from "lib/commandUtils";
|
||||
import { timeout } from "lib/timeout";
|
||||
import { changeItemCount, Item } from "items";
|
||||
import User from "user";
|
||||
|
||||
Reference in New Issue
Block a user