mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-09-02 08:41:25 +03:00
Finish "new" command, and other stuff
This commit is contained in:
@@ -3,9 +3,19 @@ const config = require('../../user/config');
|
||||
let current_presence = -1;
|
||||
|
||||
module.exports = {
|
||||
/**
|
||||
*
|
||||
* @param {string} text
|
||||
* @param {string} [additional]
|
||||
* @returns {string}
|
||||
*/
|
||||
footer: (text, additional) => {
|
||||
if (text && additional) return `${text} | ${additional}`;
|
||||
else return text || additional || '';
|
||||
},
|
||||
/**
|
||||
* Select a presence from the config
|
||||
* @returns {Discord.PresenceData}
|
||||
* @returns {PresenceData}
|
||||
*/
|
||||
selectPresence: () => {
|
||||
let length = config.presence.presences.length;
|
||||
|
43
src/utils/emoji.js
Normal file
43
src/utils/emoji.js
Normal file
@@ -0,0 +1,43 @@
|
||||
module.exports = {
|
||||
letters: {
|
||||
A: '🇦',
|
||||
B: '🇧',
|
||||
C: '🇨',
|
||||
D: '🇩',
|
||||
E: '🇪',
|
||||
F: '🇫',
|
||||
G: '🇬',
|
||||
H: '🇭',
|
||||
I: '🇮',
|
||||
J: '🇯',
|
||||
K: '🇰',
|
||||
L: '🇱',
|
||||
M: '🇲',
|
||||
N: '🇳',
|
||||
O: '🇴',
|
||||
P: '🇵',
|
||||
Q: '🇶',
|
||||
R: '🇷',
|
||||
S: '🇸',
|
||||
T: '🇹',
|
||||
U: '🇺',
|
||||
V: '🇻',
|
||||
W: '🇼',
|
||||
X: '🇽',
|
||||
Y: '🇾',
|
||||
Z: '🇿',
|
||||
},
|
||||
numbers: {
|
||||
0: '0️⃣',
|
||||
1: '1️⃣',
|
||||
2: '2️⃣',
|
||||
3: '3️⃣',
|
||||
4: '4️⃣',
|
||||
5: '5️⃣',
|
||||
6: '6️⃣',
|
||||
7: '7️⃣',
|
||||
8: '8️⃣',
|
||||
9: '9️⃣',
|
||||
10: '🔟',
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user