node.js 17.0.0 or newer is required.
npm install @akarui/aoi.parser
yarn add @akarui/aoi.parser
const { Util } = require("aoi.js");
const { setup } = require("@akarui/aoi.parser");
setup(Util);
// example on sending a embed with 1 button
$sendMessage[
{newEmbed:
{title:Hello World}
{description:This is an example}
{color:Random}
{footer:This is a footer}
}
{actionRow:
{button:
Label:
1:
customid:
no:
💀
}
}
]