mirror of
https://github.com/captbaritone/webamp.git
synced 2026-01-23 18:25:30 +00:00
Unused args
This commit is contained in:
parent
4310d5475d
commit
282cd6444e
6 changed files with 7 additions and 7 deletions
|
|
@ -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.");
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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 || ""}\` -- ${
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue