Issue with discord live bot

error that comes up
Repl link:

(node:192) UnhandledPromiseRejectionWarning: ReferenceError: liveSOTWID is not defined
    at /home/runner/LTDSLIVEBOT/index.js:45:63
    at new Promise (<anonymous>)
    at getLiveSOTWRole (/home/runner/LTDSLIVEBOT/index.js:27:12)
    at /home/runner/LTDSLIVEBOT/index.js:66:44
    at Map.forEach (<anonymous>)
    at /home/runner/LTDSLIVEBOT/index.js:57:35
    at Map.forEach (<anonymous>)
    at Timeout._onTimeout (/home/runner/LTDSLIVEBOT/index.js:55:31)
    at listOnTimeout (internal/timers.js:554:17)
    at processTimers (internal/timers.js:497:7)
(node:192) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 72)

Hey @tag welcome to the forums.

Can you please provide us with a link to the repl?

1 Like
(node:3375) UnhandledPromiseRejectionWarning: ReferenceError: liveSOTWID is not defined
    at /home/runner/LTDSLIVEBOT/index.js:45:63
    at new Promise (<anonymous>)
    at getLiveSOTWRole (/home/runner/LTDSLIVEBOT/index.js:27:12)
    at /home/runner/LTDSLIVEBOT/index.js:66:44
    at Map.forEach (<anonymous>)
    at /home/runner/LTDSLIVEBOT/index.js:57:35
    at Map.forEach (<anonymous>)
    at Timeout._onTimeout (/home/runner/LTDSLIVEBOT/index.js:55:31)
    at listOnTimeout (internal/timers.js:554:17)
(node:3375) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 46)
(node:3375) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:3375) UnhandledPromiseRejectionWarning: No tiers found for RootsManTv [426885613732757514
(node:3375) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 47)
(node:3375) UnhandledPromiseRejectionWarning: No tiers found for 乂乙乇å°ŗć„–ä¹‚ [990803627570499584
(node:3375) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 48)
(node:3375) UnhandledPromiseRejectionWarning: ReferenceError: liveSOTWID is not defined
    at /home/runner/LTDSLIVEBOT/index.js:45:63
    at new Promise (<anonymous>)
    at getLiveSOTWRole (/home/runner/LTDSLIVEBOT/index.js:27:12)
    at /home/runner/LTDSLIVEBOT/index.js:66:44
    at Map.forEach (<anonymous>)
    at /home/runner/LTDSLIVEBOT/index.js:57:35
    at Map.forEach (<anonymous>)
    at Timeout._onTimeout (/home/runner/LTDSLIVEBOT/index.js:55:31)
    at listOnTimeout (internal/timers.js:554:17)
(node:3375) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 49)
(node:3375) UnhandledPromiseRejectionWarning: No tiers found for Artā™„RonnieB [775370928561455115
(node:3375) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 50)
(node:3375) UnhandledPromiseRejectionWarning: ReferenceError: liveSOTWID is not defined
    at /home/runner/LTDSLIVEBOT/index.js:45:63
    at new Promise (<anonymous>)
    at getLiveSOTWRole (/home/runner/LTDSLIVEBOT/index.js:27:12)
    at /home/runner/LTDSLIVEBOT/index.js:66:44
    at Map.forEach (<anonymous>)
    at /home/runner/LTDSLIVEBOT/index.js:57:35
    at Map.forEach (<anonymous>)
    at Timeout._onTimeout (/home/runner/LTDSLIVEBOT/index.js:55:31)
    at listOnTimeout (internal/timers.js:554:17)
(node:3375) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 51)
(node:3375) UnhandledPromiseRejectionWarning: No tiers found for Nzan Ametrine [921125688222838854
(node:3375) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 52)
(node:3375) UnhandledPromiseRejectionWarning: No tiers found for Grimripo [241367269916147712
(node:3375) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 53)
(node:3375) UnhandledPromiseRejectionWarning: No tiers found for ralfblan [700265035133354014
(node:3375) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 54)
(node:3375) UnhandledPromiseRejectionWarning: No tiers found for ugur [612060753276436480
(node:3375) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 55)
(node:3375) UnhandledPromiseRejectionWarning: ReferenceError: liveSOTWID is not defined
    at /home/runner/LTDSLIVEBOT/index.js:45:63
    at new Promise (<anonymous>)
    at getLiveSOTWRole (/home/runner/LTDSLIVEBOT/index.js:27:12)
    at /home/runner/LTDSLIVEBOT/index.js:66:44
    at Map.forEach (<anonymous>)
    at /home/runner/LTDSLIVEBOT/index.js:57:35
    at Map.forEach (<anonymous>)
    at Timeout._onTimeout (/home/runner/LTDSLIVEBOT/index.js:55:31)
    at listOnTimeout (internal/timers.js:554:17)
