Advertisement
Guest User

Untitled

a guest
Mar 12th, 2017
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.83 KB | None | 0 0
  1. Last login: Sun Mar 12 19:11:08 on ttys000
  2. Connors-MacBook-Pro:~ cforan$ emacs script.js
  3. Connors-MacBook-Pro:~ cforan$ npm install
  4. npm WARN enoent ENOENT: no such file or directory, open '/Users/cforan/package.json'
  5. npm WARN discord.js@11.0.0 requires a peer of erlpack@hammerandchisel/erlpack#master but none was installed.
  6. npm WARN discord.js@11.0.0 requires a peer of node-opus@^0.2.0 but none was installed.
  7. npm WARN discord.js@11.0.0 requires a peer of opusscript@^0.0.1 but none was installed.
  8. npm WARN discord.js@11.0.0 requires a peer of uws@^0.12.0 but none was installed.
  9. npm WARN cforan No description
  10. npm WARN cforan No repository field.
  11. npm WARN cforan No README data
  12. npm WARN cforan No license field.
  13. Connors-MacBook-Pro:~ cforan$ npm install discord.js
  14. /Users/cforan
  15. ├── discord.js@11.0.0
  16. ├── UNMET PEER DEPENDENCY erlpack@hammerandchisel/erlpack#master
  17. ├── UNMET PEER DEPENDENCY node-opus@^0.2.0
  18. ├── UNMET PEER DEPENDENCY opusscript@^0.0.1
  19. └── UNMET PEER DEPENDENCY uws@^0.12.0
  20.  
  21. npm WARN enoent ENOENT: no such file or directory, open '/Users/cforan/package.json'
  22. npm WARN discord.js@11.0.0 requires a peer of erlpack@hammerandchisel/erlpack#master but none was installed.
  23. npm WARN discord.js@11.0.0 requires a peer of node-opus@^0.2.0 but none was installed.
  24. npm WARN discord.js@11.0.0 requires a peer of opusscript@^0.0.1 but none was installed.
  25. npm WARN discord.js@11.0.0 requires a peer of uws@^0.12.0 but none was installed.
  26. npm WARN cforan No description
  27. npm WARN cforan No repository field.
  28. npm WARN cforan No README data
  29. npm WARN cforan No license field.
  30. Connors-MacBook-Pro:~ cforan$ node script.js
  31. (node:12195) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Incorrect login details were provided.
  32. (node:12195) 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.
  33. ^C
  34. Connors-MacBook-Pro:~ cforan$ emacs script.js
  35. Connors-MacBook-Pro:~ cforan$ g++ script.js
  36. ld: warning: ignoring file script.js, file was built for unsupported file format ( 0x2F 0x2A 0x20 0x6A 0x73 0x68 0x69 0x6E 0x74 0x20 0x65 0x73 0x76 0x65 0x72 0x73 ) which is not the architecture being linked (x86_64): script.js
  37. Undefined symbols for architecture x86_64:
  38. "_main", referenced from:
  39. implicit entry/start for main executable
  40. ld: symbol(s) not found for architecture x86_64
  41. clang: error: linker command failed with exit code 1 (use -v to see invocation)
  42. Connors-MacBook-Pro:~ cforan$ node script.js
  43. (node:12204) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Incorrect login details were provided.
  44. (node:12204) 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.
  45. ^C
  46. Connors-MacBook-Pro:~ cforan$ emacs script.js
  47. Connors-MacBook-Pro:~ cforan$ node script.js
  48. (node:12206) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Incorrect login details were provided.
  49. (node:12206) 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.
  50. ^[[A^[[A^C
  51. Connors-MacBook-Pro:~ cforan$ node script.js
  52. (node:12210) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Incorrect login details were provided.
  53. (node:12210) 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.
  54. -W ignore::DeprecationWarning
  55. ^C
  56. Connors-MacBook-Pro:~ cforan$ emacs script.js
  57. Connors-MacBook-Pro:~ cforan$ node script.js
  58. /Users/cforan/script.js:4
  59. import warnings
  60. ^^^^^^
  61. SyntaxError: Unexpected token import
  62. at createScript (vm.js:53:10)
  63. at Object.runInThisContext (vm.js:95:10)
  64. at Module._compile (module.js:543:28)
  65. at Object.Module._extensions..js (module.js:580:10)
  66. at Module.load (module.js:488:32)
  67. at tryModuleLoad (module.js:447:12)
  68. at Function.Module._load (module.js:439:3)
  69. at Module.runMain (module.js:605:10)
  70. at run (bootstrap_node.js:425:7)
  71. at startup (bootstrap_node.js:146:9)
  72. Connors-MacBook-Pro:~ cforan$ emacs script.js
  73. Connors-MacBook-Pro:~ cforan$ node script.js
  74. /Users/cforan/script.js:78
  75. import warnings
  76. ^^^^^^
  77. SyntaxError: Unexpected token import
  78. at createScript (vm.js:53:10)
  79. at Object.runInThisContext (vm.js:95:10)
  80. at Module._compile (module.js:543:28)
  81. at Object.Module._extensions..js (module.js:580:10)
  82. at Module.load (module.js:488:32)
  83. at tryModuleLoad (module.js:447:12)
  84. at Function.Module._load (module.js:439:3)
  85. at Module.runMain (module.js:605:10)
  86. at run (bootstrap_node.js:425:7)
  87. at startup (bootstrap_node.js:146:9)
  88. Connors-MacBook-Pro:~ cforan$ emacs script.js
  89. Connors-MacBook-Pro:~ cforan$ node script.js
  90. (node:12226) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Incorrect login details were provided.
  91. (node:12226) 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.
  92. ^C
  93. Connors-MacBook-Pro:~ cforan$ emacs script.js
  94.  
  95. });
  96.  
  97. var cool = false;
  98. client.on('message', message => {
  99. if (/[pP][iI][nN][gG]/.test(message.content) && !cool) {
  100. cool = true;
  101. message.reply(message.content.replace("ping", "pong"));
  102. setTimeout(function() {
  103. cool = false;
  104. }, 1000);
  105. }
  106. });
  107.  
  108. var username = ""
  109. var pass = ""
  110.  
  111. client.login(username, pass);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement