mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 02:23:31 +01:00
test: update tests (#3865)
* test: update tests * style: fix indent * test: suggested changes * test: require correct directory Co-authored-by: Crawl <icrawltogo@gmail.com>
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
'use strict';
|
||||
|
||||
const { token } = require('./auth.json');
|
||||
const Discord = require('../');
|
||||
const Discord = require('../src');
|
||||
|
||||
const client = new Discord.Client({
|
||||
shardID: process.argv[2],
|
||||
shards: process.argv[2],
|
||||
shardCount: process.argv[3],
|
||||
});
|
||||
|
||||
@@ -27,8 +27,8 @@ client.on('message', msg => {
|
||||
process.send(123);
|
||||
|
||||
client.on('ready', () => {
|
||||
console.log('Ready', client.options.shardID);
|
||||
if (client.options.shardID === 0) {
|
||||
console.log('Ready', client.options.shards);
|
||||
if (client.options.shards === 0) {
|
||||
setTimeout(() => {
|
||||
console.log('kek dying');
|
||||
client.destroy();
|
||||
|
||||
Reference in New Issue
Block a user