add basic redeem handling, nerf silver bullets to 30 minutes

This commit is contained in:
2025-09-24 21:31:36 +02:00
parent 2960ea5242
commit 392c67fb0d
9 changed files with 155 additions and 19 deletions

View File

@@ -14,10 +14,10 @@ export default new Item({
name: ITEMNAME,
prettyName: 'Silver bullet',
plural: 's',
description: 'Times a specific person out for 24 hours',
description: 'Times a specific person out for 30 minutes',
aliases: ['execute', 'silverbullet'],
specialaliases: ['blastin'],
price: 6666,
price: 666,
execution: async (msg, user, specialargs) => {
const messagequery = parseCommandArgs(msg.messageText, specialargs?.activation);
if (!messagequery[0]) { await sendMessage('Please specify a target'); return; };
@@ -31,7 +31,7 @@ export default new Item({
const userObj = await getUserRecord(user);
if (userObj.inventory[ITEMNAME]! < 1) { await sendMessage(`You don't have any silver bullets!`, msg.messageId); await user.clearLock(); return; };
const result = await timeout(target, `You got blasted by ${user.displayName}!`, 60 * 60 * 24);
const result = await timeout(target, `You got blasted by ${user.displayName}!`, 60 * 30);
if (result.status) await Promise.all([
sendMessage(`${target.displayName} RIPBOZO RIPBOZO RIPBOZO RIPBOZO RIPBOZO RIPBOZO RIPBOZO`),
changeItemCount(user, userObj, ITEMNAME),