-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathshard.ts
More file actions
15 lines (13 loc) · 759 Bytes
/
Copy pathshard.ts
File metadata and controls
15 lines (13 loc) · 759 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Kisaragi - A kawaii discord bot ❤ *
* Copyright © 2026 Moebytes <moebytes.com> *
* Licensed under CC BY-NC 4.0. See license.txt for details. *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
import "dotenv/config"
import {ShardingManager} from "discord.js"
import config from "./config.json"
import path from "path"
const token = process.env.TESTING === "yes" ? process.env.TEST_TOKEN : process.env.TOKEN
const manager = new ShardingManager(path.join(__dirname, "index.js"), {token})
manager.spawn({amount: "auto", delay: 15000, timeout: 10000000})
manager.on("shardCreate", (shard) => console.log(`Launching Shard ${shard.id}`))