Code Cleanup

pull/11/head
Trivernis 6 years ago
parent 17e0883928
commit 38fdece6c3

@ -106,7 +106,7 @@ exports.createGlobalCommand = function(command, call, args, description) {
*/ */
exports.parseMessage = function (msg) { exports.parseMessage = function (msg) {
return parseGlobalCommand(msg); return parseGlobalCommand(msg);
} };
/** /**
* Initializes the module by creating a help command * Initializes the module by creating a help command

@ -182,11 +182,11 @@ exports.GuildHandler = class {
// saved command - prints out saved playlists // saved command - prints out saved playlists
this.createCommand(prefix + 'saved', () => { this.createCommand(prefix + 'saved', () => {
let response = '```markdown\nSaved Playlists:\n==\n' let response = '```markdown\nSaved Playlists:\n==\n';
Object.entries(this.getData('savedplaylists')).forEach(([key, value]) => { Object.entries(this.getData('savedplaylists')).forEach(([key, value]) => {
response += `${key.padEnd(10, ' ')} ${value} \n\n`; response += `${key.padEnd(10, ' ')} ${value} \n\n`;
}); });
response += '```' response += '```';
return response; return response;
}, [], "Prints out all saved playlists."); }, [], "Prints out all saved playlists.");
} }

@ -284,7 +284,7 @@ exports.DJ = class{
clear() { clear() {
this.queue = []; this.queue = [];
} }
} };
/** /**
* Getting the logger; * Getting the logger;

Loading…
Cancel
Save