mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-11-08 16:20:02 +00:00
Self-hosted alternative to one of the big bots managed by big companies…
Knut Ahlers
c51a0751f0
as replaying through the socket takes ages for longer time ranges Signed-off-by: Knut Ahlers <knut@ahlers.me> |
||
---|---|---|
.github | ||
ci | ||
crypt | ||
docs | ||
editor | ||
examples/plugin | ||
internal | ||
plugins | ||
src | ||
twitch | ||
wiki | ||
.dockerignore | ||
.eslintrc.js | ||
.gitignore | ||
.golangci.yml | ||
.repo-runner.yaml | ||
action_counter.go | ||
action_script.go | ||
action_setvar.go | ||
actions.go | ||
actorDocs.go | ||
actorDocs.tpl | ||
auth.go | ||
automessage.go | ||
botEditor.go | ||
botUserState.go | ||
config.go | ||
configEditor.go | ||
configEditor_automessage.go | ||
configEditor_dev.go | ||
configEditor_general.go | ||
configEditor_global.go | ||
configEditor_prod.go | ||
configEditor_rules.go | ||
configwatch.go | ||
cors.go | ||
default_config.yaml | ||
Dockerfile | ||
events.go | ||
functions.go | ||
functions_counter.go | ||
functions_irc.go | ||
functions_twitch.go | ||
git.go | ||
go.mod | ||
go.sum | ||
helpers.go | ||
History.md | ||
irc.go | ||
LICENSE | ||
main.go | ||
Makefile | ||
msgformatter.go | ||
package-lock.json | ||
package.json | ||
plugins.go | ||
plugins_core.go | ||
plugins_unsupported.go | ||
README.md | ||
scopes.go | ||
status.go | ||
store.go | ||
swagger.go | ||
swagger.html | ||
timers.go | ||
twitchWatcher.go | ||
writeAuth.go | ||
wrNoOpCloser.go |
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:
--base-url string External URL of the config-editor interface (set to enable EventSub support)
--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")
--plugin-dir string Where to find and load plugins (default "/usr/lib/twitch-bot")
--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-encryption-pass string Passphrase to encrypt secrets inside storage (defaults to twitch-client:twitch-client-secret)
--storage-file string Where to store the data (default "./storage.json.gz")
--twitch-client string Client ID to act as
--twitch-client-secret string Secret for the Client ID
--twitch-token string OAuth token valid for client (fallback if no token was set in interface)
-v, --validate-config Loads the config, logs any errors and quits with status 0 on success
--version Prints current version and exits
# twitch-bot help
Supported sub-commands are:
actor-docs Generate markdown documentation for available actors
api-token <name> <scope...> Generate an api-token to be entered into the config
help Prints this help message