Finish "new" command, and other stuff

This commit is contained in:
Isaac
2021-04-05 18:38:00 +01:00
parent 01519df0cf
commit 4b3ba238bd
15 changed files with 369 additions and 255 deletions

View File

@@ -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
View 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: '🔟',
}
};