Last active
September 20, 2017 17:57
-
-
Save daytonmills/147c8b93229283d498bd68199490e3de to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const http = require("http"); | |
const phrases = require("insult-compliment"); | |
const PORT = 7000, | |
PORT2 = 7500; | |
function beNice(request, response) { | |
response.end(phrases.Compliment()); | |
} | |
function beRude(request, response) { | |
response.end(phrases.Insult()); | |
} | |
var serverNice = http.createServer(beNice).listen(PORT); | |
var serverRude = http.createServer(beRude).listen(PORT2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment