• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Halibot / halibot / 248
81%
master: 93%

Build:
Build:
LAST BUILD BRANCH: config-writer
DEFAULT BRANCH: master
Ran 19 Sep 2017 11:41PM UTC
Jobs 2
Files 15
Run time 78min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
248

push

travis-ci

richteer
halibot: introduce CommandModule subclass of HalModule

Initial implementation of the CommandModule class of HalModule.

To implement a CommandModule:
 - Inherit from the halibot.CommandModule class
 - Define a class variable that is a
    dict: "command" -> func(self, string, msg=msg)

Example:

class Foo(CommandModule):
	def init(self):
		self.commands = {"hello", self.hello_}

	def hello_(self, string, msg=None):
		return self.reply(msg, body="Hello World!")

Note: it is recommended practice to trail command methods with an underscore
so as not to accidentally override internal halobject methods.

some fixes

488 of 600 relevant lines covered (81.33%)

1.63 hits per line

Jobs
ID Job ID Ran Files Coverage
1 248.1 19 Sep 2017 11:41PM UTC 0
81.33
Travis Job 248.1
2 248.2 19 Sep 2017 11:41PM UTC 0
81.33
Travis Job 248.2
Source Files on build 248
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #248
  • 4330e650 on github
  • Prev Build on add-command-module (#246)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc