mirror of
https://github.com/qwerinope/qweribot.git
synced 2025-12-21 01:24:19 +01:00
added itemlock command, added TNT item, minor bugfixes
This commit is contained in:
@@ -16,7 +16,7 @@ export default new Command('admingive', ['admingive'], 'admin', async msg => {
|
||||
if (!args[2]) { await sendMessage('Please specify the amount of the item you want to give', msg.messageId); return; };
|
||||
const amount = Number(args[2]);
|
||||
if (isNaN(amount)) { await sendMessage(`${args[2]} is not a valid amount`); return; };
|
||||
if (await target.itemLock()) { await sendMessage('Cannot give item: item transaction in progress', msg.messageId); return; };
|
||||
if (await target.itemLock()) { await sendMessage('Cannot give item: item lock is set', msg.messageId); return; };
|
||||
await target.setLock();
|
||||
const data = await changeItemCount(target, userRecord, item.name, amount);
|
||||
if (data) {
|
||||
|
||||
Reference in New Issue
Block a user