Skip to content

Commit

Permalink
feat(cli): add discord invite command
Browse files Browse the repository at this point in the history
  • Loading branch information
twlite committed Jun 19, 2023
1 parent da86f17 commit 05da1f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/canvacord.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ async function main() {
${chalk.blue("help")} : shows this menu
${chalk.blue("rebuild")} ${chalk.grey(`[--force]`)} : rebuilds assets
${chalk.blue("version")} : shows canvacord version info
${chalk.blue("discord")} : canvacord discord support server invite
${chalk.blue("github")} : returns github repository url for canvacord
${chalk.cyanBright(`Canvacord v${version}`)}`;
Expand All @@ -36,6 +37,7 @@ ${chalk.cyanBright(`Canvacord v${version}`)}`;
return await assetsBuilder(!!getArgs("--force"));
}
if (getArgs("version")) return console.log(chalk.cyan(`Canvacord v${version}`));
if (getArgs("discord")) return console.log(chalk.cyan('https://neplextech.com/discord'));
if (getArgs("github")) return console.log(chalk.blue(repository.url.replace("git+", "")));
console.log(helpMessage);
}
Expand Down

0 comments on commit 05da1f7

Please sign in to comment.