Spelling, docstrings

This commit is contained in:
Luke Rogers 2014-02-14 16:49:41 +13:00
parent a76ff29d4b
commit 004ceb79fc
6 changed files with 7 additions and 5 deletions

View File

@ -108,7 +108,7 @@ def info(inp, notice=None, db=None):
@hook.regex(r'^\? ?(.+)')
def factoid(inp, message=None, db=None, bot=None, action=None, conn=None, input=None):
"?<word> -- Shows what data is associated with <word>."
"""?<word> -- Shows what data is associated with <word>."""
try:
prefix_on = bot.config["plugins"]["factoids"].get("prefix", False)
except KeyError:

View File

@ -14,7 +14,7 @@ with open("./plugins/data/geoip_regions.json", "rb") as f:
regions = json.loads(f.read())
if os.path.isfile(os.path.abspath("./plugins/data/GeoLiteCity.dat")):
# initalise geolocation database
# initialise geolocation database
geo = pygeoip.GeoIP(os.path.abspath("./plugins/data/GeoLiteCity.dat"))
else:
download = http.get("http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz")

View File

@ -8,7 +8,7 @@ from util import hook
try:
import DNS
# Please remember to install the dependancy 'pydns'
# Please remember to install the dependency 'pydns'
pydns_installed = True
except ImportError:
pydns_installed = False

View File

@ -20,7 +20,7 @@ def ping(inp, reply=None):
args = inp.split(' ')
host = args[0]
# check for a seccond argument and set the ping count
# check for a second argument and set the ping count
if len(args) > 1:
count = int(args[1])
if count > 20:

View File

@ -91,7 +91,7 @@ def tell(inp, nick='', chan='', db=None, input=None, notice=None):
return
if user_to.lower() == input.conn.nick.lower():
# user is looking for us, being a smartass
# user is looking for us, being a smart-ass
notice("Thanks for the message, {}!".format(user_from))
return

View File

@ -1,3 +1,5 @@
pygeoip
tweepy
Crypto
BeautifulSoup==3.2.1
lxml==3.1beta1