summaryrefslogtreecommitdiff
path: root/src/app.js
diff options
context:
space:
mode:
author8cy <[email protected]>2020-04-13 05:32:35 -0700
committer8cy <[email protected]>2020-04-13 05:32:35 -0700
commit9dff52f7d047c905326bc2f476ede5463e00f2a0 (patch)
tree1fec8563b3b72fde9b2ab7ad9e56a97398798685 /src/app.js
parenttypescript (diff)
downloads5nical-9dff52f7d047c905326bc2f476ede5463e00f2a0.tar.xz
s5nical-9dff52f7d047c905326bc2f476ede5463e00f2a0.zip
typescript final
Diffstat (limited to 'src/app.js')
-rw-r--r--src/app.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/app.js b/src/app.js
new file mode 100644
index 0000000..843db70
--- /dev/null
+++ b/src/app.js
@@ -0,0 +1,6 @@
+const { ShardingManager } = require('discord.js');
+const config = require('./config.json');
+const manager = new ShardingManager('./bot.js', { token: config['secret'] });
+
+manager.spawn();
+manager.on('shardCreate', shard => console.log(`Launched shard: ${shard.id}`)); \ No newline at end of file