(node:3375) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 56)
(node:3375) UnhandledPromiseRejectionWarning: ReferenceError: liveSOTWID is not defined
    at /home/runner/LTDSLIVEBOT/index.js:45:63
    at new Promise (<anonymous>)
    at getLiveSOTWRole (/home/runner/LTDSLIVEBOT/index.js:27:12)
    at /home/runner/LTDSLIVEBOT/index.js:66:44
    at Map.forEach (<anonymous>)
    at /home/runner/LTDSLIVEBOT/index.js:57:35
    at Map.forEach (<anonymous>)
    at Timeout._onTimeout (/home/runner/LTDSLIVEBOT/index.js:55:31)
    at listOnTimeout (internal/timers.js:554:17)
(node:3375) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 57)
(node:3375) UnhandledPromiseRejectionWarning: No tiers found for the GIFman [162630017510146048
(node:3375) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 58)
(node:3375) UnhandledPromiseRejectionWarning: No tiers found for Nakuria [273971004995272706
(node:3375) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 59)
(node:3375) UnhandledPromiseRejectionWarning: No tiers found for JAGLeisure [455593737121431552
(node:3375) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 60)
(node:3375) UnhandledPromiseRejectionWarning: No tiers found for ResoluteMaverik [343914856543682560
(node:3375) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 61)
(node:3375) UnhandledPromiseRejectionWarning: No tiers found for Jester [484144181166604329
(node:3375) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 62)
(node:3375) UnhandledPromiseRejectionWarning: No tiers found for Tenshi [189725097068593153
(node:3375) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 63)
(node:3375) UnhandledPromiseRejectionWarning: No tiers found for Exile In Mudville [381533216986759168
(node:3375) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 64)
(node:3375) UnhandledPromiseRejectionWarning: ReferenceError: liveSOTWID is not defined
    at /home/runner/LTDSLIVEBOT/index.js:45:63
    at new Promise (<anonymous>)
    at getLiveSOTWRole (/home/runner/LTDSLIVEBOT/index.js:27:12)
    at /home/runner/LTDSLIVEBOT/index.js:66:44
    at Map.forEach (<anonymous>)
    at /home/runner/LTDSLIVEBOT/index.js:57:35
    at Map.forEach (<anonymous>)
    at Timeout._onTimeout (/home/runner/LTDSLIVEBOT/index.js:55:31)
    at listOnTimeout (internal/timers.js:554:17)
(node:3375) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 65)
(node:3375) UnhandledPromiseRejectionWarning: No tiers found for DertyNeedles [770748868459626566
(node:3375) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 66)
(node:3375) UnhandledPromiseRejectionWarning: ReferenceError: liveSOTWID is not defined
    at /home/runner/LTDSLIVEBOT/index.js:45:63
    at new Promise (<anonymous>)
    at getLiveSOTWRole (/home/runner/LTDSLIVEBOT/index.js:27:12)
    at /home/runner/LTDSLIVEBOT/index.js:66:44
    at Map.forEach (<anonymous>)
    at /home/runner/LTDSLIVEBOT/index.js:57:35
    at Map.forEach (<anonymous>)
    at Timeout._onTimeout (/home/runner/LTDSLIVEBOT/index.js:55:31)
    at listOnTimeout (internal/timers.js:554:17)
