This commit is contained in:
Daniel Odendahl Jr
2017-04-30 22:56:59 +00:00
parent 83e990ae1c
commit 877f720cfc
105 changed files with 460 additions and 461 deletions
+3 -4
View File
@@ -1,10 +1,9 @@
const { Command } = require('discord.js-commando');
const binary = (str) => {
const pad = '00000000';
return unescape(encodeURIComponent(str))
.split('').map(str => {
const binary = str.charCodeAt(0).toString(2);
return `${pad.slice(binary.length)}${binary}`;
return `${'00000000'.slice(binary.length)}${binary}`;
}).join('');
};
@@ -29,8 +28,8 @@ module.exports = class BinaryCommand extends Command {
});
}
run(message, args) {
run(msg, args) {
const { text } = args;
return message.say(text);
return msg.say(text);
}
};