Commits

Jason R. Coombs committed dc61494

Implemented the resolv command

  • Participants
  • Parent commits 17acd73
  • Tags 1.0

Comments (0)

Files changed (2)

File jaraco/pmxbot/__init__.py

+import socket
+
+from pmxbot.botbase import command
+
+@command("resolv", doc="resolve a hostname")
+def resolve(client, event, channel, nick, rest):
+	return socket.getfqdn(rest)
 	author="Jason R. Coombs",
 	author_email="jaraco@jaraco.com",
 	url="https://bitbucket.org/jaraco/jaraco.pmxbot",
+	description="pmxbot commands by jaraco",
 	packages=setuptools.find_packages(),
 	namespace_packages=['jaraco'],
 	zip_safe=False,
 	setup_requires=[
 		'hgtools',
 	],
+	entry_points = dict(
+		pmxbot_handlers='jaraco.pmxbot = jaraco.pmxbot',
+	),
 )
 if __name__ == '__main__':
 	setuptools.setup(**setup_params)