Advertisement
Guest User

Untitled

a guest
Dec 6th, 2016
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. const gdc = require('node-geometry-dash')
  2. const GD = new gdc({username: "...", password: "..."})
  3. var express = require('express')
  4. var app = express()
  5.  
  6. app.get('/', function (req, res) {
  7. GD.levels("Bloodbath").then( levels => { res.send(levels[0]) });
  8. res.send('Hello World!')
  9. })
  10.  
  11. app.listen(3000, function () {
  12. console.log('Example app listening on port 3000!')
  13. })
  14.  
  15. GD.levels("Bloodbath").then( levels => { res.send(levels[0]) });
  16. ^
  17. SyntaxError: Unexpected token >
  18. at Module._compile (module.js:439:25)
  19. at Object.Module._extensions..js (module.js:474:10)
  20. at Module.load (module.js:356:32)
  21. at Function.Module._load (module.js:312:12)
  22. at Function.Module.runMain (module.js:497:10)
  23. at startup (node.js:119:16)
  24. at node.js:902:3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement