feat(bot): add dockerfile for JS rewrite, fix some loose ends (#210)

This commit is contained in:
41666 2021-04-03 17:53:05 -04:00 committed by GitHub
parent 7ec603cf70
commit 3190d41a9e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 23 additions and 32 deletions

View file

@ -5,5 +5,8 @@ const { ShardingManager } = require('discord.js');
const botToken = process.env['BOT_TOKEN'];
const manager = new ShardingManager('./bot.js', { token: botToken });
const manager = new ShardingManager(path.resolve(__dirname, 'bot.js'), {
token: botToken,
});
manager.spawn();