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:
Sugden
2020-03-07 05:05:57 +00:00
committed by GitHub
parent bca4b038a5
commit 9b5f005394
4 changed files with 28 additions and 26 deletions

View File

@@ -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();