Self-hosted alternative to one of the big bots managed by big companies…
Find a file
Knut Ahlers 87732995b3
[openapi] Allow subdir serving
by using relative URLs

Signed-off-by: Knut Ahlers <knut@ahlers.me>
2021-10-10 01:40:44 +02:00
.github Add funding config 2021-04-21 19:54:03 +02:00
ci Breaking: Add configuration interface and switch to more generic config format (#7) 2021-09-22 15:36:45 +02:00
docs Allow to customize token 2021-04-04 20:26:32 +02:00
editor [editor] Add description to "Add Action" form group 2021-10-03 15:40:44 +02:00
examples/plugin Update dependencies and bring plugin example to work with master 2021-08-19 22:58:10 +02:00
internal/actors Add "punish", "reset-punish" actors and storage manager (#8) 2021-10-03 15:35:58 +02:00
plugins Add "punish", "reset-punish" actors and storage manager (#8) 2021-10-03 15:35:58 +02:00
twitch Breaking: Add configuration interface and switch to more generic config format (#7) 2021-09-22 15:36:45 +02:00
wiki Add "punish", "reset-punish" actors and storage manager (#8) 2021-10-03 15:35:58 +02:00
.gitignore Breaking: Add configuration interface and switch to more generic config format (#7) 2021-09-22 15:36:45 +02:00
.golangci.yml Breaking: Add configuration interface and switch to more generic config format (#7) 2021-09-22 15:36:45 +02:00
.repo-runner.yaml Add code linting / binary publishing (#3) 2021-04-03 14:11:47 +02:00
action_core.go Add "punish", "reset-punish" actors and storage manager (#8) 2021-10-03 15:35:58 +02:00
action_counter.go Breaking: Add configuration interface and switch to more generic config format (#7) 2021-09-22 15:36:45 +02:00
action_script.go Breaking: Add configuration interface and switch to more generic config format (#7) 2021-09-22 15:36:45 +02:00
action_setvar.go Breaking: Add configuration interface and switch to more generic config format (#7) 2021-09-22 15:36:45 +02:00
actions.go Breaking: Add configuration interface and switch to more generic config format (#7) 2021-09-22 15:36:45 +02:00
actorDocs.go Breaking: Add configuration interface and switch to more generic config format (#7) 2021-09-22 15:36:45 +02:00
actorDocs.tpl Breaking: Add configuration interface and switch to more generic config format (#7) 2021-09-22 15:36:45 +02:00
automessage.go [automessage] Move spammy message to trace-level 2021-10-07 13:48:26 +02:00
botEditor.go Breaking: Add configuration interface and switch to more generic config format (#7) 2021-09-22 15:36:45 +02:00
botUserState.go [core] Fix: Emote sets are not int but uuid 2021-09-29 19:05:12 +02:00
config.go Breaking: Add configuration interface and switch to more generic config format (#7) 2021-09-22 15:36:45 +02:00
configEditor.go Breaking: Add configuration interface and switch to more generic config format (#7) 2021-09-22 15:36:45 +02:00
configwatch.go Fix: Do not spam events when file is gone for longer 2021-05-24 18:00:50 +02:00
cors.go Breaking: Add configuration interface and switch to more generic config format (#7) 2021-09-22 15:36:45 +02:00
default_config.yaml Breaking: Add configuration interface and switch to more generic config format (#7) 2021-09-22 15:36:45 +02:00
Dockerfile Breaking: Add configuration interface and switch to more generic config format (#7) 2021-09-22 15:36:45 +02:00
events.go Breaking: Add configuration interface and switch to more generic config format (#7) 2021-09-22 15:36:45 +02:00
functions.go Lint: Ignore gocritic for fatal program exit not running unlock 2021-08-19 17:27:47 +02:00
functions_counter.go Allow plugins to register template functions 2021-08-19 16:40:34 +02:00
functions_irc.go [templating] Fix: Use fields to get channel to support events 2021-09-29 18:49:32 +02:00
functions_twitch.go Allow plugins to register template functions 2021-08-19 16:40:34 +02:00
go.mod Breaking: Add configuration interface and switch to more generic config format (#7) 2021-09-22 15:36:45 +02:00
go.sum Breaking: Add configuration interface and switch to more generic config format (#7) 2021-09-22 15:36:45 +02:00
helpers.go Breaking: Add configuration interface and switch to more generic config format (#7) 2021-09-22 15:36:45 +02:00
History.md prepare release v1.2.0 2021-10-08 16:27:42 +02:00
irc.go [core] Remove unused subscribed_months field from subgifts 2021-10-09 14:25:40 +02:00
LICENSE Add META 2020-12-21 01:55:48 +01:00
main.go Add "punish", "reset-punish" actors and storage manager (#8) 2021-10-03 15:35:58 +02:00
Makefile Breaking: Add configuration interface and switch to more generic config format (#7) 2021-09-22 15:36:45 +02:00
msgformatter.go Fix: Use derivation function for template fields 2021-09-03 00:13:28 +02:00
plugins.go Add plugin support to allow extending of functionality (#6) 2021-08-19 15:33:56 +02:00
plugins_unsupported.go Add plugin support to allow extending of functionality (#6) 2021-08-19 15:33:56 +02:00
README.md Add validation mode for config 2021-07-12 14:53:20 +02:00
store.go Add "punish", "reset-punish" actors and storage manager (#8) 2021-10-03 15:35:58 +02:00
swagger.go [openapi] Allow subdir serving 2021-10-10 01:40:44 +02:00
swagger.html [openapi] Allow subdir serving 2021-10-10 01:40:44 +02:00
timers.go Add plugin support to allow extending of functionality (#6) 2021-08-19 15:33:56 +02:00
twitchWatcher.go Fix: Nil pointer segfaults due to direct access to message object 2021-09-02 23:26:39 +02:00
wrNoOpCloser.go Add raw-log functionality 2021-04-09 18:14:44 +02:00

Go Report Card

Luzifer / twitch-bot

Twitch-Bot is intended as an alternative to having a bot managed by Streamlabs or Streamelements and therefore having more control over it, the availability and how it works.

At the moment it is a work-in-progress and does not yet implment all features it shall in the future.

Configuration

Please see the Wiki for documentation of the configuration file.

# twitch-bot --help
Usage of twitch-bot:
      --command-timeout duration   Timeout for command execution (default 30s)
  -c, --config string              Location of configuration file (default "./config.yaml")
      --log-level string           Log level (debug, info, warn, error, fatal) (default "info")
      --rate-limit duration        How often to send a message (default: 20/30s=1500ms, if your bot is mod everywhere: 100/30s=300ms, different for known/verified bots) (default 1.5s)
      --storage-file string        Where to store the data (default "./storage.json.gz")
      --twitch-client string       Client ID to act as
      --twitch-token string        OAuth token valid for client
  -v, --validate-config            Loads the config, logs any errors and quits with status 0 on success
      --version                    Prints current version and exits