Fixed the problem with using the '\!chat' command

This commit is contained in:
ION606
2022-07-03 19:42:37 +03:00
parent af5b206652
commit 0d3935d5c6
2 changed files with 7 additions and 2 deletions
+5 -2
View File
@@ -57,7 +57,7 @@ async function convoManager(clientinp, bot, message) {
dbo.updateOne(doc, {$set: {convo: convo}});
response = response.replaceAll('AI: ', '').replaceAll('AI:\n', '');
console.log(response);
message.reply(response);
});
}
@@ -66,5 +66,8 @@ async function convoManager(clientinp, bot, message) {
module.exports = {
name: 'chat',
description: 'chat',
convoManager
convoManager,
execute(message, args, Discord, Client, bot) {
message.reply("Please DM Selmer bot to use this command!");
}
}
+2
View File
@@ -17,6 +17,8 @@ function handle_dm(message, bot) {
//Only available to Selmer Bot devs, testers and "authorized" users
if (docs[0] != undefined || member.roles.cache.has('944048889038774302') || member.roles.cache.has('946610800418762792')) {
convoManager(client, bot, message);
} else {
message.reply("You have to be a premium subscriber to use this feature!\n_support coming soon_");
}
});
});