Unused args

This commit is contained in:
Jordan Eldredge 2019-04-05 07:38:06 -07:00
parent 4310d5475d
commit 282cd6444e
6 changed files with 7 additions and 7 deletions

View file

@ -6,7 +6,7 @@ const md5Buffer = require("md5");
const { getInfo } = require("../info");
const Skin = require("./skin");
async function handler(message, args) {
async function handler(message) {
const { attachments } = message;
if (attachments.length < 1) {
await message.channel.send("Could not archive. No attachment found.");

View file

@ -1,7 +1,7 @@
const { getCache } = require("../info");
const { getStats } = require("../s3");
async function handler(message, args) {
async function handler(message) {
const info = getCache();
let classic = 0;
const { tweeted, approved, rejected } = await getStats();

View file

@ -22,7 +22,7 @@ for (const command of commands) {
handlers[command.command] = command.handler;
}
async function handleHelp(message, args) {
async function handleHelp(message) {
const commandHelp = commands
.map(command => {
return `\`!${command.command} ${command.usage || ""}\` -- ${

View file

@ -20,7 +20,7 @@ function getFile(key) {
function putFile(key, body) {
return new Promise((resolve, reject) => {
const bucketName = "winamp2-js-skins";
s3.putObject({ Bucket: bucketName, Key: key, Body: body }, (err, data) => {
s3.putObject({ Bucket: bucketName, Key: key, Body: body }, err => {
if (err) {
reject(err);
return;

View file

@ -5,7 +5,7 @@ const getColor = imgPath => {
return new Promise((resolve, reject) => {
const excapedImgPath = shellescape([imgPath]);
const command = `convert ${excapedImgPath} -scale 1x1\! -format '%[pixel:u]' info:-`;
exec(command, (error, stdout, stderr) => {
exec(command, (error, stdout) => {
if (error !== null) {
reject(error);
return;

View file

@ -28,8 +28,8 @@ async function extractTextData(skinPath) {
// TODO: Escape path
const cmd = `unzip ${listFlag} -C "${skinPath}" "file_id.diz" "*.txt" ${ignoreArgs}`;
const raw = await new Promise((resolve, reject) => {
exec(cmd, (error, stdout, stderr) => {
const raw = await new Promise(resolve => {
exec(cmd, (error, stdout) => {
if (error != null) {
// reject(error);
// return;