Published by
Yapay Zekaya (Herc.ai) Soru
Yapay Zekaya Soru Sormanıza Yarar. NPM Paketi https//www.npmjs.com/package/hercai
- License Apache 2.0
- Publication Date 14/08/2023 - 05:24
- Version Discord.js V14
- Command Type Prefix Commands
- Views 120
- Downloads 5
- Files 2
- Images 0
Click to see the description in this file!
/*
Gereken Paket "hercai" , Paketi İndirmek İçin ' npm i hercai ' Yazın - Komudu Kendi Handlerınıza Göre Düzenlersiniz.
Paket v12 / v13 / v14 vb. Tüm NodeJS İle Uyumlu.
*/
/* Prefix'li Komutlar İçin; */
const { Hercai } = require('hercai');
const herc = new Hercai();
module.exports = {
name: "soru",
usage: "soru [Sorunuz]",
aliases: ["soru-sor", "yapayzeka","yapay-zeka"],
execute: async (client, message, args) => {
/* Üsteki Kısımı Kendi Handlerınıza Göre Düzenlersiniz. */
var soru = args.slice(0).join(" ")
herc.question({model:"v3",content:`${soru}`}).then(response => {
message.reply({content:`${response.reply}`})
});
}
}
Click to see the description in this file!
/* Slash Komutlar İçin; */
const { Hercai } = require('hercai');
const herc = new Hercai();
module.exports = {
name: "yapay-zeka",
description: "Yapay Zekaya Soru Sorarsınız.",
options: [
{
name: "soru",
description: "Sorucağınız Soru.",
type: 3,
required: true,
},
],
execute: async (client, interaction) => {
await interaction.deferReply();
/* Üsteki Kısımı Kendi Handlerınıza Göre Düzenlersiniz. */
var soru = interaction.options.getString('soru');
herc.question({model:"v3",content:`${soru}`}).then(response => {
interaction.editReply({content:`${response.reply}`}).catch(err=>{ })
});
}
}