Skip to content

Instantly share code, notes, and snippets.

@naltatis
Created June 20, 2011 20:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save naltatis/1036501 to your computer and use it in GitHub Desktop.
Save naltatis/1036501 to your computer and use it in GitHub Desktop.
node.js bot
express = require('express');
var app = express.createServer();
app.get('/guess', function(req, res){
// these are the parameter you get
req.param('match_id') // 447
req.param('host_id') // 10
req.param('host_name') // "SV Werder Bremen"
req.param('guest_id') // 20
req.param('guest_name') // "Hamburger SV"
// insert clever algorithm here
// return your guess
res.send('2:1');
});
app.listen(3000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment