mirror of
https://github.com/sern-handler/create-bot
synced 2026-06-06 01:16:53 +00:00
y
This commit is contained in:
@@ -16,7 +16,8 @@
|
||||
"dependencies": {
|
||||
"@sern/handler": "^3.0.3",
|
||||
"discord.js": "latest",
|
||||
"dotenv": "^16.3.1"
|
||||
"dotenv": "^16.3.1",
|
||||
"@sern/publisher": "^1.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^18.0.25"
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
/// <reference path="dependencies.d.ts" />
|
||||
import 'dotenv/config'
|
||||
import { Client, GatewayIntentBits } from 'discord.js';
|
||||
import { Sern, single, makeDependencies } from '@sern/handler';
|
||||
import { Sern, makeDependencies } from '@sern/handler';
|
||||
import { Publisher } from '@sern/publisher'
|
||||
|
||||
const client = new Client({
|
||||
intents: [
|
||||
@@ -19,7 +20,8 @@ const client = new Client({
|
||||
* This is used for external event modules as well
|
||||
*/
|
||||
await makeDependencies(({ add }) => {
|
||||
add('@sern/client', single(() => client));
|
||||
add('@sern/client', client);
|
||||
add('publisher', new Publisher());
|
||||
});
|
||||
|
||||
//View docs for all options
|
||||
|
||||
@@ -18,7 +18,8 @@
|
||||
"dependencies": {
|
||||
"@sern/handler": "^3.0.3",
|
||||
"discord.js": "latest",
|
||||
"dotenv": "^16.3.1"
|
||||
"dotenv": "^16.3.1",
|
||||
"@sern/publisher": "^1.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^17.0.25",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import 'dotenv/config'
|
||||
import { Client, GatewayIntentBits } from 'discord.js';
|
||||
import { Sern, single, makeDependencies } from '@sern/handler';
|
||||
|
||||
import { Sern, makeDependencies } from '@sern/handler';
|
||||
import { Publisher } from '@sern/publisher'
|
||||
const client = new Client({
|
||||
intents: [
|
||||
GatewayIntentBits.Guilds,
|
||||
@@ -19,7 +19,8 @@ const client = new Client({
|
||||
* This is used for external event modules as well
|
||||
*/
|
||||
await makeDependencies(({ add }) => {
|
||||
add('@sern/client', single(() => client));
|
||||
add('@sern/client', client);
|
||||
add('publisher', new Publisher());
|
||||
});
|
||||
|
||||
//View docs for all options
|
||||
|
||||
Reference in New Issue
Block a user