diff --git a/src/commands/inventory.ts b/src/commands/inventory.ts index dae17f0..8c5af86 100644 --- a/src/commands/inventory.ts +++ b/src/commands/inventory.ts @@ -27,7 +27,7 @@ export default createBotCommand('inv', async (params, { userName, say, userDispl if (messagedata.length === 0) { await say(`${data.me ? userDisplayName : params[0]} has no items!`); return } await say(` - inventory of ${data.me ? userDisplayName : params[0]}: + inventory of ${data.me ? userDisplayName : user.displayName}: ${messagedata.join(', ')} `) }, { aliases: ['inventory'] }) diff --git a/src/commands/stats.ts b/src/commands/stats.ts index 13e6ccb..4f3118e 100644 --- a/src/commands/stats.ts +++ b/src/commands/stats.ts @@ -21,7 +21,7 @@ const stats = createBotCommand('stats', async (params, { say, userName, userDisp await say( ` - THIS MONTH: Stats of ${data.me ? userDisplayName : params[0]}: + THIS MONTH: Stats of ${data.me ? userDisplayName : user.displayName}: Users blasted: ${data.stats.shot.blaster}, Blasted by others: ${data.stats.hit.blaster} (${isNaN(KD) ? 0 : KD.toFixed(2)} K/D). Grenades lobbed: ${data.stats.used.grenade} @@ -48,7 +48,7 @@ const alltime = createBotCommand('alltime', async (params, { say, userName, user await say( ` - ALLTIME: Stats of ${data.me ? userDisplayName : params[0]}: + ALLTIME: Stats of ${data.me ? userDisplayName : user.displayName}: Users blasted: ${data.stats.shot.blaster}, Blasted by others: ${data.stats.hit.blaster} (${isNaN(KD) ? 0 : KD.toFixed(2)} K/D). Grenades lobbed: ${data.stats.used.grenade} diff --git a/src/commands/timeout.ts b/src/commands/timeout.ts index 541bb02..4f7f3f4 100644 --- a/src/commands/timeout.ts +++ b/src/commands/timeout.ts @@ -21,7 +21,7 @@ export default createBotCommand('timeout', async (params, { say, broadcasterId, await say(`${params[0]} doesn't exist!`) break case 'banned': - await say(`${params[0]} is already dead!`) + await say(`${target?.displayName} is already dead!`) break case 'unknown': await say(`NO!`)