oops accidentally compiled templates

This commit is contained in:
Jacob Nguyen
2023-06-10 00:48:06 -05:00
parent 789fcaf748
commit e94a2be41f
4 changed files with 0 additions and 117 deletions

View File

@@ -1,21 +0,0 @@
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", { value: true });
const handler_1 = require("@sern/handler");
exports.default = (0, handler_1.commandModule)({
type: handler_1.CommandType.Both,
plugins: [],
description: 'A ping command',
//alias : [],
execute: (ctx, args) => __awaiter(void 0, void 0, void 0, function* () {
yield ctx.reply('Pong 🏓');
}),
});

View File

@@ -1,31 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const discord_js_1 = require("discord.js");
const handler_1 = require("@sern/handler");
const client = new discord_js_1.Client({
intents: [
discord_js_1.GatewayIntentBits.Guilds,
discord_js_1.GatewayIntentBits.GuildMembers,
discord_js_1.GatewayIntentBits.GuildMessages,
discord_js_1.GatewayIntentBits.MessageContent, //Make sure this is enabled for text commands!
],
});
/**
* Where all of your dependencies are composed.
* '@sern/client' is usually your Discord Client.
* View documentation for pluggable dependencies
* Configure your dependency root to your liking.
* It follows the npm package iti https://itijs.org/.
* Use this function to access all of your dependencies.
* This is used for external event modules as well
*/
await (0, handler_1.makeDependencies)({
build: (root) => root.add({ '@sern/client': (0, handler_1.single)(() => client) })
});
//View docs for all options
handler_1.Sern.init({
defaultPrefix: '!',
commands: 'dist/commands',
// events: 'dist/events' (optional),
});
client.login();

View File

@@ -1,21 +0,0 @@
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", { value: true });
const handler_1 = require("@sern/handler");
exports.default = (0, handler_1.commandModule)({
type: handler_1.CommandType.Both,
plugins: [],
description: 'A ping command',
//alias : [],
execute: (ctx, args) => __awaiter(void 0, void 0, void 0, function* () {
yield ctx.reply('Pong 🏓');
}),
});

View File

@@ -1,44 +0,0 @@
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", { value: true });
const discord_js_1 = require("discord.js");
const handler_1 = require("@sern/handler");
const client = new discord_js_1.Client({
intents: [
discord_js_1.GatewayIntentBits.Guilds,
discord_js_1.GatewayIntentBits.GuildMembers,
discord_js_1.GatewayIntentBits.GuildMessages,
discord_js_1.GatewayIntentBits.MessageContent, //Make sure this is enabled for text commands!
],
});
/**
* Where all of your dependencies are composed.
* '@sern/client' is usually your Discord Client.
* View documentation for pluggable dependencies
* Configure your dependency root to your liking.
* It follows the npm package iti https://itijs.org/.
* Use this function to access all of your dependencies.
* This is used for external event modules as well
*/
function init() {
return __awaiter(this, void 0, void 0, function* () {
yield (0, handler_1.makeDependencies)({
build: (root) => root.add({ '@sern/client': (0, handler_1.single)(() => client) })
});
//View docs for all options
handler_1.Sern.init({
defaultPrefix: '!',
commands: 'dist/commands',
// events: 'dist/events' (optional),
});
});
}
client.login();