refactor/entry points in typescript
This commit is contained in:
10 files changed
+804
-58
No files matched your search
+3
-2
@@ -1,7 +1,8 @@
|
||||
import { ShardingManager } from "discord.js";
|
||||
const config = require("./config/config");
|
||||
import config from "./config/config";
|
||||
|
||||
const manager = new ShardingManager("./bot.js", { token: config.Token });
|
||||
// ShardingManager spawns node instances and we need to explicitely point to dist/bot.js
|
||||
const manager: ShardingManager = new ShardingManager("./dist/bot.js", { token: config.Token });
|
||||
|
||||
manager.on("shardCreate", shard => console.log(`Launched shard ${shard.id}`));
|
||||
|
||||
|
||||
Reference in new issue
Block a user