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

Halibot / halibot / 227 / 2
81%
master: 93%

Build:
Build:
LAST BUILD BRANCH: config-writer
DEFAULT BRANCH: master
Ran 15 Sep 2017 09:02PM UTC
Files 16
Run time 1s
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

15 Sep 2017 09:01PM UTC coverage: 64.763%. First build
227.2

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

397 of 613 relevant lines covered (64.76%)

0.65 hits per line

Source Files on job 227.2
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 227
  • Travis Job 227.2
  • 215c8622 on github
  • Next Job for on add-command-module (#244.2)
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