This commit is contained in:
parent
2073a46715
commit
f4ffcbebde
1 changed files with 1 additions and 2 deletions
|
@ -9,8 +9,7 @@ module.exports = {
|
||||||
"Usage: <prefix>dl <url>"
|
"Usage: <prefix>dl <url>"
|
||||||
],
|
],
|
||||||
async execute({message, args}) {
|
async execute({message, args}) {
|
||||||
|
const downloadsDir = path.resolve(process.cwd(), 'data', 'downloads', Date.now().toString());
|
||||||
const downloadsDir = path.resolve(process.cwd(), 'data', 'downloads', Math.floor(new Date).toString());
|
|
||||||
const cookieFilepath = path.resolve(process.cwd(), 'data', 'cookies.txt')
|
const cookieFilepath = path.resolve(process.cwd(), 'data', 'cookies.txt')
|
||||||
if(!fs.existsSync(cookieFilepath)) {
|
if(!fs.existsSync(cookieFilepath)) {
|
||||||
message.channel.send("Some dependencies are needed for the command to work properly. Please let the bot's owner know.")
|
message.channel.send("Some dependencies are needed for the command to work properly. Please let the bot's owner know.")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue