From 22ad8f13b0de1c0aa1ba45ea19899847b0a85a6c Mon Sep 17 00:00:00 2001 From: WubzyGD Date: Sun, 14 Feb 2021 04:47:18 -0700 Subject: [PATCH] error 404: sleep not found --- responses/decide.js | 10 ---------- responses/wubzy.js | 28 ++++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 10 deletions(-) create mode 100644 responses/wubzy.js diff --git a/responses/decide.js b/responses/decide.js index e484b6b..8dbf4bd 100644 --- a/responses/decide.js +++ b/responses/decide.js @@ -2,16 +2,6 @@ const Discord = require('discord.js'); module.exports = { name: "decide", - meta: { - category: "", - perms: "", - staff: false, - vip: "", - serverPerms: [], - writtenBy: "", - serverOnly: false - }, - tags: [], help: new Discord.MessageEmbed() .setTitle("Help -> ") .setDescription("") diff --git a/responses/wubzy.js b/responses/wubzy.js new file mode 100644 index 0000000..432b753 --- /dev/null +++ b/responses/wubzy.js @@ -0,0 +1,28 @@ +const Discord = require('discord.js'); + +module.exports = { + name: "decide", + help: new Discord.MessageEmbed() + .setTitle("Help -> ") + .setDescription("") + .addField("Syntax", "``"), + async condition (message, msg, args, cmd, prefix, mention, client) {return message.author.id === "330547934951112705"}, + async execute(message, msg, args, cmd, prefix, mention, client) { + const inc = m => msg.includes(m); + const is = m => msg.trim() === m; + function incl(ml) {let tm; for (tm of ml) {if (inc(tm)) {return true;}}} + + if (incl(["thanks natsuki", "thank you natsuki", "ty natsuki"])) { + const r = ["Anytime!", "Anything for my creator!", "I hope I was at least a little bit helpful!", + ":P Happy to help!", "You're welcome, Wubzy!", "Always happy to help you, Wubz", + "I do take tips :D"]; + return message.channel.send(r[Math.floor(Math.random() * r.length)]); + } + + if (is("❤")) { + let m = message.channel.messages.fetch({limit: 2}).then(mm => mm.first()); + console.log(m); + if (m.author.id === client.user.id) {return message.channel.send(":heart:");} + } + } +}; \ No newline at end of file