Advertisement
Guest User

Untitled

a guest
Sep 15th, 2019
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 35.86 KB | None | 0 0
  1. Windows PowerShell
  2. Copyright (C) Microsoft Corporation. All rights reserved.
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20. node bot.js
  21. Bot has started, with 23 users, in 26 channels of 1 guilds.
  22. Playing game set
  23. PS C:\Users\rowan\Desktop\CandyMC Discord Bot> node bot.js
  24. C:\Users\rowan\Desktop\CandyMC Discord Bot\bot.js:113
  25. client.on("message", =>{
  26. ^^
  27.  
  28. SyntaxError: Unexpected token =>
  29. at Module._compile (internal/modules/cjs/loader.js:723:23)
  30. at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
  31. at Module.load (internal/modules/cjs/loader.js:653:32)
  32. at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
  33. at Function.Module._load (internal/modules/cjs/loader.js:585:3)
  34. at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
  35. at startup (internal/bootstrap/node.js:283:19)
  36. at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
  37. PS C:\Users\rowan\Desktop\CandyMC Discord Bot> ^C
  38. PS C:\Users\rowan\Desktop\CandyMC Discord Bot> node bot.js
  39. C:\Users\rowan\Desktop\CandyMC Discord Bot\bot.js:113
  40. client.on("message", => {
  41. ^^
  42.  
  43. SyntaxError: Unexpected token =>
  44. at Module._compile (internal/modules/cjs/loader.js:723:23)
  45. at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
  46. at Module.load (internal/modules/cjs/loader.js:653:32)
  47. at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
  48. at Function.Module._load (internal/modules/cjs/loader.js:585:3)
  49. at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
  50. at startup (internal/bootstrap/node.js:283:19)
  51. at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
  52. PS C:\Users\rowan\Desktop\CandyMC Discord Bot>
  53. PS C:\Users\rowan\Desktop\CandyMC Discord Bot>
  54. PS C:\Users\rowan\Desktop\CandyMC Discord Bot> node bot.js
  55. C:\Users\rowan\Desktop\CandyMC Discord Bot\bot.js:115
  56. const m = await message.channel.send("Ping?");
  57. ^^^^^
  58.  
  59. SyntaxError: await is only valid in async function
  60. at Module._compile (internal/modules/cjs/loader.js:723:23)
  61. at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
  62. at Module.load (internal/modules/cjs/loader.js:653:32)
  63. at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
  64. at Function.Module._load (internal/modules/cjs/loader.js:585:3)
  65. at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
  66. at startup (internal/bootstrap/node.js:283:19)
  67. at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
  68. PS C:\Users\rowan\Desktop\CandyMC Discord Bot> ^C
  69. PS C:\Users\rowan\Desktop\CandyMC Discord Bot> node bot.js
  70. Bot has started, with 23 users, in 26 channels of 1 guilds.
  71. Playing game set
  72. C:\Users\rowan\Desktop\CandyMC Discord Bot\bot.js:115
  73. message.channel.send("Pong!")
  74. ^
  75.  
  76. ReferenceError: message is not defined
  77. at Client.client.on.msg (C:\Users\rowan\Desktop\CandyMC Discord Bot\bot.js:115:9)
  78. at Client.emit (events.js:203:15)
  79. at MessageCreateHandler.handle (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\packets\handlers\MessageCreate.js:9:34)
  80. at WebSocketPacketManager.handle (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\packets\WebSocketPacketManager.js:105:65)
  81. at WebSocketConnection.onPacket (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:333:35)
  82. at WebSocketConnection.onMessage (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:296:17)
  83. at WebSocket.onMessage (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\ws\lib\event-target.js:120:16)
  84. at WebSocket.emit (events.js:198:13)
  85. at Receiver.receiverOnMessage (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\ws\lib\websocket.js:789:20)
  86. at Receiver.emit (events.js:198:13)
  87. PS C:\Users\rowan\Desktop\CandyMC Discord Bot> ^C
  88. PS C:\Users\rowan\Desktop\CandyMC Discord Bot> node bot.js
  89. Bot has started, with 23 users, in 26 channels of 1 guilds.
  90. Playing game set
  91. C:\Users\rowan\Desktop\CandyMC Discord Bot\bot.js:115
  92. message.channel.send("Pong!");
  93. ^
  94.  
  95. ReferenceError: message is not defined
  96. at Client.client.on.msg (C:\Users\rowan\Desktop\CandyMC Discord Bot\bot.js:115:9)
  97. at Client.emit (events.js:203:15)
  98. at MessageCreateHandler.handle (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\packets\handlers\MessageCreate.js:9:34)
  99. at WebSocketPacketManager.handle (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\packets\WebSocketPacketManager.js:105:65)
  100. at WebSocketConnection.onPacket (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:333:35)
  101. at WebSocketConnection.onMessage (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:296:17)
  102. at WebSocket.onMessage (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\ws\lib\event-target.js:120:16)
  103. at WebSocket.emit (events.js:198:13)
  104.  
  105. at Receiver.receiverOnMessage (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\ws\lib\websocket.js:789:20)
  106. at Receiver.emit (events.js:198:13)
  107. PS C:\Users\rowan\Desktop\CandyMC Discord Bot> ^C
  108. PS C:\Users\rowan\Desktop\CandyMC Discord Bot> node bot.js
  109. Bot has started, with 23 users, in 26 channels of 1 guilds.
  110. Playing game set
  111. PS C:\Users\rowan\Desktop\CandyMC Discord Bot> node bot.js
  112. Bot has started, with 23 users, in 26 channels of 1 guilds.
  113. Playing game set
  114. PS C:\Users\rowan\Desktop\CandyMC Discord Bot> node bot.js
  115. Bot has started, with 23 users, in 26 channels of 1 guilds.
  116. Playing game set
  117. (node:13916) UnhandledPromiseRejectionWarning: ReferenceError: message is not defined
  118. at Client.client.on (C:\Users\rowan\Desktop\CandyMC Discord Bot\bot.js:121:5)
  119. at Client.emit (events.js:203:15)
  120. at MessageCreateHandler.handle (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\packets\handlers\MessageCreate.js:9:34)
  121. at WebSocketPacketManager.handle (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\packets\WebSocketPacketManager.js:105:65)
  122. at WebSocketConnection.onPacket (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:333:35)
  123. at WebSocketConnection.onMessage (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:296:17)
  124. at WebSocket.onMessage (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\ws\lib\event-target.js:120:16)
  125. at WebSocket.emit (events.js:198:13)
  126. at Receiver.receiverOnMessage (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\ws\lib\websocket.js:789:20)
  127. at Receiver.emit (events.js:198:13)
  128. (node:13916) 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(). (rejection id: 1)
  129. (node:13916) [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.
  130. PS C:\Users\rowan\Desktop\CandyMC Discord Bot> node bot.js
  131. Bot has started, with 23 users, in 26 channels of 1 guilds.
  132. Playing game set
  133. PS C:\Users\rowan\Desktop\CandyMC Discord Bot> node bot.js
  134. C:\Users\rowan\Desktop\CandyMC Discord Bot\bot.js:157
  135. .setTitle("")
  136. ^
  137.  
  138. SyntaxError: Unexpected token .
  139. at Module._compile (internal/modules/cjs/loader.js:723:23)
  140. at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
  141. at Module.load (internal/modules/cjs/loader.js:653:32)
  142. at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
  143. at Function.Module._load (internal/modules/cjs/loader.js:585:3)
  144. at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
  145. at startup (internal/bootstrap/node.js:283:19)
  146. at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
  147. PS C:\Users\rowan\Desktop\CandyMC Discord Bot> ^C
  148. PS C:\Users\rowan\Desktop\CandyMC Discord Bot> node bot.js
  149. Bot has started, with 23 users, in 26 channels of 1 guilds.
  150. Playing game set
  151. C:\Users\rowan\Desktop\CandyMC Discord Bot\bot.js:143
  152. message.reply("Title: " + title + " Message:" + message)
  153. ^
  154.  
  155. TypeError: message.reply is not a function
  156. at MessageCollector.titleCollector.on.message (C:\Users\rowan\Desktop\CandyMC Discord Bot\bot.js:143:25)
  157. at MessageCollector.emit (events.js:203:15)
  158. at MessageCollector._handle (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\structures\interfaces\Collector.js:92:10)
  159. at Client.emit (events.js:203:15)
  160. at MessageCreateHandler.handle (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\packets\handlers\MessageCreate.js:9:34)
  161. at WebSocketPacketManager.handle (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\packets\WebSocketPacketManager.js:105:65)
  162. at WebSocketConnection.onPacket (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:333:35)
  163. at WebSocketConnection.onMessage (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:296:17)
  164. at WebSocket.onMessage (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\ws\lib\event-target.js:120:16)
  165. at WebSocket.emit (events.js:198:13)
  166. PS C:\Users\rowan\Desktop\CandyMC Discord Bot> ^C
  167. PS C:\Users\rowan\Desktop\CandyMC Discord Bot> node bot.js
  168. Bot has started, with 23 users, in 26 channels of 1 guilds.
  169. Playing game set
  170. PS C:\Users\rowan\Desktop\CandyMC Discord Bot> node bot.js
  171. C:\Users\rowan\Desktop\CandyMC Discord Bot\bot.js:181
  172. }
  173. ^
  174.  
  175. SyntaxError: Unexpected token }
  176. at Module._compile (internal/modules/cjs/loader.js:723:23)
  177. at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
  178. at Module.load (internal/modules/cjs/loader.js:653:32)
  179. at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
  180. at Function.Module._load (internal/modules/cjs/loader.js:585:3)
  181. at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
  182. at startup (internal/bootstrap/node.js:283:19)
  183. at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
  184. PS C:\Users\rowan\Desktop\CandyMC Discord Bot> node bot.js
  185. internal/modules/cjs/loader.js:638
  186. throw err;
  187. ^
  188.  
  189. Error: Cannot find module 'request'
  190. at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
  191. at Function.Module._load (internal/modules/cjs/loader.js:562:25)
  192. at Module.require (internal/modules/cjs/loader.js:692:17)
  193. at require (internal/modules/cjs/helpers.js:25:18)
  194. at Object.<anonymous> (C:\Users\rowan\Desktop\CandyMC Discord Bot\bot.js:3:15)
  195. at Module._compile (internal/modules/cjs/loader.js:778:30)
  196. at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
  197. at Module.load (internal/modules/cjs/loader.js:653:32)
  198. at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
  199. at Function.Module._load (internal/modules/cjs/loader.js:585:3)
  200. PS C:\Users\rowan\Desktop\CandyMC Discord Bot> node bot.js
  201. internal/modules/cjs/loader.js:638
  202. throw err;
  203. ^
  204.  
  205. Error: Cannot find module 'request'
  206. at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
  207. at Function.Module._load (internal/modules/cjs/loader.js:562:25)
  208. at Module.require (internal/modules/cjs/loader.js:692:17)
  209. at require (internal/modules/cjs/helpers.js:25:18)
  210. at Object.<anonymous> (C:\Users\rowan\Desktop\CandyMC Discord Bot\bot.js:3:15)
  211. at Module._compile (internal/modules/cjs/loader.js:778:30)
  212. at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
  213. at Module.load (internal/modules/cjs/loader.js:653:32)
  214. at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
  215. at Function.Module._load (internal/modules/cjs/loader.js:585:3)
  216. PS C:\Users\rowan\Desktop\CandyMC Discord Bot> npm install requets
  217. Terminate batch job (Y/N)? ty
  218. Terminate batch job (Y/N)? t
  219. Terminate batch job (Y/N)? y
  220. PS C:\Users\rowan\Desktop\CandyMC Discord Bot> npm install request
  221. npm WARN discord.js@11.5.1 requires a peer of bufferutil@^4.0.0 but none is installed. You must install peer dependencies yourself.
  222. npm WARN discord.js@11.5.1 requires a peer of erlpack@discordapp/erlpack but none is installed. You must install peer dependencies yourself.
  223. npm WARN discord.js@11.5.1 requires a peer of libsodium-wrappers@^0.7.3 but none is installed. You must install peer dependencies yourself.
  224. npm WARN discord.js@11.5.1 requires a peer of node-opus@^0.2.7 but none is installed. You must install peer dependencies yourself.
  225. npm WARN discord.js@11.5.1 requires a peer of opusscript@^0.0.6 but none is installed. You must install peer dependencies yourself.
  226. npm WARN discord.js@11.5.1 requires a peer of sodium@^2.0.3 but none is installed. You must install peer dependencies yourself.
  227. npm WARN discord.js@11.5.1 requires a peer of @discordjs/uws@^10.149.0 but none is installed. You must install peer dependencies yourself.
  228. npm WARN candymcbot@1.0.0 No description
  229. npm WARN candymcbot@1.0.0 No repository field.
  230. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules\fsevents):
  231. npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
  232.  
  233. + request@2.88.0
  234. added 47 packages from 58 contributors and audited 2339 packages in 5.357s
  235. found 0 vulnerabilities
  236.  
  237. PS C:\Users\rowan\Desktop\CandyMC Discord Bot> node bot.js
  238. Bot has started, with 23 users, in 26 channels of 1 guilds.
  239. Playing game set
  240. (node:16036) UnhandledPromiseRejectionWarning: TypeError: Assignment to constant variable.
  241. at Client.client.on (C:\Users\rowan\Desktop\CandyMC Discord Bot\bot.js:179:18)
  242. at Client.emit (events.js:203:15)
  243. at MessageCreateHandler.handle (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\packets\handlers\MessageCreate.js:9:34)
  244. at WebSocketPacketManager.handle (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\packets\WebSocketPacketManager.js:105:65)
  245. at WebSocketConnection.onPacket (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:333:35)
  246. at WebSocketConnection.onMessage (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:296:17)
  247. at WebSocket.onMessage (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\ws\lib\event-target.js:120:16)
  248. at WebSocket.emit (events.js:198:13)
  249. at Receiver.receiverOnMessage (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\ws\lib\websocket.js:789:20)
  250. at Receiver.emit (events.js:198:13)
  251. (node:16036) 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(). (rejection id: 1)
  252. (node:16036) [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.
  253. (node:16036) UnhandledPromiseRejectionWarning: TypeError: Assignment to constant variable.
  254. at Client.client.on (C:\Users\rowan\Desktop\CandyMC Discord Bot\bot.js:179:18)
  255. at Client.emit (events.js:203:15)
  256. at MessageCreateHandler.handle (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\packets\handlers\MessageCreate.js:9:34)
  257. at WebSocketPacketManager.handle (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\packets\WebSocketPacketManager.js:105:65)
  258. at WebSocketConnection.onPacket (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:333:35)
  259. at WebSocketConnection.onMessage (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:296:17)
  260. at WebSocket.onMessage (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\ws\lib\event-target.js:120:16)
  261. at WebSocket.emit (events.js:198:13)
  262. at Receiver.receiverOnMessage (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\ws\lib\websocket.js:789:20)
  263. at Receiver.emit (events.js:198:13)
  264. (node:16036) 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(). (rejection id: 2)
  265. PS C:\Users\rowan\Desktop\CandyMC Discord Bot> node bot.js
  266. Bot has started, with 23 users, in 26 channels of 1 guilds.
  267. Playing game set
  268. (node:14596) UnhandledPromiseRejectionWarning: TypeError: Assignment to constant variable.
  269. at Client.client.on (C:\Users\rowan\Desktop\CandyMC Discord Bot\bot.js:179:18)
  270. at Client.emit (events.js:203:15)
  271. at MessageCreateHandler.handle (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\packets\handlers\MessageCreate.js:9:34)
  272. at WebSocketPacketManager.handle (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\packets\WebSocketPacketManager.js:105:65)
  273. at WebSocketConnection.onPacket (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:333:35)
  274. at WebSocketConnection.onMessage (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:296:17)
  275. at WebSocket.onMessage (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\ws\lib\event-target.js:120:16)
  276. at WebSocket.emit (events.js:198:13)
  277. at Receiver.receiverOnMessage (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\ws\lib\websocket.js:789:20)
  278. at Receiver.emit (events.js:198:13)
  279. (node:14596) 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(). (rejection id: 1)
  280. (node:14596) [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.
  281. PS C:\Users\rowan\Desktop\CandyMC Discord Bot> node bot.js
  282. Bot has started, with 23 users, in 26 channels of 1 guilds.
  283. Playing game set
  284. (node:12728) UnhandledPromiseRejectionWarning: TypeError: Assignment to constant variable.
  285. at Client.client.on (C:\Users\rowan\Desktop\CandyMC Discord Bot\bot.js:167:18)
  286. at Client.emit (events.js:203:15)
  287. at MessageCreateHandler.handle (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\packets\handlers\MessageCreate.js:9:34)
  288. at WebSocketPacketManager.handle (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\packets\WebSocketPacketManager.js:105:65)
  289. at WebSocketConnection.onPacket (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:333:35)
  290. at WebSocketConnection.onMessage (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:296:17)
  291. at WebSocket.onMessage (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\ws\lib\event-target.js:120:16)
  292. at WebSocket.emit (events.js:198:13)
  293. at Receiver.receiverOnMessage (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\ws\lib\websocket.js:789:20)
  294. at Receiver.emit (events.js:198:13)
  295. (node:12728) 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(). (rejection id: 1)
  296. (node:12728) [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.
  297. PS C:\Users\rowan\Desktop\CandyMC Discord Bot> node bot.js
  298. Bot has started, with 23 users, in 26 channels of 1 guilds.
  299. Playing game set
  300. PS C:\Users\rowan\Desktop\CandyMC Discord Bot> node bot.js
  301. C:\Users\rowan\Desktop\CandyMC Discord Bot\bot.js:150
  302. "Please provide a number between 2 and 100 for the number of messages to delete");
  303. ^
  304.  
  305. SyntaxError: Unexpected token )
  306. at Module._compile (internal/modules/cjs/loader.js:723:23)
  307. at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
  308. at Module.load (internal/modules/cjs/loader.js:653:32)
  309. at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
  310. at Function.Module._load (internal/modules/cjs/loader.js:585:3)
  311. at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
  312. at startup (internal/bootstrap/node.js:283:19)
  313. at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
  314. PS C:\Users\rowan\Desktop\CandyMC Discord Bot> node bot.js
  315. Bot has started, with 23 users, in 26 channels of 1 guilds.
  316. Playing game set
  317. (node:10020) UnhandledPromiseRejectionWarning: ReferenceError: mommand is not defined
  318. at Client.client.on (C:\Users\rowan\Desktop\CandyMC Discord Bot\bot.js:138:5)
  319. at Client.emit (events.js:203:15)
  320. at MessageCreateHandler.handle (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\packets\handlers\MessageCreate.js:9:34)
  321. at WebSocketPacketManager.handle (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\packets\WebSocketPacketManager.js:105:65)
  322. at WebSocketConnection.onPacket (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:333:35)
  323. at WebSocketConnection.onMessage (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:296:17)
  324. at WebSocket.onMessage (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\ws\lib\event-target.js:120:16)
  325. at WebSocket.emit (events.js:198:13)
  326. at Receiver.receiverOnMessage (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\ws\lib\websocket.js:789:20)
  327. at Receiver.emit (events.js:198:13)
  328. (node:10020) 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(). (rejection id: 1)
  329. (node:10020) [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.
  330. (node:10020) UnhandledPromiseRejectionWarning: ReferenceError: mommand is not defined
  331. at Client.client.on (C:\Users\rowan\Desktop\CandyMC Discord Bot\bot.js:138:5)
  332. at Client.emit (events.js:203:15)
  333. at MessageCreateHandler.handle (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\packets\handlers\MessageCreate.js:9:34)
  334. at WebSocketPacketManager.handle (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\packets\WebSocketPacketManager.js:105:65)
  335. at WebSocketConnection.onPacket (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:333:35)
  336. at WebSocketConnection.onMessage (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:296:17)
  337. at WebSocket.onMessage (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\ws\lib\event-target.js:120:16)
  338. at WebSocket.emit (events.js:198:13)
  339. at Receiver.receiverOnMessage (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\ws\lib\websocket.js:789:20)
  340. at Receiver.emit (events.js:198:13)
  341. (node:10020) 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(). (rejection id: 2)
  342. PS C:\Users\rowan\Desktop\CandyMC Discord Bot> node bot.js
  343. Bot has started, with 23 users, in 26 channels of 1 guilds.
  344. Playing game set
  345. (node:11148) UnhandledPromiseRejectionWarning: ReferenceError: mommand is not defined
  346. at Client.client.on (C:\Users\rowan\Desktop\CandyMC Discord Bot\bot.js:138:5)
  347. at Client.emit (events.js:203:15)
  348. at MessageCreateHandler.handle (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\packets\handlers\MessageCreate.js:9:34)
  349. at WebSocketPacketManager.handle (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\packets\WebSocketPacketManager.js:105:65)
  350. at WebSocketConnection.onPacket (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:333:35)
  351. at WebSocketConnection.onMessage (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:296:17)
  352. at WebSocket.onMessage (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\ws\lib\event-target.js:120:16)
  353. at WebSocket.emit (events.js:198:13)
  354. at Receiver.receiverOnMessage (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\ws\lib\websocket.js:789:20)
  355. at Receiver.emit (events.js:198:13)
  356. (node:11148) 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(). (rejection id: 1)
  357. (node:11148) [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.
  358. PS C:\Users\rowan\Desktop\CandyMC Discord Bot> node bot.js
  359. Bot has started, with 23 users, in 26 channels of 1 guilds.
  360. Playing game set
  361. (node:10820) UnhandledPromiseRejectionWarning: ReferenceError: msg is not defined
  362. at Client.client.on (C:\Users\rowan\Desktop\CandyMC Discord Bot\bot.js:146:9)
  363. at Client.emit (events.js:203:15)
  364. at MessageCreateHandler.handle (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\packets\handlers\MessageCreate.js:9:34)
  365. at WebSocketPacketManager.handle (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\packets\WebSocketPacketManager.js:105:65)
  366. at WebSocketConnection.onPacket (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:333:35)
  367. at WebSocketConnection.onMessage (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:296:17)
  368. at WebSocket.onMessage (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\ws\lib\event-target.js:120:16)
  369. at WebSocket.emit (events.js:198:13)
  370. at Receiver.receiverOnMessage (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\ws\lib\websocket.js:789:20)
  371. at Receiver.emit (events.js:198:13)
  372. (node:10820) 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(). (rejection id: 1)
  373. (node:10820) [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.
  374. PS C:\Users\rowan\Desktop\CandyMC Discord Bot> node bot.js
  375. Bot has started, with 23 users, in 26 channels of 1 guilds.
  376. Playing game set
  377. (node:6416) UnhandledPromiseRejectionWarning: TypeError: Assignment to constant variable.
  378. at Client.client.on (C:\Users\rowan\Desktop\CandyMC Discord Bot\bot.js:179:18)
  379. at Client.emit (events.js:203:15)
  380. at MessageCreateHandler.handle (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\packets\handlers\MessageCreate.js:9:34)
  381. at WebSocketPacketManager.handle (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\packets\WebSocketPacketManager.js:105:65)
  382. at WebSocketConnection.onPacket (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:333:35)
  383. at WebSocketConnection.onMessage (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:296:17)
  384. at WebSocket.onMessage (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\ws\lib\event-target.js:120:16)
  385. at WebSocket.emit (events.js:198:13)
  386. at Receiver.receiverOnMessage (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\ws\lib\websocket.js:789:20)
  387. at Receiver.emit (events.js:198:13)
  388. (node:6416) 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(). (rejection id: 1)
  389. (node:6416) [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.
  390. PS C:\Users\rowan\Desktop\CandyMC Discord Bot> node bot.js
  391. Bot has started, with 23 users, in 26 channels of 1 guilds.
  392. Playing game set
  393. PS C:\Users\rowan\Desktop\CandyMC Discord Bot> node bot.js
  394. PS C:\Users\rowan\Desktop\CandyMC Discord Bot> node bot.js
  395. Bot has started, with 23 users, in 26 channels of 1 guilds.
  396. Playing game set
  397. (node:18864) UnhandledPromiseRejectionWarning: TypeError: Assignment to constant variable.
  398. at Client.client.on (C:\Users\rowan\Desktop\CandyMC Discord Bot\bot.js:180:18)
  399. at Client.emit (events.js:203:15)
  400. at MessageCreateHandler.handle (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\packets\handlers\MessageCreate.js:9:34)
  401. at WebSocketPacketManager.handle (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\packets\WebSocketPacketManager.js:105:65)
  402. at WebSocketConnection.onPacket (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:333:35)
  403. at WebSocketConnection.onMessage (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:296:17)
  404. at WebSocket.onMessage (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\ws\lib\event-target.js:120:16)
  405. at WebSocket.emit (events.js:198:13)
  406. at Receiver.receiverOnMessage (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\ws\lib\websocket.js:789:20)
  407. at Receiver.emit (events.js:198:13)
  408. (node:18864) 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(). (rejection id: 1)
  409. (node:18864) [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.
  410. (node:18864) UnhandledPromiseRejectionWarning: TypeError: Assignment to constant variable.
  411. at Client.client.on (C:\Users\rowan\Desktop\CandyMC Discord Bot\bot.js:180:18)
  412. at Client.emit (events.js:203:15)
  413. at MessageCreateHandler.handle (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\packets\handlers\MessageCreate.js:9:34)
  414. at WebSocketPacketManager.handle (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\packets\WebSocketPacketManager.js:105:65)
  415. at WebSocketConnection.onPacket (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:333:35)
  416. at WebSocketConnection.onMessage (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:296:17)
  417. at WebSocket.onMessage (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\ws\lib\event-target.js:120:16)
  418. at WebSocket.emit (events.js:198:13)
  419. at Receiver.receiverOnMessage (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\ws\lib\websocket.js:789:20)
  420. at Receiver.emit (events.js:198:13)
  421. (node:18864) 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(). (rejection id: 2)
  422. (node:18864) UnhandledPromiseRejectionWarning: TypeError: Assignment to constant variable.
  423. at Client.client.on (C:\Users\rowan\Desktop\CandyMC Discord Bot\bot.js:180:18)
  424. at Client.emit (events.js:203:15)
  425. at MessageCreateHandler.handle (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\packets\handlers\MessageCreate.js:9:34)
  426. at WebSocketPacketManager.handle (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\packets\WebSocketPacketManager.js:105:65)
  427. at WebSocketConnection.onPacket (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:333:35)
  428. at WebSocketConnection.onMessage (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:296:17)
  429. at WebSocket.onMessage (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\ws\lib\event-target.js:120:16)
  430. at WebSocket.emit (events.js:198:13)
  431. at Receiver.receiverOnMessage (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\ws\lib\websocket.js:789:20)
  432. at Receiver.emit (events.js:198:13)
  433. (node:18864) 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(). (rejection id: 3)
  434. (node:18864) UnhandledPromiseRejectionWarning: TypeError: Assignment to constant variable.
  435. at Client.client.on (C:\Users\rowan\Desktop\CandyMC Discord Bot\bot.js:180:18)
  436. at Client.emit (events.js:203:15)
  437. at MessageCreateHandler.handle (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\packets\handlers\MessageCreate.js:9:34)
  438. at WebSocketPacketManager.handle (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\packets\WebSocketPacketManager.js:105:65)
  439. at WebSocketConnection.onPacket (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:333:35)
  440. at WebSocketConnection.onMessage (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:296:17)
  441. at WebSocket.onMessage (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\ws\lib\event-target.js:120:16)
  442. at WebSocket.emit (events.js:198:13)
  443. at Receiver.receiverOnMessage (C:\Users\rowan\Desktop\CandyMC Discord Bot\node_modules\ws\lib\websocket.js:789:20)
  444. at Receiver.emit (events.js:198:13)
  445. (node:18864) 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(). (rejection id: 4)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement