forked from OceanUwU/slaytabase
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathemojis.js
More file actions
86 lines (85 loc) · 4.62 KB
/
emojis.js
File metadata and controls
86 lines (85 loc) · 4.62 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
const energies = ['Energy', '[E]', '[R]', '[G]', '[B]', '[W]'];
const emojis = [
['Artifact', 'p_artifact:997273885995188335'],
['Block', 'p_block:997281211305181314'],
['Blur', 'p_blur:997273889950416908'],
['Dexterity', 'p_dexterity:997273884330037260'],
['Focus', 'p_focus:997273883122089994'],
['Frail', 'p_frail:997273897697288202'],
['gold', 'p_gold:997287497883193344'],
['Gold', 'p_gold:997287497883193344'],
['souls', 'p_gold:997287497883193344'],
['Souls', 'p_gold:997287497883193344'],
['Intangible', 'p_intangible:997281585177055262'],
['Mantra', 'p_mantra:997273892051750963'],
['Poison', 'p_poison:997273896237666385'],
['Strength', 'p_strength:997273888897642696'],
['temporary', 'p_temp:997273899039473724'],
['Temporary', 'p_temp:997273899039473724'],
['Thorns', 'p_thorns:997273887358337206'],
['Vigor', 'p_vigor:997275506749743126'],
['Vulnerable', 'p_vulnerable:997273894861934602'],
['Weak', 'p_weak:997273893402325102'],
['hermit:Bruise', 'p_bruise:1031919239856136232'],
['hermit:Concentrate', 'p_concentration:1031918889065521242'],
['hermit:Rugged', 'p_rugged:1031918890571268116'],
['champ:Counter', 'p_counter:997275619337453690'],
['[fist_icon]', 'finisher:961810374120849418', true],
['gremlin:Wiz', 'p_wiz:997275808316010607'],
['hexamod:Soulburn', 'p_soulburn:997276073010147328'],
['TheBrainlets:Soulburn', 'p_soulburn:997276073010147328'],
['hexamod:Intensity', 'p_intensity:997274751028437022'],
['slimeboundmod:Potency', 'p_potency:997276392007925852'],
['slimeboundmod:Goop', 'p_goop:997275103463219280'],
['theunchainedmod:Momentum', 'Momentum:1064667335216087070'],
['theunchainedmod:Crushed_Armor', 'CrushedArmor:1064667253896904734'],
['theunchainedmod:Relay ', 'Relay:1064667209663774751'],
['theunchainedmod:Relay.', 'Relay:1064667209663774751'],
['clockworkchar:Wind_Up', 'crankywindup:1117518847717687426'],
['clockworkchar:Spin', 'crankyspin:1117518630561787934'],
['clockworkchar:Let_Go', 'crankyspin:1117518630561787934'],
['clockworkchar:Attune', 'crankyattune:1117519047244918924'],
['clockworkchar:Actuate', 'crankyattune:1117519047244918924'],
['clockworkchar:Proficiency', 'crankyproficiency:1117518430044692542'],
['clockworkchar:Part', 'crankypart:1117519374614544446'],
['clockworkchar:Dizzy', 'crankydizzy:1117518578149761045'],
['clockworkchar:Battery', 'battery:1107557955932520519'],
['bogwarden:Mojo', 'bogwardenmojo:1161308927993065533'],
['bogwarden:Maledict', 'bogwardenmaledict:1161308927007391875'],
['bogwarden:Spines', 'bogwardenspines:1161308929553354862'],
['bogwarden:Venom', 'bogwardenvenom:1161308924830564372'],
['[snowpunk:SnowIcon]', 'conducto_snow:1320903821869846538', true],
['[snowpunk:GearIcon]', 'conducto_gear:1320903832162668585', true],
['[BoardGame:AOEIcon]', 'aoe:1040929610965192775', true],
['[BoardGame:BlockIcon]', 'block:1040929818608423002', true],
['[BoardGame:BurnIcon]', 'burn:1040930011957448714', true],
['[BoardGame:CardpackIcon]', 'cardpack:1040930440267182150', true],
['[BoardGame:DazedIcon]', 'daze:1040929652459450489', true],
['[BoardGame:Die1Icon]', 'die1:1040933176136171592', true],
['[BoardGame:Die2Icon]', 'die3:1040933197548101632', true],
['[BoardGame:Die3Icon]', 'die3:1040933197548101632', true],
['[BoardGame:Die4Icon]', 'die4:1040933207463444500', true],
['[BoardGame:Die5Icon]', 'die5:1040933217047416862', true],
['[BoardGame:Die6Icon]', 'die6:1040933225872240660', true],
['[BoardGame:FakeDazedIcon]', 'energy:1040929315430338632', true],
['[BoardGame:GoldIcon]', 'gold:1040930197777698826', true],
['[BoardGame:HitIcon]', 'hit:1040930627156979814', true],
['[BoardGame:MiracleIcon]', 'mantra:1040930263456292915', true],
['[BoardGame:PoisonIcon]', 'poison:1040930163317280808', true],
['[BoardGame:PotionIcon]', 'pot:1040931569247977563', true],
['[BoardGame:RarepackIcon]', 'rarepack:1040930467890872371', true],
['[BoardGame:RelicIcon]', 'relic:1040932122271158302', true],
['[BoardGame:ShivIcon]', 'shiv:1040929988033118338', true],
['[BoardGame:SlimedIcon]', 'slime:1040930043657998366', true],
['[BoardGame:StrIcon]', 'str:1040929784454189097', true],
['[BoardGame:VulnIcon]', 'vuln:1040929949546205235', true],
['[BoardGame:WeakIcon]', 'weak:1040930410596679710', true]
];
export default function emojify(text, character) {
text = text.replaceAll('([', '( [');
for (let i of energies)
text = text.replaceAll(i, character[2]);
for (let i of emojis)
text = text.replaceAll(i[0], i.length > 2 ? `<:${i[1]}>` : `${i[0]} <:${i[1]}>`);
return text;
}