Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
669 B
24
Indexable
Never
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}`);
        });
};