Rewrite the bot process in Node/Discord.js (#206)

* Rewrite the bot process in js using discord.js

* remove old go code
This commit is contained in:
Katie Macke 2021-03-31 15:35:07 -04:00 committed by GitHub
parent 55bc84e045
commit 7ec603cf70
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 104 additions and 799 deletions

9
packages/bot/index.js Normal file
View file

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