/sopel-http

An HTTP server for the Sopel IRC bot framework

Primary LanguagePythonEuropean Union Public License 1.2EUPL-1.2

sopel-http

PyPi Version

Interact with your Sopel bot over HTTP

Setup

Only developers should need to install this package directly, but they can do so with a simple pip install sopel-http.

Configuration

You can change which IP addresses and ports sopel-http binds to in your Sopel configuration. For example, to bind to port 8080 on all IPs (including public!):

[http]
bind = "[::]:8080"

By default it listens on 127.0.0.1 and ::1 (localhost), port 8094.

Usage

See the example plugin, sopel-http-example.

Once you've created and registered the flask Blueprint as shown in the example, you can use it more or less like any other flask application.