1.1.11 • Published 4 years ago
shevdev v1.1.11
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 - 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.
Community ❤️
Feel free and land with our community of programmers: https://discord.com/invite/aKeMQtzabu
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.
const chatBot = await shevdev.chatbot(message.guild.id, message)
message.channel.send(chatBot)
}
}
QuotesGenerate
Example for generate a random quotes:
// 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)
}
}
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()
1.1.11
4 years ago
1.1.10
4 years ago
1.1.9
4 years ago
1.1.8
4 years ago
1.1.7
4 years ago
1.1.6
4 years ago
1.1.5
4 years ago
1.1.4
4 years ago
1.1.3
4 years ago
1.1.2
4 years ago
1.1.1
4 years ago
1.1.0
4 years ago
1.0.9
4 years ago
1.0.8
4 years ago
1.0.7
4 years ago
1.0.6
4 years ago
1.0.5
4 years ago
1.0.4
4 years ago
1.0.3
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago