Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Last login: Sun Mar 12 19:11:08 on ttys000
- Connors-MacBook-Pro:~ cforan$ emacs script.js
- Connors-MacBook-Pro:~ cforan$ npm install
- npm WARN enoent ENOENT: no such file or directory, open '/Users/cforan/package.json'
- npm WARN discord.js@11.0.0 requires a peer of erlpack@hammerandchisel/erlpack#master but none was installed.
- npm WARN discord.js@11.0.0 requires a peer of node-opus@^0.2.0 but none was installed.
- npm WARN discord.js@11.0.0 requires a peer of opusscript@^0.0.1 but none was installed.
- npm WARN discord.js@11.0.0 requires a peer of uws@^0.12.0 but none was installed.
- npm WARN cforan No description
- npm WARN cforan No repository field.
- npm WARN cforan No README data
- npm WARN cforan No license field.
- Connors-MacBook-Pro:~ cforan$ npm install discord.js
- /Users/cforan
- ├── discord.js@11.0.0
- ├── UNMET PEER DEPENDENCY erlpack@hammerandchisel/erlpack#master
- ├── UNMET PEER DEPENDENCY node-opus@^0.2.0
- ├── UNMET PEER DEPENDENCY opusscript@^0.0.1
- └── UNMET PEER DEPENDENCY uws@^0.12.0
- npm WARN enoent ENOENT: no such file or directory, open '/Users/cforan/package.json'
- npm WARN discord.js@11.0.0 requires a peer of erlpack@hammerandchisel/erlpack#master but none was installed.
- npm WARN discord.js@11.0.0 requires a peer of node-opus@^0.2.0 but none was installed.
- npm WARN discord.js@11.0.0 requires a peer of opusscript@^0.0.1 but none was installed.
- npm WARN discord.js@11.0.0 requires a peer of uws@^0.12.0 but none was installed.
- npm WARN cforan No description
- npm WARN cforan No repository field.
- npm WARN cforan No README data
- npm WARN cforan No license field.
- Connors-MacBook-Pro:~ cforan$ node script.js
- (node:12195) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Incorrect login details were provided.
- (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.
- ^C
- Connors-MacBook-Pro:~ cforan$ emacs script.js
- Connors-MacBook-Pro:~ cforan$ g++ script.js
- 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
- Undefined symbols for architecture x86_64:
- "_main", referenced from:
- implicit entry/start for main executable
- ld: symbol(s) not found for architecture x86_64
- clang: error: linker command failed with exit code 1 (use -v to see invocation)
- Connors-MacBook-Pro:~ cforan$ node script.js
- (node:12204) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Incorrect login details were provided.
- (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.
- ^C
- Connors-MacBook-Pro:~ cforan$ emacs script.js
- Connors-MacBook-Pro:~ cforan$ node script.js
- (node:12206) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Incorrect login details were provided.
- (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.
- ^[[A^[[A^C
- Connors-MacBook-Pro:~ cforan$ node script.js
- (node:12210) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Incorrect login details were provided.
- (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.
- -W ignore::DeprecationWarning
- ^C
- Connors-MacBook-Pro:~ cforan$ emacs script.js
- Connors-MacBook-Pro:~ cforan$ node script.js
- /Users/cforan/script.js:4
- import warnings
- ^^^^^^
- SyntaxError: Unexpected token import
- at createScript (vm.js:53:10)
- at Object.runInThisContext (vm.js:95:10)
- at Module._compile (module.js:543:28)
- at Object.Module._extensions..js (module.js:580:10)
- at Module.load (module.js:488:32)
- at tryModuleLoad (module.js:447:12)
- at Function.Module._load (module.js:439:3)
- at Module.runMain (module.js:605:10)
- at run (bootstrap_node.js:425:7)
- at startup (bootstrap_node.js:146:9)
- Connors-MacBook-Pro:~ cforan$ emacs script.js
- Connors-MacBook-Pro:~ cforan$ node script.js
- /Users/cforan/script.js:78
- import warnings
- ^^^^^^
- SyntaxError: Unexpected token import
- at createScript (vm.js:53:10)
- at Object.runInThisContext (vm.js:95:10)
- at Module._compile (module.js:543:28)
- at Object.Module._extensions..js (module.js:580:10)
- at Module.load (module.js:488:32)
- at tryModuleLoad (module.js:447:12)
- at Function.Module._load (module.js:439:3)
- at Module.runMain (module.js:605:10)
- at run (bootstrap_node.js:425:7)
- at startup (bootstrap_node.js:146:9)
- Connors-MacBook-Pro:~ cforan$ emacs script.js
- Connors-MacBook-Pro:~ cforan$ node script.js
- (node:12226) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Incorrect login details were provided.
- (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.
- ^C
- Connors-MacBook-Pro:~ cforan$ emacs script.js
- });
- var cool = false;
- client.on('message', message => {
- if (/[pP][iI][nN][gG]/.test(message.content) && !cool) {
- cool = true;
- message.reply(message.content.replace("ping", "pong"));
- setTimeout(function() {
- cool = false;
- }, 1000);
- }
- });
- var username = ""
- var pass = ""
- client.login(username, pass);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement