-
Notifications
You must be signed in to change notification settings - Fork 2
/
XpMem.js
36 lines (36 loc) · 2.31 KB
/
XpMem.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
"🐙============================================================================================================================<⚡>";
"⚡𝐗𝐞𝐓𝐫𝐨𝐧⚡ 𝐢𝐬 𝐚 𝐃𝐢𝐬𝐜𝐨𝐫𝐝 𝐒𝐞𝐫𝐯𝐞𝐫 𝐌𝐮𝐥𝐭𝐢𝐏𝐮𝐫𝐩𝐨𝐬𝐞𝐁𝐨𝐭 𝐰𝐢𝐭𝐡 𝐌𝐨𝐝𝐞𝐫𝐚𝐭𝐢𝐨𝐧,𝐀𝐮𝐭𝐨𝐦𝐚𝐭𝐢𝐨𝐧 𝐚𝐧𝐝 𝟏𝟎𝟎+ 𝐦𝐨𝐫𝐞 𝐜𝐨𝐦𝐦𝐚𝐧𝐝𝐬!";
"🐙============================================================================================================================<⚡>";
"🐙";
"🐙";
module.exports = {
getMember: function (message, toFind = "") {
toFind = toFind.toLowerCase();
let target = message.guild.members.cache.get(toFind);
if (!target && message.mentions.members) target = message.mentions.members.first();
if (!target && toFind) {
target = message.guild.members.find((member) => {
return (member.displayName.toLowerCase().includes(toFind) || member.user.tag.toLowerCase().includes(toFind));
});
}
if (!target) target = message.member;
return target;
},
formatDate: function (date) {
return new Intl.DateTimeFormat("en-US").format(date);
},
promptMessage: async function (message, author, time, validReactions) {
time *= 1000;
for (var reaction of validReactions) await message.react(reaction);
var filter = (reaction, user) => validReactions.includes(reaction.emoji.name) && user.id === author.id;
return message.awaitReactions(filter, {
max: 1,
time: time
}).then((collected) => collected.first() && collected.first().emoji.name);
},
};
("🐙");
("🐙");
("🐙============================================================================================================================<⚡>");
("⚡𝐗𝐞𝐓𝐫𝐨𝐧⚡ 𝐢𝐬 𝐚 𝐃𝐢𝐬𝐜𝐨𝐫𝐝 𝐒𝐞𝐫𝐯𝐞𝐫 𝐌𝐮𝐥𝐭𝐢𝐏𝐮𝐫𝐩𝐨𝐬𝐞𝐁𝐨𝐭 𝐰𝐢𝐭𝐡 𝐌𝐨𝐝𝐞𝐫𝐚𝐭𝐢𝐨𝐧,𝐀𝐮𝐭𝐨𝐦𝐚𝐭𝐢𝐨𝐧 𝐚𝐧𝐝 𝟏𝟎𝟎+ 𝐦𝐨𝐫𝐞 𝐜𝐨𝐦𝐦𝐚𝐧𝐝𝐬!");
("🐙============================================================================================================================<⚡>");