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

Halibot / halibot / 227
81%
master: 93%

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

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%)

1.3 hits per line

Jobs
ID Job ID Ran Files Coverage
1 227.1 15 Sep 2017 09:09PM UTC 0
64.76
Travis Job 227.1
2 227.2 15 Sep 2017 09:02PM UTC 0
64.76
Travis Job 227.2
Source Files on build 227
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #227
  • 215c8622 on github
  • Next Build on add-command-module (#244)
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