process.cwd is a method not a property
All checks were successful
CI / CI (push) Successful in 1m23s
All checks were successful
CI / CI (push) Successful in 1m23s
This commit is contained in:
parent
787bfb43d4
commit
abd43008b3
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ module.exports = {
|
||||||
description: 'Combine picture with tdoss album cover template',
|
description: 'Combine picture with tdoss album cover template',
|
||||||
async execute({ message, args }) {
|
async execute({ message, args }) {
|
||||||
|
|
||||||
let tdossDir = path.resolve(process.cwd, 'data', 'tdoss');
|
let tdossDir = path.resolve(process.cwd(), 'data', 'tdoss');
|
||||||
|
|
||||||
const directory = path.resolve(tdossDir, Math.floor(new Date).toString())
|
const directory = path.resolve(tdossDir, Math.floor(new Date).toString())
|
||||||
fs.mkdirSync(directory, {recursive: true})
|
fs.mkdirSync(directory, {recursive: true})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue