mirror of
https://github.com/qwerinope/qweribot.git
synced 2025-12-20 05:51:39 +01:00
added itemlock command, added TNT item, minor bugfixes
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { chatterId, streamerId, eventSub, commandPrefix, singleUserMode, streamerUsers } from "..";
|
||||
import { User } from "../user";
|
||||
import commands from "../commands";
|
||||
import commands, { sendMessage } from "../commands";
|
||||
import { redis } from "bun";
|
||||
import { isAdmin } from "../lib/admins";
|
||||
|
||||
@@ -42,6 +42,10 @@ eventSub.onChannelChatMessage(streamerId, streamerId, async msg => {
|
||||
};
|
||||
|
||||
try { await selected.execute(msg, user!); }
|
||||
catch (err) { console.error(err); };
|
||||
catch (err) {
|
||||
console.error(err);
|
||||
await sendMessage('ERROR: Something went wrong', msg.messageId);
|
||||
await user?.clearLock();
|
||||
};
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user