mirror of
https://github.com/sern-handler/templates
synced 2026-06-06 01:16:58 +00:00
refactor(*): update js template
This commit is contained in:
3
templates/javascript/.gitignore
vendored
3
templates/javascript/.gitignore
vendored
@@ -1,2 +1 @@
|
||||
cd ../node_modules
|
||||
/dist
|
||||
/node_modules
|
||||
@@ -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": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
const { CommandType, sernModule } = require('@sern/handler');
|
||||
|
||||
exports.default = sernModule([], {
|
||||
module.exports = sernModule([], {
|
||||
type: CommandType.Both,
|
||||
description: 'A ping command',
|
||||
//alias : [],
|
||||
|
||||
@@ -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: [
|
||||
|
||||
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user