const { Hercai } = require('hercai');
const herc = new Hercai();
module.exports.config = {
name: "ai",
version: "30.0.0",
hasPermssion: 0,
credits: "Choru Tiktokers",
description: "Nonprefix",
usages: "ai [text]",
commandCategory: "...",
cooldowns: 5
};
module.exports.run = async ({ api, event, args }) => {
const { body, threadID, messageID } = event;
herc.question({ model: "v3-beta", content: args.join(" ") })
.then(response => {
api.sendMessage(response.reply, threadID, messageID);
})
.catch(error => {
console.error(`An error occurred: ${error.message}`);
});
};