mirror of
				https://github.com/1disk/edp445.git
				synced 2024-08-14 22:47:02 +00:00 
			
		
		
		
	v3
This commit is contained in:
		
							parent
							
								
									7e0bd7a983
								
							
						
					
					
						commit
						82056136bf
					
				
					 26 changed files with 1265 additions and 1867 deletions
				
			
		
							
								
								
									
										79
									
								
								functions/!DetectMessageType.js
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										79
									
								
								functions/!DetectMessageType.js
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,79 @@ | |||
| const Discord = require('discord.js') //Import Discord API
 | ||||
| require('discord-inline-reply'); //Import inline replies for Discord API
 | ||||
| const fetch = require('node-fetch'); //Import the FETCH API
 | ||||
| 
 | ||||
| //Import functions
 | ||||
| const cat = require('./cmd-cat.js') | ||||
| const poll = require('./cmd-poll.js') | ||||
| const gay = require('./cmd-gay.js') | ||||
| const nerdreact = require('./react-nerd.js') | ||||
| const clownreact = require('./react-clown.js') | ||||
| const wreact = require('./react-w.js') | ||||
| const lreact = require('./react-l.js'); | ||||
| const togif = require('./convert-togif.js') | ||||
| const toimage = require('./convert-toimage.js') | ||||
| const vidtogif = require('./convert-vidtogif.js') | ||||
| const AI = require('./AI.js') | ||||
| const ChatAI = require('./cleverbot.js') | ||||
| 
 | ||||
| module.exports = async (message, author, guild, client) => { | ||||
|     if(message.content.includes("cmd cat")){ | ||||
|        return cat(message, author, guild, client) | ||||
|     } | ||||
| 
 | ||||
|     if(message.content.includes("cmd poll")){ | ||||
|         return poll(message, author, guild, client) | ||||
|     } | ||||
| 
 | ||||
|     if(message.content.includes("cmd gay")){ | ||||
|         return gay(message, author, guild, client) | ||||
|     } | ||||
| 
 | ||||
|     if(message.content.includes("convert image to gif")){ | ||||
|         return togif(message, author, guild, client) | ||||
|     } | ||||
| 
 | ||||
|     if(message.content.includes("convert gif to image")){ | ||||
|         return toimage(message, author, guild, client) | ||||
|     } | ||||
| 
 | ||||
|     if(message.content.includes("convert video to gif")){ | ||||
|         return vidtogif(message, author, guild, client) | ||||
|     } | ||||
| 
 | ||||
|     if(message.content.includes("react nerd")){ | ||||
|         return nerdreact(message, author, guild, client) | ||||
|     } | ||||
| 
 | ||||
|     if(message.content.includes("react clown")){ | ||||
|         return clownreact(message, author, guild, client) | ||||
|     } | ||||
| 
 | ||||
|     if(message.content.includes("react w")){ | ||||
|         return wreact(message, author, guild, client) | ||||
|     } | ||||
| 
 | ||||
|     if(message.content.includes("react l")){ | ||||
|         return lreact(message, author, guild, client) | ||||
|     } | ||||
| 
 | ||||
|     if(message.content.startsWith(`<@${client.user.id}> chatai `)){ | ||||
|         return ChatAI(message, author, guild, client) | ||||
|     } | ||||
| 
 | ||||
|     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); | ||||
|     } | ||||
| } | ||||
							
								
								
									
										56
									
								
								functions/AI.JS
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										56
									
								
								functions/AI.JS
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,56 @@ | |||
| module.exports = async (message, author) => { | ||||
|     var msc = message.toLowerCase() | ||||
| 
 | ||||
|     var compliment = require('./detections/compliment.js') | ||||
|     var insult = require('./detections/insult.js') | ||||
|     var neutral = require('./detections/neutral.js') | ||||
|     var questionyon = require('./detections/question-yon.js') | ||||
|     var or = require('./detections/or.js') | ||||
|     var additionalreaction = require('./detections/additional-reaction.js') | ||||
| 
 | ||||
|     var final; | ||||
| 
 | ||||
|     //look for compliments
 | ||||
|     compliment(msc).detections.some(element => { | ||||
|         if (msc.includes(element)) { | ||||
|             final = compliment(msc, author).reply | ||||
|             return; | ||||
|         } | ||||
|     }); | ||||
| 
 | ||||
|     //look for insults
 | ||||
|     insult(msc).detections.some(element => { | ||||
|         if (msc.includes(element)) { | ||||
|             final = insult(msc, element, author).reply | ||||
|             return; | ||||
|         } | ||||
|     }); | ||||
| 
 | ||||
|     //look for a yes or no question
 | ||||
|     questionyon(msc).detections.some(element => { | ||||
|         if (msc.includes(element)) { | ||||
|             final = questionyon(msc, author).reply | ||||
|             return; | ||||
|         } | ||||
|     }); | ||||
| 
 | ||||
|     or(msc).detections.some(element => { | ||||
|         if (msc.includes(element)) { | ||||
|             final = or(msc, author).reply | ||||
|             return; | ||||
|         } | ||||
|     }); | ||||
| 
 | ||||
|     additionalreaction(msc).detections.some(element => { | ||||
|         if (msc.includes(element)) { | ||||
|             final = additionalreaction(msc, author).reply | ||||
|             return; | ||||
|         } | ||||
|     }); | ||||
| 
 | ||||
|     if(!final){ | ||||
|         final = neutral(msc, author).reply | ||||
|     } | ||||
| 
 | ||||
|     return final; | ||||
| } | ||||
							
								
								
									
										22
									
								
								functions/Help.js
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								functions/Help.js
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,22 @@ | |||
| const Discord = require('discord.js') //Import Discord API
 | ||||
