mirror of
https://github.com/ION606/selmerBot.git
synced 2026-05-14 21:26:54 +00:00
Fixed the problem with using the '\!chat' command
This commit is contained in:
@@ -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!");
|
||||
}
|
||||
}
|
||||
@@ -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_");
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user