1
0
Fork 0
mirror of https://github.com/1disk/edp445.git synced 2024-08-14 22:47:02 +00:00

Initial commit

This commit is contained in:
Jimi 2022-11-25 21:37:31 +01:00
commit 39fa8ea5ad
14 changed files with 3293 additions and 0 deletions

2
.gitattributes vendored Normal file
View file

@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto

21
LICENSE Normal file
View file

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2022 Jimi
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

2
README.md Normal file
View file

@ -0,0 +1,2 @@
# sexbot

View 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
detections/compliment.js Normal file
View 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
detections/insult.js Normal file
View 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
detections/neutral.js Normal file
View file

@ -0,0 +1,12 @@
module.exports = (msc, author) => {
var detections = []
var replies = [`<@545586677117353985> https://cdn.discordapp.com/attachments/823953803409096806/1045772249531162664/image.jpg`,`<@545586677117353985> 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
detections/or.js Normal file
View 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
}

View file

@ -0,0 +1,12 @@
module.exports = (msc, author) => {
var detections = ["?"]
var replies = [`uncle google here: https://www.google.com/search?q=${msc.replace(/@/g, "noping")}`, `grandpa yahoo here: https://search.yahoo.com/search?p=${msc.replace(/@/g, "noping")}`, `mr wikipedia here: https://en.wikipedia.org/wiki/${msc.replace(/@/g, "noping")}`]
var reply = replies[Math.floor(Math.random() * replies.length)]
var donejson = {
detections:detections,
replies:replies,
reply:reply
}
return donejson
}

View 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
index.js Normal file
View file

@ -0,0 +1,56 @@
const Discord = require('discord.js')
require('discord-inline-reply');
const { Client, Intents, Collection, MessageEmbed, MessageActionRow, MessageButton, DiscordAPIError } = require('discord.js');
const client = new Client()
client.on("ready", () => {
var channel = client.channels.cache.get('823953803409096806')
channel.send('just restarted my braun 🧠🧠]')
console.log(`The bot is online!`)
client.user.setActivity(`v2! | discord.gg/memee`, {
type: "WATCHING"
});
});
var makeReply = require('./makeReply.js')
client.on("message", async message => {
if(message.author.id === client.user.id){
return;
}
if(!message.guild){
var reply = await makeReply(message.content,message.author.username)
message.channel.startTyping();
setTimeout(function(){
message.channel.stopTyping();
message.channel.send({content:reply})
}, 2000);
return;
}
if (message.content.includes("@everyone")) {
return
}
if (message.content.includes("@here")) {
return
}
if (message.content === "!shelp") {
return message.lineReplyNoMention(`> **sexbot help command**\n \n- Commands:\n\`!sservers, !scontribute, !shelp\`\n \n- How to use sexbot?\n*Mention me in a message or dm me to talk.*`)
}
if (message.content === "!sservers") {
return message.lineReplyNoMention(`im in ${client.guilds.cache.size} guilds`)
}
if (message.content === "!scontribute") {
return message.lineReplyNoMention(`Join discord.gg/memee and upload your sexbot reply suggestion.`)
}
if (message.mentions.has(client.user)) {
var reply = await makeReply(message.content,message.author.username)
message.channel.startTyping();
setTimeout(function(){
message.channel.stopTyping();
message.lineReply({content:reply})
}, 2000);
}});
client.login("MTAxNDYzMzAyNzMxOTY0ODI3Nw.GAcz7v.BhN7V8gBgC5_AUys1R6kC1gkK_M2se6EioXZB8")//MTA0Mzc5OTQyMTAwOTI4NTE1MQ.GSkNmf.3MpdyInVaUOXLJebyVubOXjJ-KGsL15RNe1-n4

57
makeReply.js Normal file
View file

@ -0,0 +1,57 @@
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 questioncustom = require('./detections/question-custom.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;
}

3034
package-lock.json generated Normal file

File diff suppressed because it is too large Load diff

9
package.json Normal file
View file

@ -0,0 +1,9 @@
{
"dependencies": {
"discord-inline-reply": "^1.0.3",
"discord.js": "^12.5.3",
"google-it": "^1.6.4",
"wikipedia": "^1.1.9",
"wtf_wikipedia": "^10.0.3"
}
}