Skip to content

Latest commit

 

History

History
27 lines (14 loc) · 944 Bytes

develop.md

File metadata and controls

27 lines (14 loc) · 944 Bytes

Develop

Get involved with the development of Hex or it's plugins.

Hex Bot

  • Setup your Go 1.9.1 environment
  • Use govendor for managing go packages
  • Pull the project with go get github.com/hexbotio/hex
  • Setup a local configuration such as ~/hex/config.json with configuration settings
  • Run your instance with go run $GOPATH/src/github.com/hexbotio/hex/hex.go ~/hex/config.json

Plugins

Plugins are a great way of adding functionality to Hex to increase its capability. A very simple plugin to emulate is the hex-response plugin which just returns formatted text. You can get started with that here:

https://github.com/hexbotio/hex-response

Testing

There are unit tests written for some of the parse methods. In additon there is a testing framework to run integration tests against the bot and the various plugins.

https://github.com/hexbotio/thext