Added the chat AI feature (limited) and added Stripe payment integration

This commit is contained in:
ION606
2022-07-08 14:21:09 +03:00
parent 0d3935d5c6
commit 1d30414304
9 changed files with 523 additions and 47 deletions
+7
View File
@@ -1,5 +1,6 @@
const { MongoClient, ServerApiVersion, ConnectionClosedEvent } = require('mongodb');
const { exit } = require('process');
const { checkResponses } = require('./wordlist.js');
async function getResponse(convo, bot) {
@@ -45,6 +46,11 @@ async function convoManager(clientinp, bot, message) {
const doc = docs[0];
if (!doc) { return message.reply('You aren\'t currently in a conversation\nUse _!startconvo_ to start one!'); }
//Checking Section
const check = checkResponses(message.content, "I'm sorry, I can't do that");
if (check != null) { return message.reply(check); }
let convo = doc.convo;
convo += `\nHuman: ${message.content}\n`;;
@@ -62,6 +68,7 @@ async function convoManager(clientinp, bot, message) {
});
}
}
//"Hello! discord_user:"
module.exports = {
name: 'chat',