twitch-bot/examples/plugin
Knut Ahlers 8247978151
[lint] Properly format inputs
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2021-11-25 23:48:16 +01:00
..
config.yaml Add plugin support to allow extending of functionality (#6) 2021-08-19 15:33:56 +02:00
Dockerfile Update dependencies and bring plugin example to work with master 2021-08-19 22:58:10 +02:00
go.mod Update dependencies and bring plugin example to work with master 2021-08-19 22:58:10 +02:00
go.sum Update dependencies and bring plugin example to work with master 2021-08-19 22:58:10 +02:00
main.go [lint] Properly format inputs 2021-11-25 23:48:16 +01:00
README.md Add plugin support to allow extending of functionality (#6) 2021-08-19 15:33:56 +02:00

Plugin-Example

See the main.go for a very simple plugin example.

To build:

  • Make sure you downloaded the same version of twitch-bot you're referencing to in your go.mod
  • Make sure every dependency in the version of the twitch-bot you are using too is exactly the same version
  • Build the bot and the plugin in the same environment (for example the same build step in a Docker build)

If you do have different versions of any dependency (including the Go standard library) your plugin will not load.