From 80bad15e1ebd0778f6f4d87f4df34b147d1fb8f1 Mon Sep 17 00:00:00 2001 From: EvolutionX Date: Wed, 15 Jun 2022 12:52:55 +0530 Subject: [PATCH] refactor(*): update js template --- templates/javascript/.gitignore | 3 +-- templates/javascript/package.json | 2 +- templates/javascript/src/commands/ping.js | 2 +- templates/javascript/src/index.js | 4 ++-- templates/typescript/package.json | 2 +- 5 files changed, 6 insertions(+), 7 deletions(-) diff --git a/templates/javascript/.gitignore b/templates/javascript/.gitignore index 1d3d1e8..30bc162 100644 --- a/templates/javascript/.gitignore +++ b/templates/javascript/.gitignore @@ -1,2 +1 @@ -cd ../node_modules -/dist \ No newline at end of file +/node_modules \ No newline at end of file diff --git a/templates/javascript/package.json b/templates/javascript/package.json index bc6019b..a509366 100644 --- a/templates/javascript/package.json +++ b/templates/javascript/package.json @@ -15,7 +15,7 @@ "author": "EvolutionX", "license": "UNLICENSED", "dependencies": { - "@sern/handler": "^1.0.0-beta", + "@sern/handler": "^1.0.1-beta", "discord.js": "^14.0.0-dev.1650672498-3617093" }, "devDependencies": { diff --git a/templates/javascript/src/commands/ping.js b/templates/javascript/src/commands/ping.js index 20f6b81..0b3c2ff 100644 --- a/templates/javascript/src/commands/ping.js +++ b/templates/javascript/src/commands/ping.js @@ -1,6 +1,6 @@ const { CommandType, sernModule } = require('@sern/handler'); -exports.default = sernModule([], { +module.exports = sernModule([], { type: CommandType.Both, description: 'A ping command', //alias : [], diff --git a/templates/javascript/src/index.js b/templates/javascript/src/index.js index e2792df..05d1d6a 100644 --- a/templates/javascript/src/index.js +++ b/templates/javascript/src/index.js @@ -1,5 +1,5 @@ -import { Client, GatewayIntentBits } from 'discord.js'; -import { Sern } from '@sern/handler'; +const { Client, GatewayIntentBits } = require('discord.js'); +const { Sern } = require('@sern/handler'); const client = new Client({ intents: [ diff --git a/templates/typescript/package.json b/templates/typescript/package.json index 948eec2..e931ee1 100644 --- a/templates/typescript/package.json +++ b/templates/typescript/package.json @@ -15,7 +15,7 @@ "author": "EvolutionX", "license": "UNLICENSED", "dependencies": { - "@sern/handler": "^1.0.0-beta", + "@sern/handler": "^1.0.1-beta", "discord.js": "^14.0.0-dev.1650672498-3617093" }, "devDependencies": {