(node:3375) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 67)
(node:3375) UnhandledPromiseRejectionWarning: No tiers found for Tyton23 [716450481723146302
(node:3375) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 68)
(node:3375) UnhandledPromiseRejectionWarning: No tiers found for F!5H [179315716204265473
(node:3375) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 69)
(node:3375) UnhandledPromiseRejectionWarning: No tiers found for coffeeshopsnakes [1001416699893006346
(node:3375) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 70)
(node:3375) UnhandledPromiseRejectionWarning: No tiers found for Jarrett0611 [535870280032059402
(node:3375) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 71)
(node:3375) UnhandledPromiseRejectionWarning: No tiers found for Jabar [393061258020126722
(node:3375) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 72)
(node:3375) UnhandledPromiseRejectionWarning: ReferenceError: liveSOTWID is not defined
    at /home/runner/LTDSLIVEBOT/index.js:45:63
    at new Promise (<anonymous>)
    at getLiveSOTWRole (/home/runner/LTDSLIVEBOT/index.js:27:12)
    at /home/runner/LTDSLIVEBOT/index.js:66:44
    at Map.forEach (<anonymous>)
    at /home/runner/LTDSLIVEBOT/index.js:57:35
    at Map.forEach (<anonymous>)
    at Timeout._onTimeout (/home/runner/LTDSLIVEBOT/index.js:55:31)
    at listOnTimeout (internal/timers.js:554:17)
(node:3375) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 73)
(node:3375) UnhandledPromiseRejectionWarning: ReferenceError: liveSOTWID is not defined
    at /home/runner/LTDSLIVEBOT/index.js:45:63
    at new Promise (<anonymous>)
    at getLiveSOTWRole (/home/runner/LTDSLIVEBOT/index.js:27:12)
    at /home/runner/LTDSLIVEBOT/index.js:66:44
    at Map.forEach (<anonymous>)
    at /home/runner/LTDSLIVEBOT/index.js:57:35
    at Map.forEach (<anonymous>)
    at Timeout._onTimeout (/home/runner/LTDSLIVEBOT/index.js:55:31)
    at listOnTimeout (internal/timers.js:554:17)
(node:3375) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 74)
(node:3375) UnhandledPromiseRejectionWarning: No tiers found for DragonSenpai126 [353430896000368640
(node:3375) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 75)
(node:3375) UnhandledPromiseRejectionWarning: No tiers found for Alextria [396476874668113930
(node:3375) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 76)
(node:3375) UnhandledPromiseRejectionWarning: ReferenceError: liveSOTWID is not defined
    at /home/runner/LTDSLIVEBOT/index.js:45:63
    at new Promise (<anonymous>)
    at getLiveSOTWRole (/home/runner/LTDSLIVEBOT/index.js:27:12)
    at /home/runner/LTDSLIVEBOT/index.js:66:44
    at Map.forEach (<anonymous>)
    at /home/runner/LTDSLIVEBOT/index.js:57:35
    at Map.forEach (<anonymous>)
    at Timeout._onTimeout (/home/runner/LTDSLIVEBOT/index.js:55:31)
    at listOnTimeout (internal/timers.js:554:17)
(node:3375) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 77)
(node:3375) UnhandledPromiseRejectionWarning: No tiers found for Mochii [611000379588608000
(node:3375) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 78)
(node:3375) UnhandledPromiseRejectionWarning: No tiers found for Speedz [388807086240170002
(node:3375) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 79)
(node:3375) UnhandledPromiseRejectionWarning: No tiers found for NinesNormal [200029391089172480
(node:3375) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 80)
(node:3375) UnhandledPromiseRejectionWarning: No tiers found for kyzix [142114057808379905
(node:3375) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 81)
(node:3375) UnhandledPromiseRejectionWarning: No tiers found for Ghosted [437227016174174208
(node:3375) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 82)
(node:3375) UnhandledPromiseRejectionWarning: No tiers found for VitulineTVCAD šŸ [370337877923725334
(node:3375) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 83)
(node:3375) UnhandledPromiseRejectionWarning: ReferenceError: liveSOTWID is not defined
    at /home/runner/LTDSLIVEBOT/index.js:45:63
    at new Promise (<anonymous>)
    at getLiveSOTWRole (/home/runner/LTDSLIVEBOT/index.js:27:12)
    at /home/runner/LTDSLIVEBOT/index.js:66:44
    at Map.forEach (<anonymous>)
    at /home/runner/LTDSLIVEBOT/index.js:57:35
    at Map.forEach (<anonymous>)
    at Timeout._onTimeout (/home/runner/LTDSLIVEBOT/index.js:55:31)
    at listOnTimeout (internal/timers.js:554:17)
