1 |
rakin |
349 |
module.exports = class NameProcessor { |
2 |
|
|
map = { |
3 |
|
|
"Coke#0666": "coke0666", |
4 |
|
|
"rakinar2#7578": "rakinar2_7578", |
5 |
|
|
}; |
6 |
|
|
|
7 |
|
|
constructor(client) { |
8 |
|
|
/** |
9 |
|
|
* In case if you need the client. |
10 |
|
|
* |
11 |
|
|
* @type {Client} |
12 |
|
|
*/ |
13 |
|
|
this.client = client; |
14 |
|
|
} |
15 |
|
|
|
16 |
|
|
/** @param {User} user */ |
17 |
|
|
buildEmbed(user) { |
18 |
|
|
const embedBuilder = this.map[user.tag]; |
19 |
|
|
|
20 |
|
|
if (!embedBuilder) { |
21 |
|
|
return null; |
22 |
|
|
} |
23 |
|
|
|
24 |
|
|
return embedBuilder(user); |
25 |
|
|
} |
26 |
|
|
|
27 |
|
|
/** @param {User} user */ |
28 |
|
|
coke0666(user) { |
29 |
|
|
return new MessageEmbed({ |
30 |
|
|
author: user.tag, |
31 |
|
|
iconURL: user.displayAvatarURL(), |
32 |
|
|
description: "ABC" |
33 |
|
|
// ... other stuff |
34 |
|
|
}); |
35 |
|
|
} |
36 |
|
|
|
37 |
|
|
/** @param {User} user */ |
38 |
|
|
rakinar2_7578(user) { |
39 |
|
|
return new MessageEmbed({ |
40 |
|
|
author: user.tag, |
41 |
|
|
iconURL: user.displayAvatarURL(), |
42 |
|
|
description: "XYZ" |
43 |
|
|
// ... other stuff |
44 |
|
|
}); |
45 |
|
|
} |
46 |
|
|
} |