mirror of
https://gitlab.com/qwerinope/qweribot.git
synced 2026-02-04 10:56:57 +01:00
10 lines
446 B
TypeScript
10 lines
446 B
TypeScript
import { createBotCommand } from "@twurple/easy-bot";
|
|
import items from "../items"
|
|
|
|
export default createBotCommand('iteminfo', async (params, { say }) => {
|
|
if (params[0] === undefined) { await say('No item specified!'); return }
|
|
const selection = items.find(item => item.aliases.includes(params[0].toLowerCase()))
|
|
if (!selection) { await say('Item not found'); return }
|
|
await say(selection.description)
|
|
}, { aliases: ['item'] })
|