(node:3375) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 84)
(node:3375) UnhandledPromiseRejectionWarning: ReferenceError: liveSOTWID is not defined
    at /home/runner/LTDSLIVEBOT/index.js:45:63
    at new Promise (<anonymous>)
    at getLiveSOTWRole (/home/runner/LTDSLIVEBOT/index.js:27:12)
    at /home/runner/LTDSLIVEBOT/index.js:66:44
    at Map.forEach (<anonymous>)
    at /home/runner/LTDSLIVEBOT/index.js:57:35
    at Map.forEach (<anonymous>)
    at Timeout._onTimeout (/home/runner/LTDSLIVEBOT/index.js:55:31)
    at listOnTimeout (internal/timers.js:554:17)
(node:3375) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 85)
(node:3375) UnhandledPromiseRejectionWarning: ReferenceError: liveSOTWID is not defined
    at /home/runner/LTDSLIVEBOT/index.js:45:63
    at new Promise (<anonymous>)
    at getLiveSOTWRole (/home/runner/LTDSLIVEBOT/index.js:27:12)
    at /home/runner/LTDSLIVEBOT/index.js:66:44
    at Map.forEach (<anonymous>)
    at /home/runner/LTDSLIVEBOT/index.js:57:35
    at Map.forEach (<anonymous>)
    at Timeout._onTimeout (/home/runner/LTDSLIVEBOT/index.js:55:31)
    at listOnTimeout (internal/timers.js:554:17)
(node:3375) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 86)
(node:3375) UnhandledPromiseRejectionWarning: ReferenceError: liveSOTWID is not defined
    at /home/runner/LTDSLIVEBOT/index.js:45:63
    at new Promise (<anonymous>)
    at getLiveSOTWRole (/home/runner/LTDSLIVEBOT/index.js:27:12)
    at /home/runner/LTDSLIVEBOT/index.js:66:44
    at Map.forEach (<anonymous>)
    at /home/runner/LTDSLIVEBOT/index.js:57:35
    at Map.forEach (<anonymous>)
    at Timeout._onTimeout (/home/runner/LTDSLIVEBOT/index.js:55:31)
    at listOnTimeout (internal/timers.js:554:17)
(node:3375) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 87)
(node:3375) UnhandledPromiseRejectionWarning: ReferenceError: liveSOTWID is not defined
    at /home/runner/LTDSLIVEBOT/index.js:45:63
    at new Promise (<anonymous>)
    at getLiveSOTWRole (/home/runner/LTDSLIVEBOT/index.js:27:12)
    at /home/runner/LTDSLIVEBOT/index.js:66:44
    at Map.forEach (<anonymous>)
    at /home/runner/LTDSLIVEBOT/index.js:57:35
    at Map.forEach (<anonymous>)
    at Timeout._onTimeout (/home/runner/LTDSLIVEBOT/index.js:55:31)
    at listOnTimeout (internal/timers.js:554:17)
(node:3375) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 88)
(node:3375) UnhandledPromiseRejectionWarning: No tiers found for DutchWVS [265867489127301130
(node:3375) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 89)
(node:3375) UnhandledPromiseRejectionWarning: No tiers found for Bow [738392486313066588
(node:3375) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 90) ```

this what happens at start up
1 Like

its making the roles go live but the issue i seem to be having is that it will not remove the person sometimes from the live role they have put into

1 Like

It looks like you are trying to get the value of a var in its declaration.

1 Like

how would i sort this

1 Like

Wait I misread the code. You are trying to get the value of a variable that has not been defined on line 45.

1 Like

that is the highest role in the list of roles in the discord.

1 Like

so this searches live streamers and gives live role and removes after finished streaming

1 Like

So how would i go about fixing this

1 Like

I do not know. Another member of the community probably does though.

1 Like

Okay thanks for your response and time

1 Like

How would i define liveSOTW that seems to be my issue

1 Like

hi @tag welcome to the community!

When I run the repl it appears to work fine but maybe thatā€™s because the users havenā€™t finished streaming. Itā€™s a tricky one to reproduce as I donā€™t know how it is being used and when the error occurs. Can you explain or post a short video showing the error?

1 Like

Hey there @tag. Do not send repl invite links on public websites such as this, as that allows anyone to gain access to your repl and potentially mess with it. When someone asks for a link to your repl, make sure itā€™s public and then just send the url that appears in your address bar at the top of the screen.

1 Like

It seems to run fine but then will not unlink some people from the live role it has given them on discord

1 Like