| require('discord-inline-reply'); //Import inline replies for Discord API
 | ||||
| const fetch = require('node-fetch'); //Import the FETCH API
 | ||||
| 
 | ||||
| module.exports = async (message, author, guild, client) => { | ||||
|     const embedhelp = new Discord.MessageEmbed() | ||||
|     .setColor("2f3136") | ||||
|     .setAuthor("sexbot help panel", client.user.displayAvatarURL()) | ||||
|     .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("» \"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 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() | ||||
|     .setColor("YELLOW") | ||||
|     .setAuthor("commands", client.user.displayAvatarURL()) | ||||
|     .setDescription("sexbot also has some useful commands!\n \n```@sexbot cmd cat - Get a random cat image\n@sexbot cmd gay - Become gay\n@sexbot poll <message> - Create a poll```\n```@sexbot convert image to gif <url>\n@sexbot convert gif to image <url>\n@sexbot convert video to gif```\n```@sexbot react nerd <messagelink>\n@sexbot react clown <messagelink>\n@sexbot react l <messagelink>\n@sexbot react w <messagelink>```") | ||||
| 
 | ||||
|     message.lineReplyNoMention(embedhelp) | ||||
|     message.channel.send(embedcommands) | ||||
| } | ||||
							
								
								
									
										21
									
								
								functions/cleverbot.JS
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								functions/cleverbot.JS
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,21 @@ | |||
| const Discord = require('discord.js') //Import Discord API
 | ||||
| require('discord-inline-reply'); //Import inline replies for Discord API
 | ||||
| const fetch = require('node-fetch'); //Import the FETCH API
 | ||||
| 
 | ||||
| module.exports = async (message, author, guild, client) => { | ||||
|    const cleverbot = require('cleverbot-free') //Install the cleverbot api
 | ||||
| 
 | ||||
|    var text = message.content.replace(`<@${client.user.id}> botai `, '') | ||||
|    let conversation = [] //History of the conversation
 | ||||
| 
 | ||||
|    cleverbot(text, conversation).then(res => { | ||||
|         conversation.push(text) | ||||
|         conversation.push(res) | ||||
| 
 | ||||
|         message.channel.startTyping(); | ||||
|         setTimeout(function(){ | ||||
|             message.channel.stopTyping(); | ||||
|             return message.lineReply(res) | ||||
|         }, 2000); | ||||
|    }) | ||||
| } | ||||
							
								
								
									
										25
									
								
								functions/cmd-cat.js
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								functions/cmd-cat.js
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,25 @@ | |||
| const Discord = require('discord.js') //Import Discord API
 | ||||
| require('discord-inline-reply'); //Import inline replies for Discord API
 | ||||
| const fetch = require('node-fetch'); //Import the FETCH API
 | ||||
| 
 | ||||
| module.exports = async (message, author, guild, client) => { | ||||
|     fetch('https://cataas.com/cat?json=true') | ||||
|     .then((response) => response.json()) | ||||
|     .then((data) => { | ||||
|         const embedload = new Discord.MessageEmbed() | ||||
|         .setColor("GREY") | ||||
|         .setAuthor("cmd cat", client.user.displayAvatarURL()) | ||||
|         .setDescription("<a:loading:1046014857939537950>  *Loading...*") | ||||
| 
 | ||||
|         const embedresult = new Discord.MessageEmbed() | ||||
|         .setColor("2f3136") | ||||
|         .setAuthor("cmd cat", client.user.displayAvatarURL()) | ||||
|         .setImage(`https://cataas.com${data.url}`) | ||||
| 
 | ||||
|         message.lineReply(embedload).then(m => { | ||||
|             setTimeout(function(){ | ||||
|                 m.edit(':3', embedresult) | ||||
|             }, 1000); | ||||
|         }) | ||||
|     }); | ||||
| } | ||||
							
								
								
									
										18
									
								
								functions/cmd-gay.js
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								functions/cmd-gay.js
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,18 @@ | |||
| const Discord = require('discord.js') //Import Discord API
 | ||||
| require('discord-inline-reply'); //Import inline replies for Discord API
 | ||||
| const fetch = require('node-fetch'); //Import the FETCH API
 | ||||
| 
 | ||||
| module.exports = async (message, author, guild, client) => { | ||||
|     try { | ||||
|         message.react("1046014857939537950") | ||||
|     } catch (err) { | ||||
|         message.lineReply("<a:loading:1046014857939537950> Generating the image... It will take a while.") | ||||
|     } | ||||
| 
 | ||||
|     const canvacord = require("canvacord"); | ||||
|     let user = message.author | ||||
|     let avatar = user.displayAvatarURL(); | ||||
|     let image = await canvacord.Canvas.rainbow(avatar); | ||||
|     let attachment = new Discord.MessageAttachment(image, "sexbot-rainbow.gif"); | ||||
|     return message.lineReply(attachment); | ||||
| } | ||||
							
								
								
									
										19
									
								
								functions/cmd-poll.js
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								functions/cmd-poll.js
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,19 @@ | |||
| const Discord = require('discord.js') //Import Discord API
 | ||||
| require('discord-inline-reply'); //Import inline replies for Discord API
 | ||||
| const fetch = require('node-fetch'); //Import the FETCH API
 | ||||
| 
 | ||||
| module.exports = async (message, author, guild, client) => { | ||||
|     var pollcontent = message.content.replace(`<@${client.user.id}>`, '') | ||||
|     pollcontent = pollcontent.replace("cmd poll", '') | ||||
| 
 | ||||
|     message.channel.send(`**:speech_left: ${pollcontent}**\n👤 ${author}`).then(m => { | ||||
|         try { | ||||
|             m.react("👍🏻") | ||||
|             m.react("👎🏻") | ||||
|         } catch (err) { | ||||
|             return message.channel.send("I can't react to messages 💀") | ||||
|         } | ||||
|     }) | ||||
| 
 | ||||
|     message.delete() | ||||
| } | ||||
							
								
								
									
										24
									
								
								functions/convert-togif.js
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								functions/convert-togif.js
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,24 @@ | |||
| const Discord = require('discord.js') //Import Discord API
 | ||||
| require('discord-inline-reply'); //Import inline replies for Discord API
 | ||||
| const fetch = require('node-fetch'); //Import the FETCH API
 | ||||
| 
 | ||||
| module.exports = async (message, author, guild, client) => { | ||||
|     try { | ||||
|         message.react("1046014857939537950") | ||||
|     } catch (err) { | ||||
|         message.lineReply("<a:loading:1046014857939537950> Generating the image... It will take a while.") | ||||
|     } | ||||
| 
 | ||||
|     const request = require('request'); | ||||
| 
 | ||||
|     let url = message.content.replace(`<@${client.user.id}> `,'') | ||||
|     url = url.replace('convert image to gif ', '') | ||||
|     request({ url, encoding: null }, (err, resp, buffer) => { | ||||
|         var attachment = new Discord.MessageAttachment(buffer, "sexbot-converter.gif"); | ||||
|         return message.lineReply(attachment); | ||||
|     }); | ||||
| 
 | ||||
|     setTimeout(function(){ | ||||
|         message.lineReplyNoMention("Got no response? It means that you haven't provided a valid media url or you posted an attachment instead of a link.") | ||||
|     }, 5000);   | ||||
| } | ||||
							
								
								
									
										24
									
								
								functions/convert-toimage.js
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								functions/convert-toimage.js
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,24 @@ | |||
| const Discord = require('discord.js') //Import Discord API
 | ||||
| require('discord-inline-reply'); //Import inline replies for Discord API
 | ||||
| const fetch = require('node-fetch'); //Import the FETCH API
 | ||||
| 
 | ||||
| module.exports = async (message, author, guild, client) => { | ||||
|     try { | ||||
|         message.react("1046014857939537950") | ||||
|     } catch (err) { | ||||
|         message.lineReply("<a:loading:1046014857939537950> Generating the image... It will take a while.") | ||||
|     } | ||||
| 
 | ||||
|     const request = require('request'); | ||||
| 
 | ||||
|     let url = message.content.replace(`<@${client.user.id}> `,'') | ||||
|     url = url.replace('convert gif to image ', '') | ||||
|     request({ url, encoding: null }, (err, resp, buffer) => { | ||||
|         var attachment = new Discord.MessageAttachment(buffer, "sexbot-converter.png"); | ||||
|         return message.lineReply(attachment); | ||||
|     }); | ||||
| 
 | ||||
|     setTimeout(function(){ | ||||
|         message.lineReplyNoMention("Got no response? It means that you haven't provided a valid media url or you posted an attachment instead of a link.") | ||||
|     }, 5000);   | ||||
| } | ||||
							
								
								
									
										15
									
								
								functions/convert-vidtogif.js
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								functions/convert-vidtogif.js
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,15 @@ | |||
| const Discord = require('discord.js') //Import Discord API
 | ||||
| require('discord-inline-reply'); //Import inline replies for Discord API
 | ||||
| const fetch = require('node-fetch'); //Import the FETCH API
 | ||||
| 
 | ||||
| module.exports = async (message, author, guild, client) => { | ||||
|     let url = message.content.replace(`<@${client.user.id}> `,'') | ||||
|     url = url.replace('convert video to gif ', '') | ||||
| 
 | ||||
|     const embed = new Discord.MessageEmbed() | ||||
|     .setAuthor("Bruh",client.user.displayAvatarURL()) | ||||
|     .setColor("RED") | ||||
|     .setDescription(`This feature is not implemented to sexbot yet.\n \n**But! You can convert your video to gif by entering this [link](https://ezgif.com/video-to-gif?url=${url})**`) | ||||
| 
 | ||||
|     message.lineReply(embed) | ||||
| } | ||||
							
								
								
									
										19
									
								
								functions/detections/additional-reaction.js
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								functions/detections/additional-reaction.js
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,19 @@ | |||
| module.exports = (msc, author) => { | ||||
|     var detections = ['fuck me', '😭', 'bound'] | ||||
|     var reply = 'bruhh i broke again nawhh' | ||||
| 
 | ||||
|     if(msc.includes('fuck me')){ | ||||
|         reply = 'alr bet 🫢' | ||||
|     } else if(msc.includes('😭')){ | ||||
|         reply = 'cry more nerd' | ||||
|     } else if(msc.includes('bound')){ | ||||
|         reply = '2 falling in vloveee' | ||||
|     } | ||||
| 
 | ||||
|     var donejson = { | ||||
|         detections:detections,  | ||||
|         reply:reply | ||||
|     } | ||||
| 
 | ||||
|     return donejson | ||||
| } | ||||
							
								
								
									
										28
									
								
								functions/detections/compliment.js
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								functions/detections/compliment.js
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,28 @@ | |||
| module.exports = (msc, author) => { | ||||
|     var detections = [`😽`,"you are", "you look nice", "your cool", "you're", "youre", "i think you are", "i think your", "i think you're", "i think youre", 'love you', '<3', 'ilysm', 'ily', 'ur hot', ":heart:", "❤️"] | ||||
| 
 | ||||
|     var msc2 = msc.replace(/@everyone/g, 'noping') | ||||
|     msc2 = msc2.replace(/@here/g, 'noping') | ||||
|     msc2 = msc2.replace(detections[0], '') | ||||
|     msc2 = msc2.replace(detections[1], '') | ||||
|     msc2 = msc2.replace(detections[2], '') | ||||
|     msc2 = msc2.replace(detections[3], '') | ||||
|     msc2 = msc2.replace(detections[4], '') | ||||
|     msc2 = msc2.replace(detections[5], '') | ||||
|     msc2 = msc2.replace(detections[6], '') | ||||
|     msc2 = msc2.replace(detections[7], '') | ||||
|     msc2 = msc2.replace(detections[8], '') | ||||
|     msc2 = msc2.replace('<@1043799421009285151>', '') | ||||
|     msc2 = msc2.replace(/ /g, '') | ||||
| 
 | ||||
| 
 | ||||
|     var replies = ['https://cdn.discordapp.com/attachments/1009456381071470724/1040330102979960903/acqzo_video_1651329243913_1.mp4', 'thank you', `i think you're ${msc2} too`, 'thanks!!', 'omg thank youu', '💕💕💕💕', 'tysm', 'you made my day', 'ily too', 'bro thanks', ':kiss:', `im not that ${msc2} 🫢`, `am i really ${msc2}?`, `i dont think im ${msc2}`] | ||||
|     var reply = replies[Math.floor(Math.random() * replies.length)] | ||||
|     var donejson = { | ||||
|         detections:detections,  | ||||
|         replies:replies, | ||||
|         reply:reply | ||||
|     } | ||||
| 
 | ||||
|     return donejson | ||||
| } | ||||
							
								
								
									
										13
									
								
								functions/detections/insult.js
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								functions/detections/insult.js
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,13 @@ | |||
| module.exports = (msc, element, author) => { | ||||
|     var detections = [`https://cdn.discordapp.com/attachments/1043835820945195070/1044303218131357696/unknown.png`,"fuck you", 'bitch', 'retard', 'nigga', "you're stupid", 'faggot', 'fag', 'niga', 'nigger', 'niger', 'fatass', 'fat', 'fuck u', 'i hate you', 'kys', 'die', 'your dumb', 'stupid', 'dumb'] | ||||
|     var ip = (Math.floor(Math.random() * 255) + 1)+"."+(Math.floor(Math.random() * 255))+"."+(Math.floor(Math.random() * 255))+"."+(Math.floor(Math.random() * 255)); | ||||
|     var replies = ['https://media.discordapp.net/attachments/1006667144555151390/1020380940658294854/speechbubble.gif','https://cdn.discordapp.com/attachments/1006667144555151390/1043799912153874512/super_cool.mp4', 'me rn: https://cdn.discordapp.com/attachments/1006667144555151390/1043820263839633441/Sad_pain.mp4',`${author}:\n \nhttps://cdn.discordapp.com/attachments/1009456381071470724/1040313995627868170/trim.E5D79854-BAE1-4A98-84D5-2EF0EF70F3D6.mov`, 'kys', 'nah fuck you man', `nah, its u being a ${element}`, 'https://tenor.com/view/there-is-a-zip-bomb-in-your-mailbox-zip-bomb-pipe-bomb-there-is-a-pipe-bomb-in-your-mailbox-gif-22623061', 'https://cdn.discordapp.com/attachments/1009456381071470724/1040319351154290758/do_you_really_think_that_is_normal.png','https://cdn.discordapp.com/attachments/1009456381071470724/1043217650471411764/MemeFeedBot_23.mp4', 'https://cdn.discordapp.com/attachments/1013546438858383451/1043824932108369930/Gangster_Broccoli_4k_Remastered.mp4', `${ip}`, `hello ${author} :wave: ${ip}`] | ||||
|     var reply = replies[Math.floor(Math.random() * replies.length)] | ||||
|     var donejson = { | ||||
|         detections:detections,  | ||||
|         replies:replies, | ||||
|         reply:reply | ||||
|     } | ||||
| 
 | ||||
|     return donejson | ||||
| } | ||||
							
								
								
									
										12
									
								
								functions/detections/neutral.js
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								functions/detections/neutral.js
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,12 @@ | |||
| module.exports = (msc, author) => { | ||||
|     var detections = [] | ||||
|     var replies = [`https://cdn.discordapp.com/attachments/823953803409096806/1045772249531162664/image.jpg`,`https://tenor.com/view/meevin-melvin-hes-coming-321-run-gif-26186363`,`https://cdn.discordapp.com/attachments/1026216717891944478/1045474828313968791/2EC3FC50-419B-42B3-8CB4-7AE9EF84B634.jpeg`,`let me guess, your gay :yourefat:`,`wsg gang`,`wsg`,`bound 2`,`epoc`,`@everone`,`${author} when ssex eurah3 3333333`,`siyl willy`,`silly willy`, `so silly ${author}`,'fuck you 🫵🫵🫵🫵🫵🫵🫵🫵🫵🫵',`${author}, keep yourself safe, NOW!`,`${author} wtf no`,`${author} Yeah suuuuuuure.`,'i have no idea','ayo?\n🤨 📸','https://cdn.discordapp.com/attachments/1009457119159926785/1043622406759137360/kthoyo7e5lp91.png','https://cdn.discordapp.com/attachments/1009457119159926785/1043624378107166810/property_of_Bohuv_nejsilnejsi_valecnik_84.mp4','https://cdn.discordapp.com/attachments/1009457119159926785/1043795224931078286/310681329_624793822700013_3579882953739917914_n.mp4','crazy','xdd','!!!',':nerd:','sex\'ent','you sound like your underage','im winning','agree','for real?','nah bruhh tahts crazy','https://cdn.discordapp.com/attachments/1006667144555151390/1043717263276126258/trim.1E40D10B-FA8F-4E50-8CC8-A0965AF8B39C.mp4','https://media.discordapp.net/attachments/1006667144555151390/1020380940658294854/speechbubble.gif','https://cdn.discordapp.com/attachments/1006667144555151390/1043819037697773579/trim.6A0A434E-992F-4D3C-B81B-7B3D9655ABFE.mp4','https://cdn.discordapp.com/attachments/1013546438858383451/1043824932108369930/Gangster_Broccoli_4k_Remastered.mp4', 'https://cdn.discordapp.com/attachments/1009456381071470724/1040319351154290758/do_you_really_think_that_is_normal.png', `https://cdn.discordapp.com/attachments/1009456381071470724/1040884521295425627/unknown.png`, 'ok!', 'what??????', 'watth?', 'whar?', 'epic', 'stfu', 'not cool', 'thumbs down compadre', 'unloko', 'https://cdn.discordapp.com/attachments/1006667144555151390/1043585249411608576/togif.gif', 'https://cdn.discordapp.com/emojis/1010925703249793076.gif?v=1&size=48&quality=lossless', 'https://cdn.discordapp.com/attachments/1006667144555151390/1038451477221490708/image0-354.gif', 'https://tenor.com/view/the-j-letter-j-pear-butt-bv0j-gif-22468236', 'https://media.discordapp.net/attachments/1009383133726130216/1038555164036046899/EBABBF86-63BC-419B-BC5B-DC05624CF4AD.gif', 'https://media.discordapp.net/attachments/769200587354013728/997911213382053938/SPOILER_speed-1-1.gif', 'https://cdn.discordapp.com/emojis/1011703842276134982.gif?v=1&size=48&quality=lossless', 'https://media.discordapp.net/attachments/998802851151237151/1005336781643841616/unknown.gif', 'https://media.discordapp.net/attachments/823953803409096806/1011585352953233519/270891BF-F497-4887-B611-CC05D1666AF9.gif', 'https://media.discordapp.net/attachments/935989994735169546/1006608226676129832/306CE84B-E1E8-4443-A0DB-72B90D30BF48.gif', 'https://media.discordapp.net/attachments/940018559894061126/982598764730662983/ezgif.com-gif-maker.gif', 'https://media.discordapp.net/attachments/778438906101628978/895801293728268328/image0.gif', 'https://tenor.com/view/what-a-surprise-horse-gif-22766444', 'all good man', 'NEI', 'Fortnite is an online video game developed by Epic Games and released in 2017. It is available in three distinct game mode versions that otherwise share the same general gameplay and game engine: Fortnite', 'Θα φιλήσω τον Jimi απόψε γιατί είμαστε φίλοι και τον αγαπώ', 'GAH DAMN https://cdn.discordapp.com/attachments/1009383133726130216/1043566010239819927/Screenshot_20221106-160833_1.jpg', 'the procedure.............\n \nhttps://tenor.com/view/cat-femur-breaker-radlcies-gif-24136082', 'how about i fucking kill you? how avbout that ? https://cdn.discordapp.com/attachments/1009456381071470724/1040824569843417108/20221109_140001.jpg'] | ||||
|     var reply = replies[Math.floor(Math.random() * replies.length)] | ||||
|     var donejson = { | ||||
|         detections:detections,  | ||||
|         replies:replies, | ||||
|         reply:reply | ||||
|     } | ||||
| 
 | ||||
|     return donejson | ||||
| } | ||||
							
								
								
									
										16
									
								
								functions/detections/or.js
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								functions/detections/or.js
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,16 @@ | |||
| module.exports = (msc, author) => { | ||||
|     var detections = [" or "] | ||||
| 
 | ||||
|     var msc2 = msc.replace(/<@1014633027319648277>/g, '') | ||||
| 
 | ||||
|     var arr = msc2.split(" or ") | ||||
|     var choose = Math.floor(Math.random() * 2); | ||||
| 
 | ||||
|     var reply = arr[choose] | ||||
|     var donejson = { | ||||
|         detections:detections,  | ||||
|         reply:reply | ||||
|     } | ||||
| 
 | ||||
|     return donejson | ||||
| } | ||||
							
								
								
									
										12
									
								
								functions/detections/question-yon.js
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								functions/detections/question-yon.js
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,12 @@ | |||
| module.exports = (msc, author) => { | ||||
|     var detections = [" do ", ' are ', ' does ', ' is ', ' has ', ' can we ', ' can you ', ' can i ', ' am i ', ' am ', ' im ', "?"] | ||||
|     var replies = [`${msc}`,'no way','nahhh',`yeah ${author}`, 'yes', 'nah','no', 'idk', 'maybe?', 'definitely', 'https://cdn.discordapp.com/attachments/1009383133726130216/1043821892102012938/trim.9B58117E-87CA-4B8F-A6AE-DEE69B944AC0.mov'] | ||||
|     var reply = replies[Math.floor(Math.random() * replies.length)] | ||||
|     var donejson = { | ||||
|         detections:detections,  | ||||
|         replies:replies, | ||||
|         reply:reply | ||||
|     } | ||||
| 
 | ||||
|     return donejson | ||||
| } | ||||
							
								
								
									
										56
									
								
								functions/react-clown.js
									
										
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										56
									
								
								functions/react-clown.js
									
										
									
									
										vendored
									
									
										Normal file
									
								
							|  | @ -0,0 +1,56 @@ | |||
| const Discord = require('discord.js') //Import Discord API
 | ||||
| require('discord-inline-reply'); //Import inline replies for Discord API
 | ||||
| const fetch = require('node-fetch'); //Import the FETCH API
 | ||||
| 
 | ||||
| module.exports = async (message, author, guild, client) => { | ||||
|    var messagelink = message.content.replace(`<@${client.user.id}> `, '') | ||||
|    messagelink = messagelink.replace('react clown ','') | ||||
| 
 | ||||
|    var ids = messagelink.replace('https://discord.com/channels/','')  | ||||
|    ids = ids.replace('https://ptb.discord.com/channels/','') | ||||
|    ids = ids.replace('https://canary.discord.com/channels/','') | ||||
| 
 | ||||
|    var channelandmessage = ids.replace(`${guild.id}/`,'') | ||||
|    var splittedids = channelandmessage.split('/') | ||||
|    var channelid = splittedids[0] | ||||
|    var messageid = splittedids[1] | ||||
| 
 | ||||
|    var channel = client.channels.cache.get(channelid) | ||||
| 
 | ||||
|    const embedload = new Discord.MessageEmbed() | ||||
|    .setColor("GREY") | ||||
|    .setAuthor("react clown", client.user.displayAvatarURL()) | ||||
|    .setDescription("<a:loading:1046014857939537950>  *Reacting...*") | ||||
| 
 | ||||
|    const embedresult = new Discord.MessageEmbed() | ||||
|    .setColor("2f3136") | ||||
|    .setAuthor("react clown", client.user.displayAvatarURL()) | ||||
| 
 | ||||
|    try { | ||||
|     channel.messages.fetch(messageid) | ||||
|     .then(message2 => { | ||||
|         message.lineReply(embedload).then(m => { | ||||
|             message2.react("🤡") | ||||
|             message2.react("1028379677183713350") | ||||
|             message2.react("1041071478524883004") | ||||
|             message2.react("1041071480764645376") | ||||
|             message2.react("1041071482756923392") | ||||
|             message2.react("1041097049531236412") | ||||
|             message2.react("1011706000199389246") | ||||
|             message2.react("1042098780230652035").then(c => { | ||||
|                 embedresult.setDescription(`:clown: Clown reacted ${message2.author.username}`) | ||||
|                 m.edit(embedresult) | ||||
|                 m.channel.send(`${message2.author}`).then(m2 => { | ||||
|                     m2.delete() | ||||
|                 }) | ||||
|             }) | ||||
|         }) | ||||
|     }) | ||||
|     .catch(err => { | ||||
|       return message.lineReply(`Can't find this message, are you sure you provided a valid message link?\n \nExample usage: \`@${client.user.username} react clown ${message.url}\``) | ||||
|     }); | ||||
|    } catch (err) { | ||||
|       return message.lineReply(`Can't find this message, are you sure you provided a valid message link?\n \nExample usage: \`@${client.user.username} react clown ${message.url}\``) | ||||
|    } | ||||
| 
 | ||||
| } | ||||
							
								
								
									
										49
									
								
								functions/react-l.js
									
										
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										49
									
								
								functions/react-l.js
									
										
									
									
										vendored
									
									
										Normal file
									
								
							|  | @ -0,0 +1,49 @@ | |||
| const Discord = require('discord.js') //Import Discord API
 | ||||
| require('discord-inline-reply'); //Import inline replies for Discord API
 | ||||
| const fetch = require('node-fetch'); //Import the FETCH API
 | ||||
| 
 | ||||
| module.exports = async (message, author, guild, client) => { | ||||
|    var messagelink = message.content.replace(`<@${client.user.id}> `, '') | ||||
|    messagelink = messagelink.replace('react l ','') | ||||
| 
 | ||||
|    var ids = messagelink.replace('https://discord.com/channels/','')  | ||||
|    ids = ids.replace('https://ptb.discord.com/channels/','') | ||||
|    ids = ids.replace('https://canary.discord.com/channels/','') | ||||
| 
 | ||||
|    var channelandmessage = ids.replace(`${guild.id}/`,'') | ||||
|    var splittedids = channelandmessage.split('/') | ||||
|    var channelid = splittedids[0] | ||||
|    var messageid = splittedids[1] | ||||
| 
 | ||||
|    var channel = client.channels.cache.get(channelid) | ||||
| 
 | ||||
|    const embedload = new Discord.MessageEmbed() | ||||
|    .setColor("GREY") | ||||
|    .setAuthor("react l", client.user.displayAvatarURL()) | ||||
|    .setDescription("<a:loading:1046014857939537950>  *Reacting...*") | ||||
| 
 | ||||
|    const embedresult = new Discord.MessageEmbed() | ||||
|    .setColor("2f3136") | ||||
|    .setAuthor("react l", client.user.displayAvatarURL()) | ||||
| 
 | ||||
|    try { | ||||
|     channel.messages.fetch(messageid) | ||||
|     .then(message2 => { | ||||
|         message.lineReply(embedload).then(m => { | ||||
|             message2.react("1028379769470992424").then(c => { | ||||
|                 embedresult.setDescription(`<:RatioL:1028379769470992424> reacted ${message2.author.username}`) | ||||
|                 m.edit(embedresult) | ||||
|                 m.channel.send(`${message2.author}`).then(m2 => { | ||||
|                     m2.delete() | ||||
|                 }) | ||||
|             }) | ||||
|         }) | ||||
|     }) | ||||
|     .catch(err => { | ||||
|       return message.lineReply(`Can't find this message, are you sure you provided a valid message link?\n \nExample usage: \`@${client.user.username} react l ${message.url}\``) | ||||
|     }); | ||||
|    } catch (err) { | ||||
|       return message.lineReply(`Can't find this message, are you sure you provided a valid message link?\n \nExample usage: \`@${client.user.username} react l ${message.url}\``) | ||||
|    } | ||||
| 
 | ||||
| } | ||||
							
								
								
									
										57
									
								
								functions/react-nerd.js
									
										
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										57
									
								
								functions/react-nerd.js
									
										
									
									
										vendored
									
									
										Normal file
									
								
							|  | @ -0,0 +1,57 @@ | |||
| const Discord = require('discord.js') //Import Discord API
 | ||||
| require('discord-inline-reply'); //Import inline replies for Discord API
 | ||||
| const fetch = require('node-fetch'); //Import the FETCH API
 | ||||
| 
 | ||||
| module.exports = async (message, author, guild, client) => { | ||||
|    var messagelink = message.content.replace(`<@${client.user.id}> `, '') | ||||
|    messagelink = messagelink.replace('react nerd ','') | ||||
| 
 | ||||
|    var ids = messagelink.replace('https://discord.com/channels/','')  | ||||
|    ids = ids.replace('https://ptb.discord.com/channels/','') | ||||
|    ids = ids.replace('https://canary.discord.com/channels/','') | ||||
| 
 | ||||
|    var channelandmessage = ids.replace(`${guild.id}/`,'') | ||||
|    var splittedids = channelandmessage.split('/') | ||||
|    var channelid = splittedids[0] | ||||
|    var messageid = splittedids[1] | ||||
| 
 | ||||
|    var channel = client.channels.cache.get(channelid) | ||||
| 
 | ||||
|    const embedload = new Discord.MessageEmbed() | ||||
|    .setColor("GREY") | ||||
|    .setAuthor("react nerd", client.user.displayAvatarURL()) | ||||
|    .setDescription("<a:loading:1046014857939537950>  *Reacting...*") | ||||
| 
 | ||||
|    const embedresult = new Discord.MessageEmbed() | ||||
|    .setColor("2f3136") | ||||
|    .setAuthor("react nerd", client.user.displayAvatarURL()) | ||||
| 
 | ||||
|    try { | ||||
|     channel.messages.fetch(messageid) | ||||
|     .then(message2 => { | ||||
|         message.lineReply(embedload).then(m => { | ||||
|             message2.react("🤓") | ||||
|             message2.react("1041071459705049179") | ||||
|             message2.react("1041071446866280490") | ||||
|             message2.react("1041071442105745428") | ||||
|             message2.react("1028379726257074246") | ||||
|             message2.react("1041071439719182406") | ||||
|             message2.react("1041071468936691732") | ||||
|             message2.react("1041071466608857138") | ||||
|             message2.react("1041085564163727460").then(c => { | ||||
|                 embedresult.setDescription(`:nerd: Nerd reacted ${message2.author.username}`) | ||||
|                 m.edit(embedresult) | ||||
|                 m.channel.send(`${message2.author}`).then(m2 => { | ||||
|                     m2.delete() | ||||
|                 }) | ||||
|             }) | ||||
|         }) | ||||
|     }) | ||||
|     .catch(err => { | ||||
|       return message.lineReply(`Can't find this message, are you sure you provided a valid message link?\n \nExample usage: \`@${client.user.username} react nerd ${message.url}\``) | ||||
|     }); | ||||
|    } catch (err) { | ||||
|       return message.lineReply(`Can't find this message, are you sure you provided a valid message link?\n \nExample usage: \`@${client.user.username} react nerd ${message.url}\``) | ||||
|    } | ||||
| 
 | ||||
| } | ||||
							
								
								
									
										49
									
								
								functions/react-w.js
									
										
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										49
									
								
								functions/react-w.js
									
										
									
									
										vendored
									
									
										Normal file
									
								
							|  | @ -0,0 +1,49 @@ | |||
| const Discord = require('discord.js') //Import Discord API
 | ||||
| require('discord-inline-reply'); //Import inline replies for Discord API
 | ||||
| const fetch = require('node-fetch'); //Import the FETCH API
 | ||||
| 
 | ||||
| module.exports = async (message, author, guild, client) => { | ||||
|    var messagelink = message.content.replace(`<@${client.user.id}> `, '') | ||||
|    messagelink = messagelink.replace('react w ','') | ||||
| 
 | ||||
|    var ids = messagelink.replace('https://discord.com/channels/','')  | ||||
|    ids = ids.replace('https://ptb.discord.com/channels/','') | ||||
|    ids = ids.replace('https://canary.discord.com/channels/','') | ||||
| 
 | ||||
|    var channelandmessage = ids.replace(`${guild.id}/`,'') | ||||
|    var splittedids = channelandmessage.split('/') | ||||
|    var channelid = splittedids[0] | ||||
|    var messageid = splittedids[1] | ||||
| 
 | ||||
|    var channel = client.channels.cache.get(channelid) | ||||
| 
 | ||||
|    const embedload = new Discord.MessageEmbed() | ||||
|    .setColor("GREY") | ||||
|    .setAuthor("react w", client.user.displayAvatarURL()) | ||||
|    .setDescription("<a:loading:1046014857939537950>  *Reacting...*") | ||||
| 
 | ||||
|    const embedresult = new Discord.MessageEmbed() | ||||
|    .setColor("2f3136") | ||||
|    .setAuthor("react w", client.user.displayAvatarURL()) | ||||
| 
 | ||||
|    try { | ||||
|     channel.messages.fetch(messageid) | ||||
|     .then(message2 => { | ||||
|         message.lineReply(embedload).then(m => { | ||||
|             message2.react("1028379774025998498").then(c => { | ||||
|                 embedresult.setDescription(`<:RatioW:1028379774025998498> reacted ${message2.author.username}`) | ||||
|                 m.edit(embedresult) | ||||
|                 m.channel.send(`${message2.author}`).then(m2 => { | ||||
|                     m2.delete() | ||||
|                 }) | ||||
|             }) | ||||
|         }) | ||||
|     }) | ||||
|     .catch(err => { | ||||
|       return message.lineReply(`Can't find this message, are you sure you provided a valid message link?\n \nExample usage: \`@${client.user.username} react w ${message.url}\``) | ||||
|     }); | ||||
|    } catch (err) { | ||||
|       return message.lineReply(`Can't find this message, are you sure you provided a valid message link?\n \nExample usage: \`@${client.user.username} react w ${message.url}\``) | ||||
|    } | ||||
| 
 | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue