cordejs/corde

MaxListenersExceededWarning

Opened this issue · 14 comments

Describe the bug
I get an error when running my tests

To Reproduce
Steps to reproduce the behavior:

  1. Clone https://github.com/kaaaxcreators/Discord-MusicBot
  2. Switch to Branch 'test'
  3. Install Packages
  4. Run script test
  5. see error

Expected behavior
every test case should succeed

Desktop (please complete the following information):

  • OS: Windows 10
  • Terminal: Powershell
  • Corde version: 4.1.0

Additional context
Log: ```

● BeforeStartError: timeout


    at Object.<anonymous> (dist\test\bot.test.js:5:9)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1138:10)

(node:1584) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 12 unhandledRejection listeners added to [process]. Use emitter.setMaxListeners()
to increase limit
(Use node --trace-warnings ... to show where the warning was created)

Test Files: 1 failed. 1 total
Tests: 18 failed. 18 total
Time: 22.75s

The Bot sends messages but still fails

hmm, It seems like beforestart hook is not handling the timeout value defined in configs. I'm going to take a look at that.

hey @kaaax0815, upgrade corde's version to 4.1.1 😊

@lucasgmagalhaes after updating corde throws this error: _pathsDir.filter is not a function

Fixed in 4.1.2 @kaaax0815

Log in 4.1.2 (new package-lock and node_modules)

    
    ● BeforeStartError: timeout

    
        at Object.<anonymous> (dist\test\bot.test.js:5:9)
        at Object.Module._extensions..js (node:internal/modules/cjs/loader:1138:10)

(node:10196) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 12 unhandledRejection listeners added to [process]. Use emitter.setMaxListeners() to increase limit
(Use `node --trace-warnings ...` to show where the warning was created)

Test Files: 1 failed. 1 total  
Tests:      18 failed. 18 total
Time:       20.927s

Can you try to delete node_modes and reinstall it?

As I said I already did that

Ok, Sorry

Ok, Sorry

Dont have to say sorry

Do you maybe know why this happens or is it maybe me bot architectur

@kaaax0815, corde was expecting the property timeOut, not timeout as is in your config. I've renamed corde to use the nomenclature that you are using (which is the correct one). It's in version 4.2.0

The BeforeStartError error is now gone, the MaxListeners is still there unfortunately though

(node:14140) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 12 unhandledRejection listeners added to [process]. Use emitter.setMaxListeners() to increase limit
(Use `node --trace-warnings ...` to show where the warning was created)

Test Files: 1 failed. 1 total  
Tests:      18 failed. 18 total
Time:       20.725s

@kaaax0815 looks like that the problem is in yours commands. invite command is throwing an invalid URL.

Unhandled Rejection at:  Promise {
  <rejected> [    at toReturn processTicksAndRejections (node:internal/process/task_queues:96:5)] {
    name: 'DiscordAPIError',
    message: 'Invalid Form Body\n' +
      'embed.url: Not a well formed URL.\n' +
      'embeds[0].url: Not a well formed URL.',
    method: 'post',
    path: '/channels/522581719568744470/messages',
    code: 50035,
    httpStatus: 400
  }

@kaaax0815 looks like that the problem is in yours commands. invite command is throwing an invalid URL.

Thats also possible because you didnt send every env var. because if i run my bot without corde the command works fine

This is the log from Github Actions (it has more infos, but is weirdly censored)

Run np*** run test:only

> discord-***usicbot@1.0.0 test:only /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot
> corde

- login to corde bot
�[90***2021-07-01 15:14:09.681 �[39***�[1***�[94***INFO�[39***�[22*** �[90***[src/index.ts:100]�[39*** Loading Event: ***essage 
�[90***2021-07-01 15:14:10.443 �[39***�[1***�[94***INFO�[39***�[22*** �[90***[src/index.ts:100]�[39*** Loading Event: ready 
�[90***2021-07-01 15:14:10.448 �[39***�[1***�[94***INFO�[39***�[22*** �[90***[src/index.ts:117]�[39*** Loading Music Co***and: earrape 
�[90***2021-07-01 15:14:10.450 �[39***�[1***�[94***INFO�[39***�[22*** �[90***[src/index.ts:117]�[39*** Loading Music Co***and: leave 
�[90***2021-07-01 15:14:10.452 �[39***�[1***�[94***INFO�[39***�[22*** �[90***[src/index.ts:117]�[39*** Loading Music Co***and: loop 
�[90***2021-07-01 15:14:10.584 �[39***�[1***�[94***INFO�[39***�[22*** �[90***[src/index.ts:117]�[39*** Loading Music Co***and: lyrics 
�[90***2021-07-01 15:14:10.588 �[39***�[1***�[94***INFO�[39***�[22*** �[90***[src/index.ts:117]�[39*** Loading Music Co***and: nowplaying 
�[90***2021-07-01 15:14:10.590 �[39***�[1***�[94***INFO�[39***�[22*** �[90***[src/index.ts:117]�[39*** Loading Music Co***and: pause 
�[90***2021-07-01 15:14:10.904 �[39***�[1***�[94***INFO�[39***�[22*** �[90***[src/index.ts:117]�[39*** Loading Music Co***and: play 
�[90***2021-07-01 15:14:10.913 �[39***�[1***�[94***INFO�[39***�[22*** �[90***[src/index.ts:117]�[39*** Loading Music Co***and: playlist 
�[90***2021-07-01 15:14:10.915 �[39***�[1***�[94***INFO�[39***�[22*** �[90***[src/index.ts:117]�[39*** Loading Music Co***and: queue 
�[90***2021-07-01 15:14:10.917 �[39***�[1***�[94***INFO�[39***�[22*** �[90***[src/index.ts:117]�[39*** Loading Music Co***and: radio 
�[90***2021-07-01 15:14:10.919 �[39***�[1***�[94***INFO�[39***�[22*** �[90***[src/index.ts:117]�[39*** Loading Music Co***and: re***ove 
�[90***2021-07-01 15:14:10.921 �[39***�[1***�[94***INFO�[39***�[22*** �[90***[src/index.ts:117]�[39*** Loading Music Co***and: resu***e 
�[90***2021-07-01 15:14:10.923 �[39***�[1***�[94***INFO�[39***�[22*** �[90***[src/index.ts:117]�[39*** Loading Music Co***and: search 
�[90***2021-07-01 15:14:10.925 �[39***�[1***�[94***INFO�[39***�[22*** �[90***[src/index.ts:117]�[39*** Loading Music Co***and: shuffle 
�[90***2021-07-01 15:14:10.927 �[39***�[1***�[94***INFO�[39***�[22*** �[90***[src/index.ts:117]�[39*** Loading Music Co***and: skip 
�[90***2021-07-01 15:14:10.929 �[39***�[1***�[94***INFO�[39***�[22*** �[90***[src/index.ts:117]�[39*** Loading Music Co***and: skipto 
�[90***2021-07-01 15:14:10.931 �[39***�[1***�[94***INFO�[39***�[22*** �[90***[src/index.ts:117]�[39*** Loading Music Co***and: stop 
�[90***2021-07-01 15:14:10.933 �[39***�[1***�[94***INFO�[39***�[22*** �[90***[src/index.ts:117]�[39*** Loading Music Co***and: volu***e 
�[90***2021-07-01 15:14:10.936 �[39***�[1***�[94***INFO�[39***�[22*** �[90***[src/index.ts:134]�[39*** Loading General Co***and: count 
�[90***2021-07-01 15:14:10.938 �[39***�[1***�[94***INFO�[39***�[22*** �[90***[src/index.ts:134]�[39*** Loading General Co***and: help 
�[90***2021-07-01 15:14:10.939 �[39***�[1***�[94***INFO�[39***�[22*** �[90***[src/index.ts:134]�[39*** Loading General Co***and: invite 
�[90***2021-07-01 15:14:10.941 �[39***�[1***�[94***INFO�[39***�[22*** �[90***[src/index.ts:134]�[39*** Loading General Co***and: ping 
�[90***2021-07-01 15:14:10.943 �[39***�[1***�[94***INFO�[39***�[22*** �[90***[src/index.ts:134]�[39*** Loading General Co***and: prefix 
�[90***2021-07-01 15:14:10.945 �[39***�[1***�[94***INFO�[39***�[22*** �[90***[src/index.ts:134]�[39*** Loading General Co***and: serverstats 
�[90***2021-07-01 15:14:10.948 �[39***�[1***�[94***INFO�[39***�[22*** �[90***[src/index.ts:134]�[39*** Loading General Co***and: stats 
�[90***2021-07-01 15:14:11.204 �[39***�[1***�[94***INFO�[39***�[22*** �[90***[src/events/ready.ts:34]�[39*** [API] Logged in as kaaaxTest 
 RUNS   dist/test/bot.test.js
 RUNS   dist/test/bot.test.js
   ● various co***ands should return sa***evc
 RUNS   dist/test/bot.test.js
   x ***usic co***ands -> various co***ands should return sa***evc   7.796s
 RUNS   dist/test/bot.test.js
   x ***usic co***ands -> various co***ands should return sa***evc   7.796s
    
    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in the sa***e voice channel a
s ***e!",
        "footer": "So***ething went wrong :(",
      }

 RUNS   dist/test/bot.test.js
   x ***usic co***ands -> various co***ands should return sa***evc   7.796s
    
    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in the sa***e voice channel a
s ***e!",
        "footer": "So***ething went wrong :(",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:15:35
    
    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in the sa***e voice channel a
s ***e!",
        "footer": "So***ething went wrong :(",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:15:35
    
    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in the sa***e voice channel a
s ***e!",
        "footer": "So***ething went wrong :(",
      }

    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in the sa***e voice channel a
s ***e!",
        "footer": "So***ething went wrong :(",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:15:35
    
    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in the sa***e voice channel a
s ***e!",
        "footer": "So***ething went wrong :(",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:16:32
    
    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in the sa***e voice channel a
s ***e!",
        "footer": "So***ething went wrong :(",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:16:32
    
    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in the sa***e voice channel a
s ***e!",
        "footer": "So***ething went wrong :(",
      }

    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in the sa***e voice channel a
s ***e!",
        "footer": "So***ething went wrong :(",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:16:32
    
    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in the sa***e voice channel a
s ***e!",
        "footer": "So***ething went wrong :(",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:17:33
    
    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in the sa***e voice channel a
s ***e!",
        "footer": "So***ething went wrong :(",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:17:33
    
    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in the sa***e voice channel a
s ***e!",
        "footer": "So***ething went wrong :(",
      }

    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in the sa***e voice channel a
s ***e!",
        "footer": "So***ething went wrong :(",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:17:33
    
    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in the sa***e voice channel a
s ***e!",
        "footer": "So***ething went wrong :(",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:18:34
    
    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in the sa***e voice channel a
s ***e!",
        "footer": "So***ething went wrong :(",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:18:34
    
    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in the sa***e voice channel a
s ***e!",
        "footer": "So***ething went wrong :(",
      }

    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in the sa***e voice channel a
s ***e!",
        "footer": "So***ething went wrong :(",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:18:34
    
    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in the sa***e voice channel a
s ***e!",
        "footer": "So***ething went wrong :(",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:19:34
    
    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in the sa***e voice channel a
s ***e!",
        "footer": "So***ething went wrong :(",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:19:34
    
    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in the sa***e voice channel a
s ***e!",
        "footer": "So***ething went wrong :(",
      }

    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in the sa***e voice channel a
s ***e!",
        "footer": "So***ething went wrong :(",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:19:34
    
    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in the sa***e voice channel a
s ***e!",
        "footer": "So***ething went wrong :(",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:20:35
    
    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in the sa***e voice channel a
s ***e!",
        "footer": "So***ething went wrong :(",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:20:35
    
    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in the sa***e voice channel a
s ***e!",
        "footer": "So***ething went wrong :(",
      }

    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in the sa***e voice channel a
s ***e!",
        "footer": "So***ething went wrong :(",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:20:35
    
    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in the sa***e voice channel a
s ***e!",
        "footer": "So***ething went wrong :(",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:21:32
    
    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in the sa***e voice channel a
s ***e!",
        "footer": "So***ething went wrong :(",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:21:32
    
    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in the sa***e voice channel a
s ***e!",
        "footer": "So***ething went wrong :(",
      }

    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in the sa***e voice channel a
s ***e!",
        "footer": "So***ething went wrong :(",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:21:32
    
    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in the sa***e voice channel a
s ***e!",
        "footer": "So***ething went wrong :(",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:22:36
    
    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in the sa***e voice channel a
s ***e!",
        "footer": "So***ething went wrong :(",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:22:36
    
    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in the sa***e voice channel a
s ***e!",
        "footer": "So***ething went wrong :(",
      }

    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in the sa***e voice channel a
s ***e!",
        "footer": "So***ething went wrong :(",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:22:36
    
    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in the sa***e voice channel a
s ***e!",
        "footer": "So***ething went wrong :(",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:23:32
    
    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in the sa***e voice channel a
s ***e!",
        "footer": "So***ething went wrong :(",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:23:32
    
    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in the sa***e voice channel a
s ***e!",
        "footer": "So***ething went wrong :(",
      }

    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in the sa***e voice channel a
s ***e!",
        "footer": "So***ething went wrong :(",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:23:32
    
    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in the sa***e voice channel a
s ***e!",
        "footer": "So***ething went wrong :(",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:24:34
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in the sa***e voice channel a
s ***e!",
        "footer": "So***ething went wrong :(",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:23:32
    
    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in the sa***e voice channel a
s ***e!",
        "footer": "So***ething went wrong :(",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:24:34
   ● various co***ands should return novc
(node:1656) MaxListenersExceededWarning: Possible EventE***itter ***e***ory leak detected. 12 unhandledRejection listeners added to [process]. Use e***itter.setMaxListeners() to increase li***it
(Use `node --trace-warnings ...` to show where the warning was created)
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in the sa***e voice channel a
s ***e!",
        "footer": "So***ething went wrong :(",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:23:32
    
    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in the sa***e voice channel a
s ***e!",
        "footer": "So***ething went wrong :(",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:24:34
   x ***usic co***ands -> various co***ands should return novc   6.369s
    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in the sa***e voice channel a
s ***e!",
        "footer": "So***ething went wrong :(",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:24:34
   x ***usic co***ands -> various co***ands should return novc   6.369s
    
    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in a voice channel to play 
***usic!",
        "footer": "So***ething went wrong :(",
      }

    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in the sa***e voice channel a
s ***e!",
        "footer": "So***ething went wrong :(",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:24:34
   x ***usic co***ands -> various co***ands should return novc   6.369s
    
    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in a voice channel to play 
***usic!",
        "footer": "So***ething went wrong :(",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:32:33
    
    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in a voice channel to play 
***usic!",
        "footer": "So***ething went wrong :(",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:32:33
    
    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in a voice channel to play 
***usic!",
        "footer": "So***ething went wrong :(",
      }

    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in a voice channel to play 
***usic!",
        "footer": "So***ething went wrong :(",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:32:33
    
    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in a voice channel to play 
***usic!",
        "footer": "So***ething went wrong :(",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:33:32
    
    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in a voice channel to play 
***usic!",
        "footer": "So***ething went wrong :(",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:33:32
    
    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in a voice channel to play 
***usic!",
        "footer": "So***ething went wrong :(",
      }

    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in a voice channel to play 
***usic!",
        "footer": "So***ething went wrong :(",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:33:32
    
    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in a voice channel to play 
***usic!",
        "footer": "So***ething went wrong :(",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:34:36
    
    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in a voice channel to play 
***usic!",
        "footer": "So***ething went wrong :(",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:34:36
    
    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in a voice channel to play 
***usic!",
        "footer": "So***ething went wrong :(",
      }

    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in a voice channel to play 
***usic!",
        "footer": "So***ething went wrong :(",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:34:36
    
    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in a voice channel to play 
***usic!",
        "footer": "So***ething went wrong :(",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:35:33
    
    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in a voice channel to play 
***usic!",
        "footer": "So***ething went wrong :(",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:35:33
    
    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in a voice channel to play 
***usic!",
        "footer": "So***ething went wrong :(",
      }

    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in a voice channel to play 
***usic!",
        "footer": "So***ething went wrong :(",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:35:33
    
    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in a voice channel to play 
***usic!",
        "footer": "So***ething went wrong :(",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:36:34
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in a voice channel to play 
***usic!",
        "footer": "So***ething went wrong :(",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:35:33
    
    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in a voice channel to play 
***usic!",
        "footer": "So***ething went wrong :(",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:36:34
   ● count
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in a voice channel to play 
***usic!",
        "footer": "So***ething went wrong :(",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:35:33
    
    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in a voice channel to play 
***usic!",
        "footer": "So***ething went wrong :(",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:36:34
   x ***ainco***ands -> count   5.592s
    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in a voice channel to play 
***usic!",
        "footer": "So***ething went wrong :(",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:36:34
   x ***ainco***ands -> count   5.592s
    
    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 16776960,
    +   "color": "YELLOW",
        "description": "The Bot is currently in 2 Servers",
        "footer": "Use ***invite to add/invite the Bot to your server",
      }

    + Received  + 1
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in a voice channel to play 
***usic!",
        "footer": "So***ething went wrong :(",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:36:34
   x ***ainco***ands -> count   5.592s
    
    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 16776960,
    +   "color": "YELLOW",
        "description": "The Bot is currently in 2 Servers",
        "footer": "Use ***invite to add/invite the Bot to your server",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:46:33
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in a voice channel to play 
***usic!",
        "footer": "So***ething went wrong :(",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:36:34
   x ***ainco***ands -> count   5.592s
    
    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 16776960,
    +   "color": "YELLOW",
        "description": "The Bot is currently in 2 Servers",
        "footer": "Use ***invite to add/invite the Bot to your server",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:46:33
   ● invite
    
      Object {
    -   "color": 15158332,
    +   "color": "RED",
        "description": "I'*** sorry but you need to be in a voice channel to play 
***usic!",
        "footer": "So***ething went wrong :(",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:36:34
   x ***ainco***ands -> count   5.592s
    
    - Expected  - 1
    + Received  + 1
    
      Object {
    -   "color": 16776960,
    +   "color": "YELLOW",
        "description": "The Bot is currently in 2 Servers",
        "footer": "Use ***invite to add/invite the Bot to your server",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:46:33
   x ***ainco***ands -> invite   194***s
    -   "color": 16776960,
    +   "color": "YELLOW",
        "description": "The Bot is currently in 2 Servers",
        "footer": "Use ***invite to add/invite the Bot to your server",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:46:33
   x ***ainco***ands -> invite   194***s
    
    - Expected  - 3
    + Received  + 2
    
      Object {
    -   "color": 3447003,
    +   "color": "BLUE",
        "description": "Want ***e in your server? Invite ***e today! 
    
    -  [Invite Link](https://discord.co***/oauth2/authorize?client_id=782025757374
283796&per***issions=2205281600&scope=bot)",
    +  [Invite Link](https://discord.co***/oauth2/authorize?client_id=782025757374
2837966&per***issions=2205281600&scope=bot)",
        "title": "Invite kaaaxTest",
    -   "url": "https://discord.co***/oauth2/authorize?client_id=78202575737428379
6&per***issions=2205281600&scope=bot",
      }

    +   "color": "YELLOW",
        "description": "The Bot is currently in 2 Servers",
        "footer": "Use ***invite to add/invite the Bot to your server",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:46:33
   x ***ainco***ands -> invite   194***s
    
    - Expected  - 3
    + Received  + 2
    
      Object {
    -   "color": 3447003,
    +   "color": "BLUE",
        "description": "Want ***e in your server? Invite ***e today! 
    
    -  [Invite Link](https://discord.co***/oauth2/authorize?client_id=782025757374
283796&per***issions=2205281600&scope=bot)",
    +  [Invite Link](https://discord.co***/oauth2/authorize?client_id=782025757374
2837966&per***issions=2205281600&scope=bot)",
        "title": "Invite kaaaxTest",
    -   "url": "https://discord.co***/oauth2/authorize?client_id=78202575737428379
6&per***issions=2205281600&scope=bot",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:56:34
        "description": "The Bot is currently in 2 Servers",
        "footer": "Use ***invite to add/invite the Bot to your server",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:46:33
   x ***ainco***ands -> invite   194***s
    
    - Expected  - 3
    + Received  + 2
    
      Object {
    -   "color": 3447003,
    +   "color": "BLUE",
        "description": "Want ***e in your server? Invite ***e today! 
    
    -  [Invite Link](https://discord.co***/oauth2/authorize?client_id=782025757374
283796&per***issions=2205281600&scope=bot)",
    +  [Invite Link](https://discord.co***/oauth2/authorize?client_id=782025757374
2837966&per***issions=2205281600&scope=bot)",
        "title": "Invite kaaaxTest",
    -   "url": "https://discord.co***/oauth2/authorize?client_id=78202575737428379
6&per***issions=2205281600&scope=bot",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:56:34
   ● test didyou***ean suggestion
        "description": "The Bot is currently in 2 Servers",
        "footer": "Use ***invite to add/invite the Bot to your server",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:46:33
   x ***ainco***ands -> invite   194***s
    
    - Expected  - 3
    + Received  + 2
    
      Object {
    -   "color": 3447003,
    +   "color": "BLUE",
        "description": "Want ***e in your server? Invite ***e today! 
    
    -  [Invite Link](https://discord.co***/oauth2/authorize?client_id=782025757374
283796&per***issions=2205281600&scope=bot)",
    +  [Invite Link](https://discord.co***/oauth2/authorize?client_id=782025757374
2837966&per***issions=2205281600&scope=bot)",
        "title": "Invite kaaaxTest",
    -   "url": "https://discord.co***/oauth2/authorize?client_id=78202575737428379
6&per***issions=2205281600&scope=bot",
      }

    at toReturn /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/test/bo
t.test.js:56:34
   x didyou***ean -> test didyou***ean suggestion   230***s
    
    - Expected  - 5
    + Received  + 4
    
      Object {
    -   "color": "DARK_VIVID_PINK",
    +   "color": 11342935,
        "description": "Did you ***ean `play`?",
        "fields": Array [
          Object {
    -       "na***e": "Description",
    +       "inline": false,
    +       "na***e": "Description:",
            "value": "Play a Song",
          },
        ],
    -   "footer": Object {
    -     "text": "kaaaxCorde",
    -   },
    +   "footer": "kaaaxCorde",
        "title": "🤔 didyou***ean",
      }

    - Expected  - 5
    + Received  + 4
    
      Object {
    -   "color": "DARK_VIVID_PINK",
    +   "color": 11342935,
        "description": "Did you ***ean `play`?",
        "fields": Array [
          Object {
    -       "na***e": "Description",
    +       "inline": false,
    +       "na***e": "Description:",
            "value": "Play a Song",
          },
        ],
    -   "footer": Object {
    -     "text": "kaaaxCorde",
    -   },
    +   "footer": "kaaaxCorde",
        "title": "🤔 didyou***ean",
      }

    at toE***bedMatch /ho***e/runner/work/Discord-MusicBot/Discord-MusicBot/dist/tes
t/bot.test.js:70:31

Test Files: 1 failed. 1 total
Tests:      18 failed. 18 total
Ti***e:       20.373s
np*** ERR! code ELIFECYCLE
np*** ERR! errno 1
np*** ERR! discord-***usicbot@1.0.0 test:only: `corde`
np*** ERR! Exit status 1
np*** ERR! 
np*** ERR! Failed at the discord-***usicbot@1.0.0 test:only script.
np*** ERR! This is probably not a proble*** with np***. There is likely additional logging output above.

np*** ERR! A co***plete log of this run can be found in:
np*** ERR!     /ho***e/runner/.np***/_logs/2021-07-01T15_14_55_068Z-debug.log
Error: Process co***pleted with exit code 1