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.
- Community - get closer to this project.
- Installation - loading module shevdev.
- Setup - connection to MongoDB
- ChatBot - saving phrases and generating their own.
- QuotesGenerate - will display quotes from popular people.
- AllMethods - list of all methods at the moment.
Feel free and land with our community of programmers: https://discord.com/invite/aKeMQtzabu
First of all, install Node.JS
npm install shevdev
// import a shevdev module
const shevdev = require('shevdev')
// connection to MongoDB
new shevdev({
mongoDB: 'your connection'
})
// 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)
})
// 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.
const chatBot = await shevdev.chatbot(message.guild.id, message)
message.channel.send(chatBot)
}
}
// import a shevdev module
// Now only supports Russian quotes.
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
const quot = await shevdev.quotes()
message.reply(quot)
}
}
// Update AI your bot.
shevdev.updateAI(guildID, message)
// Makes a kind and smart sentences.
shevdev.chatbot(guildID, message)
// Generate a random popular quotes.
shevdev.quotes()