discord-easy-dashboard icon indicating copy to clipboard operation
discord-easy-dashboard copied to clipboard

Update index.js

Open CreativeCodeCat opened this issue 3 years ago • 4 comments
trafficstars

Added a public: path/to/public/files to the config

CreativeCodeCat avatar Mar 07 '22 21:03 CreativeCodeCat

Hey, did you test your code?

SimonLeclere avatar Mar 08 '22 21:03 SimonLeclere

ofc its running at http://bot.therepo.club

CreativeCodeCat avatar Mar 08 '22 21:03 CreativeCodeCat

Hey, I just tested your code. I think it would be better if the "public" option was in the main theme file, so that the user doesn't have to worry about that when using a public theme.

const { join } = require("path");

const BASE_PATH = ".";

module.exports = {
    home: join(__dirname, BASE_PATH, "index.ejs"),
    guild: join(__dirname, BASE_PATH, "guild.ejs"),
    selector: join(__dirname, BASE_PATH, "selector.ejs"),
    commands: join(__dirname, BASE_PATH, "commands.ejs"),
    404: join(__dirname, BASE_PATH, "404.ejs"),
   publicFiles: join(__dirname,BASE_PATH, "public")
};

SimonLeclere avatar Mar 09 '22 17:03 SimonLeclere

ya that may work better :)

CreativeCodeCat avatar Mar 10 '22 20:03 CreativeCodeCat