part 1 of full item/inventory rework

This commit is contained in:
2025-04-11 12:48:20 +02:00
parent 7b6f8bc07f
commit e3fc3465e9
12 changed files with 281 additions and 259 deletions

18
src/items/index.ts Normal file
View File

@@ -0,0 +1,18 @@
import { HelixUser } from "@twurple/api"
import { blaster, silverbullet } from "./blasters"
import { grenade, tnt } from "./explosives"
import { lootbox } from "./lootbox"
import { clipboard } from "./clipboard"
interface item {
name: string,
prettyname: string,
aliases: string[],
plural: string,
description: string,
execute: (user: HelixUser, say: (args0: string) => Promise<void>, broadcasterId?: string, targetname?: string) => Promise<void>
}
const data = [blaster, silverbullet, grenade, tnt, lootbox, clipboard] as item[]
export const ITEMS = data.map(item => item.name)
export default data