1.0.0 • Published 3 years ago

tetet v1.0.0

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

shevdev 🚀

shevdev is a module for Discord.JS with wide functionality to enrich your bot with unique systems. Such as artificial intelligence, distribution of quotes and much more thanks to our community.

Table of Contents 💡

Community ❤️

Feel free and land with our community of programmers: Join Now

Installation

First of all, install Node.JS

npm install shevdev

Setup

// import a shevdev module
const shevdev = require('shevdev')
// connection to MongoDB
new shevdev({
  mongoDB: 'your connection'
})

ChatBot

Example for update AI chatbot:

Be sure to start with this so that you have a database created.

// import a shevdev module
const shevdev = require("shevdev")
// Using message event
client.on('message', (message) => {
// Checking that the bot's sentences 
// are not entered into the database
    if(message.author.bot) return
// Using the updateAI method, 
// we enter the necessary proposals into the database.
    shevdev.updateAI(message.guild.id, message.content)
})

Communicating with guild members:

// import a shevdev module
const shevdev = require('shevdev')
// I am using WOKCommands framework.
module.exports = {
    name: 'chatbot',
    callback: async({message}) => {
// Using the chatbot method 
// we generate text from the database 
// for the appropriate context.
    shevdev.chatbot(message.guild.id, message)
    }
}

QuotesGenerate (ru) 🌊

Example for generate a random quotes:

// import a shevdev module
const shevdev = require('shevdev')
// I am using WOKCommands framework
module.exports = {
    name: 'quotes',
    callback: async({message}) => {
// Now we can get a quote from 
// a famous person and not only
    shevdev.quotes(message)
    }
}

AllMethods 🔥

.updateAI

// Update AI your bot.
shevdev.updateAI(guildID, message)

.chatbot

// Makes a kind and smart sentences.
shevdev.chatbot(guildID, message)

.quotes

// Generate a random popular quotes.
shevdev.quotes(message)