mirror of
https://gitlab.com/qwerinope/qweribot.git
synced 2026-02-04 14:06:59 +01:00
part 1 of full item/inventory rework
This commit is contained in:
18
src/items/index.ts
Normal file
18
src/items/index.ts
Normal 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
|
||||
Reference in New Issue
Block a user