mirror of
https://github.com/sern-handler/create-bot
synced 2026-06-26 17:52:20 +00:00
y
This commit is contained in:
@@ -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