mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-16 09:39:09 +00:00
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:
parent
55bc84e045
commit
7ec603cf70
23 changed files with 104 additions and 799 deletions
9
packages/bot/index.js
Normal file
9
packages/bot/index.js
Normal 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();
|
Loading…
Add table
Add a link
Reference in a new issue