robotirc

Multifonction IRC bot written in Node.js
Log | Files | Refs | README | LICENSE

commit aa237be55b60280ba45dc15424158f5ef592324b
parent 7a62b0e07e921e1b02ae8030e1f7b839aba2cadc
Author: Frederic Cambus <fred@statdns.com>
Date:   Fri,  3 Feb 2017 11:55:45 +0100

Remove GeoIP functions, as Telize public API is deprecated

Diffstat:
MREADME.md | 14--------------
Mlib/robotirc.js | 15---------------
2 files changed, 0 insertions(+), 29 deletions(-)

diff --git a/README.md b/README.md @@ -42,7 +42,6 @@ RobotIRC supports the following commands: - !alexa (Get Alexa traffic rank for a domain or URL) - !date (Display server local time) - !expand (Expand a shortened URL) -- !geoip (IP address Geolocation) - !headers (Display HTTP headers for queried URL) - !resolve (Get A records (IPv4) and AAAA records (IPv6) for queried domain) - !reverse (Get reverse (PTR) records from IPv4 or IPv6 addresses) @@ -61,19 +60,6 @@ A list of available functions can be displayed by using the `!help` command. <fcambus> !expand http://bit.ly/1g4jD0H <robotirc> http://www.echojs.com/ - <fcambus_> !geoip 77.88.8.8 - <robotirc> country: Russian Federation - <robotirc> dma_code: 0 - <robotirc> area_code: 0 - <robotirc> ip: 77.88.8.8 - <robotirc> asn: AS13238 - <robotirc> continent_code: EU - <robotirc> isp: Yandex LLC - <robotirc> longitude: 100 - <robotirc> latitude: 60 - <robotirc> country_code: RU - <robotirc> country_code3: RUS - <fcambus> !headers http://www.echojs.com <robotirc> server: nginx <robotirc> date: Fri, 03 Jan 2014 00:08:05 GMT diff --git a/lib/robotirc.js b/lib/robotirc.js @@ -72,7 +72,6 @@ module.exports = function(config) { "!alexa => Get Alexa traffic rank for a domain or URL\n" + "!date => Display server local time\n" + "!expand => Expand a shortened URL\n" + - "!geoip => IP address Geolocation\n" + "!headers => Display HTTP headers for queried URL\n" + "!resolve => Get A records (IPv4) and AAAA records (IPv6) for queried domain\n" + "!reverse => Get reverse (PTR) records from IPv4 or IPv6 addresses\n" + @@ -112,20 +111,6 @@ module.exports = function(config) { }); } - /*********************************************************[ !geoip ]**/ - - if (message.match(/^!geoip/)) { - request('http://www.telize.com/geoip/' + params, function(error, response, body) { - if (!error && response.statusCode == 200) { - var geoip = JSON.parse(response.body); - - for (var item in geoip) { - client.say(to, item + ": " + geoip[item] + "\n"); - } - } - }); - } - /*******************************************************[ !headers ]**/ if (message.match(/^!headers/)) {