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

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

Build:
Build:
LAST BUILD BRANCH: config-writer
DEFAULT BRANCH: master
Ran 19 Sep 2017 11:41PM UTC
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

19 Sep 2017 11:39PM UTC coverage: 81.333%. Remained the same
248.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

488 of 600 relevant lines covered (81.33%)

0.81 hits per line

Source Files on job 248.2
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 248
  • Travis Job 248.2
  • 4330e650 on github
  • Prev Job for on add-command-module (#246.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