I found that if I start at the beginning, if the command failed early, it'd still be typing a couple seconds after replying to your command, which was kind of annoying.
This commit is contained in:
parent
bf97b3633f
commit
4c1199aea5
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,6 @@ module.exports = {
|
||||||
name: 'tdoss',
|
name: 'tdoss',
|
||||||
description: 'Combine picture with tdoss album cover template',
|
description: 'Combine picture with tdoss album cover template',
|
||||||
async execute({ message, args }) {
|
async execute({ message, args }) {
|
||||||
message.channel.sendTyping();
|
|
||||||
|
|
||||||
let dataDir = path.resolve(__dirname, '..', '..', 'data');
|
let dataDir = path.resolve(__dirname, '..', '..', 'data');
|
||||||
const directory = path.resolve(dataDir, Math.floor(new Date).toString())
|
const directory = path.resolve(dataDir, Math.floor(new Date).toString())
|
||||||
|
@ -27,6 +26,7 @@ module.exports = {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
// TODO: Download with correct extension.
|
// TODO: Download with correct extension.
|
||||||
|
message.channel.sendTyping();
|
||||||
const curlCommand = `curl "${url}" -o ${directory}/input.png`;
|
const curlCommand = `curl "${url}" -o ${directory}/input.png`;
|
||||||
|
|
||||||
if (this.executeCommand(curlCommand).error === true) {
|
if (this.executeCommand(curlCommand).error === true) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue