master
Kit Kasune 4 years ago
parent 902631d772
commit e154a86931
  1. 2
      commands/clearstatus.js
  2. 2
      commands/deathnote.js
  3. 2
      commands/hug.js
  4. 3
      responses/wubzy.js
  5. 2
      util/response/getresponse.js
  6. 2
      util/siftstatuses.js

@ -21,6 +21,6 @@ module.exports = {
tu.statustype = '';
tu.save();
require('../util/siftstatuses')(client, message.author.id, true);
return message.reply("welcome back! I cleared your status.").then(m => {m.delete({timeout: 5000}).then(() => {message.delete().catch(() => {});})});
return message.reply("welcome back! I cleared your status.").then(m => {m.delete({timeout: 5000}).then(() => {if (message.guild && message.guild.me.permissions.has("DELETE_MESSAGES")) {message.delete().catch(() => {});}})});
}
};

@ -132,7 +132,7 @@ module.exports = {
let finalEmbed = new Discord.MessageEmbed()
.setAuthor(title, message.author.avatarURL())
.setDescription(`${text}${dns ? `\n\n_Their name is in your deathnote **${dns.total === 1 ? 'once' : `${dns.total} times`}.**_` : ''}`)
.setDescription(`${text}${dns ? `\n\n_Their name is in your deathnote **${dns.against[mention.id] === 1 ? 'once' : `${dns.against[mention.id]} times`}.**_` : ''}`)
.setColor('c375f0')
.setFooter(`Natsuki${dns ? ` | ${dns.total} name${dns.total === 1 ? ' has been' : 's'} written in your deathnote!` : ''}`)
.setTimestamp();

@ -39,7 +39,7 @@ module.exports = {
hugs.save();
return message.channel.send(new Discord.MessageEmbed()
.setAuthor(`${message.guild ? message.member.displayName : message.author.username} gives ${message.guild.members.cache.get(mention.id).displayName} a hug!`, message.author.avatarURL())
.setDescription(`You've hugged them **${hugs.total === 1 ? 'once' : `${hugs.total} times!`}**`)
.setDescription(`You've hugged them **${hugs.against[mention.id] === 1 ? 'once' : `${hugs.against[mention.id]} times!`}**`)
.setImage(String(Array.from(saves.values())[Math.floor(Math.random() * saves.size)]))
.setColor('52c7bb')
.setFooter(`${hugs.total} hug${hugs.total === 1 ? '' : 's'} total`)

@ -91,5 +91,8 @@ module.exports = {
return;
} else {return message.channel.send("Watching anime in incognito are we? I gotcha :p");}
}
if (['hey natsuki', 'hey natsuki?', 'yo natsuki'].includes(msg.trim())) {
let r = ["What's up?", "Hm?", "How can I help?", "Heya ^^", "Hey there Wubbo", "What's up Wubzy?", "Soup", "hehe sup"];
}
}
};

@ -4,6 +4,6 @@ module.exports = async (message, name) => {
let tr = await Responses.findOne({gid: message.guild.id});
if (!tr) {message.reply("This server does not have any responses saved!"); return null;}
if (!tr.responses.has(name.toLowerCase())) {message.reply("I don't have that response saved here."); return null;}
message.delete();
if (message.guild.me.permissions.has("DELETE_MESSAGES")) {message.delete();}
return tr.responses.get(name.toLowerCase());
};

@ -18,7 +18,7 @@ module.exports = async function (client, lookFor, forceClear) {
tu.statustype = '';
tu.save();
let u = await client.users.fetch(status.id);
if (u) {u.send("Heya! Your status has been set for 12 hours, so I've cleared it for you.").catch(() => {});}
if (u && !forceClear) {u.send("Heya! Your status has been set for 12 hours, so I've cleared it for you.").catch(() => {});}
}
} else {ns.push(status);}
}

Loading…
Cancel
Save