discord-coc-bot
Version:
A Discord bot that contains commands useful for Call of Cthulu text roleplaying, based on RPbot by Gawdl3y (https://github.com/Gawdl3y/discord-rpbot/)
20 lines (16 loc) • 489 B
JavaScript
'use babel';
;
import path from 'path';
import { ShardingManager } from 'discord.js';
import config from './config';
/* eslint-disable no-console */
const manager = new ShardingManager(path.join(__dirname, 'rpbot.js'), {
token: config.token,
totalShards: config.shardCount || 'auto',
shardArgs: process.argv.slice(2)
});
manager.on('launch', shard => {
console.log(`----- SHARD ${shard.id} LAUNCHED -----`);
});
manager.spawn().catch(console.error);