summaryrefslogtreecommitdiff
path: root/src/app.ts
diff options
context:
space:
mode:
author8cy <[email protected]>2020-04-16 04:56:37 -0700
committer8cy <[email protected]>2020-04-16 04:56:37 -0700
commit8c435855e647ee7aef8578e253caf91fe44c67cc (patch)
treeae0bb59de10ecec5ca2fc01dfa9190efd1f177ab /src/app.ts
parentno longer hosting ws, v6.0.4 (diff)
downloaddep-core-8c435855e647ee7aef8578e253caf91fe44c67cc.tar.xz
dep-core-8c435855e647ee7aef8578e253caf91fe44c67cc.zip
The Purification, v7.0.0
add: - aesthetic, oddcase, stretch, surreal - culturedtext - dogeify - howify - insult - lorem - spongebob Other Stuff: - many refactoring
Diffstat (limited to 'src/app.ts')
-rw-r--r--src/app.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/app.ts b/src/app.ts
new file mode 100644
index 0000000..a11d878
--- /dev/null
+++ b/src/app.ts
@@ -0,0 +1,8 @@
+import { ShardingManager } from 'discord.js';
+import config from './config.json';
+const manager = new ShardingManager('./dist/bot.js', { token: config['secret'] });
+//const manager = new ShardingManager('./bot.js', { token: config['secret'] });
+
+manager.spawn();
+console.log('Connecting...');
+manager.on('shardCreate', shard => console.log(`Launched shard: ${shard.id}`));