1
0
Fork 0
mirror of https://github.com/1disk/edp445.git synced 2024-08-14 22:47:02 +00:00
Removed the sexbot-chat and sexbot-ai feature from the help panel.

Made it so people don't have to mention sexbot to talk on dms.

Cat commands still aren't working.
This commit is contained in:
Jimi 2022-11-26 22:01:48 +01:00
parent b4c8439231
commit 85f7200e49
2 changed files with 4 additions and 22 deletions

View file

@ -9,7 +9,7 @@ module.exports = async (message, author, guild, client) => {
.setDescription("sexbot is a dumb chatbot that acts like an average discord user.") .setDescription("sexbot is a dumb chatbot that acts like an average discord user.")
.addField("» How to use?", 'To talk with me, you just need to mention me in a message.') .addField("» How to use?", 'To talk with me, you just need to mention me in a message.')
.addField("» \"Sexbot is too dumb\" - :nerd:", 'Want a more "intelligent" version of sexbot? Mention me and add `chatai` at the beginning of your message.') .addField("» \"Sexbot is too dumb\" - :nerd:", 'Want a more "intelligent" version of sexbot? Mention me and add `chatai` at the beginning of your message.')
.addField('» "I don\'t want to mention all the time\" - :nerd:', "You can talk with me on DM's, or create a channel that contains 'sexbot-chat'.") .addField('» "I don\'t want to mention all the time\" - :nerd:', "You can talk with me on DM's.")
.addField("» \"I know how to make sexbot better\" - :nerd:", "We love to hear that! You can [contribute on Github](https://github.com/thejimi/sexbot) :heart:") .addField("» \"I know how to make sexbot better\" - :nerd:", "We love to hear that! You can [contribute on Github](https://github.com/thejimi/sexbot) :heart:")
const embedcommands = new Discord.MessageEmbed() const embedcommands = new Discord.MessageEmbed()

View file

@ -38,30 +38,12 @@ client.on("message", async (message) => {
return Help(message, message.author, message.guild, client) return Help(message, message.author, message.guild, client)
} }
if (message.mentions.has(client.user)) { //Continue if a message mentioned the bot. if(!message.guild){
return DetectMessageType(message, message.author, message.guild, client) return DetectMessageType(message, message.author, message.guild, client)
} }
if (message.channel.name.includes('sexbot-ai')){ if (message.mentions.has(client.user)) { //Continue if a message mentioned the bot.
return ChatAI(message, message.author, message.guild, client) return DetectMessageType(message, message.author, message.guild, client)
}
if (message.channel.name.includes('sexbot-chat')){
var response = await AI(message.content,message.author.username)
if(message.guild){
message.channel.startTyping();
setTimeout(function(){
message.channel.stopTyping();
return message.lineReply(response)
}, 2000);
} else {
message.channel.startTyping();
setTimeout(function(){
message.channel.stopTyping();
return message.channel.send(response)
}, 2000);
}
} }
}); });