Sopel plugin .ip
command::
16:22 <SnoopJ> !ip 8.8.8.8
16:22 <testibot> [IP/Host Lookup] Downloading GeoIP database, please wait...
16:22 <testibot> [IP/Host Lookup] Hostname: dns.google | Location: United States | ISP: AS15169 GOOGLE
The recommended way to install this plugin is to use pip
::
$ pip install sopel-iplookup
Note that this plugin requires Python 3.7+ and Sopel 7.1+. It won't work on Python versions that are not supported by the version of Sopel you are using.
sopel-iplookup
can be configured by invoking Sopel's interactive wizard::
$ sopel-plugins configure iplookup
Configure Sopel GeoIP Lookup Plugin
Please consult sopel-iplookup's README to learn about its settings.
Path to existing GeoIP db files (leave empty to auto download):
MaxMind license key (optional): (hidden input)
By default, sopel-iplookup
will look in a few standard locations for GeoIP
database files. If it can't find existing database files, it will download them
from an automated mirror on GitHub.
You can optionally provide your own MaxMind license key, and the plugin will download directly from them instead. Alternatively, if your OS distribution already has GeoIP database files kept up-to-date by the system package manager, you can provide the path where those files are stored.
This plugin replaces a built-in Sopel plugin formerly called ip
, you may need
to update your bot configuration to replace ip
with iplookup
if you are e.g.
excluding this plugin.