1.0.6 • Published 3 years ago

superchatbot v1.0.6

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

📂 NPM

Example

Javascript

const superchatbot = require('superchatbot');

const client = new superchatbot.Client();

client.chat({message:"Hello, How are you?", name:"SuperChatbot", owner:"SexyOwnerlol", user: Cooluniqueuserid-in-number, language:"a__h_leLanguage"}).then(reply => {
console.log(reply);
});

Discord.js

const { Client } = require("discord.js");
const {
  AbortController
} = require("abortcontroller-polyfill/dist/cjs-ponyfill");
const client = new Client({ intents: 513 });
const superchatbot = require("superchatbot");
const x = new superchatbot.Client();
client.on("messageCreate", async message => {
  // client detects a message 
  if(message.author.bot) return;
  // if the author of the message is a bot ignore the case
  message.content = message.content.replace(/@(everyone)/gi, "everyone").replace(/@(here)/gi, "here")
  if(message.content.includes(`@`)) {
    return message.reply({ content: `**:x: Please Don't Mention anyone while talking to me I wil cry 😭**`, ephemeral: true }); 
  }
  if(!message.content) return message.reply({ content: ":x: I could Only Reply to Text Messages", ephemeral: true });
  x.chat({
    message: message.content,
    name: "Type ur Name Here",
    user: message.author.id,
    language: "en"
  }).then(reply => {
    message.channel.sendTyping();
    message.reply(`${reply}`);
  });
});
client.login("Your Token")

Supported Languages

Language NameLanguage Code
Automaticauto
Afrikaansaf
Irishga
Albaniansq
Italianit
Arabicar
Japaneseja
Azerbaijaniaz
Kannadakn
Basqueeu
Koreanko
Bengalibn
Latinla
Belarusianbe
Latvianlv
Bulgarianbg
Lithuanianlt
Catalanca
Macedonianmk
Chinese Simplifiedzh-CN
Malayms
Chinese Traditionalzh-TW
Maltesemt
Croatianhr
Norwegianno
Czechcs
Persianfa
Danishda
Polishpl
Dutchnl
Portuguesept
Englishen
Romanianro
Esperantoeo
Russianru
Estonianet
Serbiansr
Filipinotl
Slovaksk
Finnishfi
Sloveniansl
Frenchfr
Spanishes
Galiciangl
Swahilisw
Georgianka
Swedishsv
Germande
Tamilta
Greekel
Telugute
Gujaratigu
Thaith
Haitian Creoleht
Turkishtr
Hebrewiw
Ukrainianuk
Hindihi
Urduur
Hungarianhu
Vietnamesevi
Icelandicis
Welshcy
Indonesianid
Yiddishyi
1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.0

3 years ago