forked from pajbot/pajbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.ini
133 lines (123 loc) · 6.83 KB
/
example.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
[main]
; Twitch login name of the bot account
nickname = the_bot_name
; Twitch login name of the channel the bot runs in
streamer = streamer_name
; login name of the primary admin (will be granted level 2000 initially)
admin = your_own_name
; an additional channel the bot will join and receive commands from. (login name)
; You can remove this config entry if you don't want to use this feature
control_hub = a_channel_for_all_your_bots_to_join
; URL to specify how to connect to the PostgreSQL database server.
; See here for available options:
; https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING
; https://docs.sqlalchemy.org/en/13/dialects/postgresql.html#module-sqlalchemy.dialects.postgresql.psycopg2
; Note on the weird urlencoding for search_path: the argument is (if written differently:)
; args = { "options": "-c search_path=pajbot1_kkonatestbroadcaster" }, which after urlencoding has `%20` instead of
; space characters. Because the config parser interprets the % character to begin a substitution
; for an environment variable, the % characters are doubled so they are interpreted
; as literal % signs.
; https://docs.python.org/3/library/configparser.html#interpolation-of-values
db = postgresql+psycopg2:///pajbot?options=-c%%20search_path%%3Dpajbot1_streamer_name
; set this to 1 if your bot is a verified bot (increased rate limits) on Twitch
; More info about verified bots can be found here: https://dev.twitch.tv/docs/irc/guide#known-and-verified-bots
;verified = 1
; if your bot is known (increased rate limits, see same link above) set this to 1
;known = 1
; Allows you to set a different output mode for whispers.
; `whisper_output_mode = normal` sends whispers as normal. (This is the default if you don't configure this option)
; `whisper_output_mode = disabled` will make it so the bot does not send any whispers. Outgoing whispers will be dropped.
; `whisper_output_mode = chat` outputs all messages intended to be whispered to the streamer's chat instead of whispering them.
;whisper_output_mode = normal
; Optional section if you want to make the "Wolfram Alpha Query" module available for use:
; Set this to a valid Wolfram|Alpha App ID to enable wolfram alpha query functionality
; (You can get this from http://developer.wolframalpha.com/portal/myapps/ - Click "Get an AppID")
;wolfram = ABCDEF-GHIJKLMNOP
; this location/ip is used to localize the queries to a default location.
; https://products.wolframalpha.com/api/documentation/#semantic-location
; if you specify both IP and location, the location will be ignored.
;wolfram_ip = 62.41.0.123
;wolfram_location = Amsterdam
; Optional section if you want to have the bot check links posted in chat against the Google Safe Browsing API.
; Set this to a valid Google Safe Browsing API Key to enable the feature
; See https://developers.google.com/safe-browsing/v4/get-started for how to get such an API Key
;safebrowsingapi = OWwcxRaHf820gei2PTouLnkUZbEWNo0EXD9cY_0
[web]
; List of "features" you want to enable to be displayed on the website (separated by space)
; - "linefarming" adds a statistic of the top 5 chatters to the statistics page
; - "pleblist" adds a link to the pleblist to the top navigation bar
; - "playsounds" adds a link to the playsounds page to the top navigation bar
; - "predict" adds a link to the admin panel of the "Prediction of Arena Wins" module to the admin area.
; - "duels" adds a link to the duel statistics to the statistics page
modules = linefarming duels playsounds
; Capitalized name of the streamer (their display name)
streamer_name = Streamer_Name
; domain that the website runs on
domain = streamer_name.your-website.com
; This setting is for if you are using the "Decks (Hearthstone)" module - If you set this to 0,
; the classes will be named by their name, if you set this to 1, an image representing the class
; will be displayed instead.
;deck_tab_images = 1
; this configures which version of the subscriber badge to download for the streamer to be shown on the website next to subscribers
; the default value is 0 (default sub badge)
; value of -1 disables the subscriber badge downloading entirely
; https://badges.twitch.tv/v1/badges/channels/11148817/display?language=en example url to see valid badge versions, replace 11148817 with your twitch user id to see your badges
subscriber_badge_version = 0
; Uncomment this option and set it to a tracking ID to use Google Analytics automatically.
;google_analytics = UA-XXXXX-Y
; phrases the bot prints when it starts up and exits
[phrases]
welcome = {nickname} {version} running! HeyGuys
quit = {nickname} {version} shutting down... BibleThump
; optional: you can make the bot print multiple messages on startup/quit,
; for example a common use for this might be to turn subscribers-only/emote-only/etc.. mode on when the bot is quit
; and to turn it back off once it's back.
; e.g.: (notice the indentation)
;welcome = {nickname} {version} running!
; .emoteonlyoff
;quit = .emoteonly
; {nickname} {version} shutting down...
; client_id used for both the bot and the web login
[twitchapi]
client_id = 0f958ce6bf20ba8ea84a21e43ebba1
client_secret = cdaa2b0832ccd5b1f053f2faffc37f
redirect_uri = https://streamer_name.your-website.com/login/authorized
; you can optionally populate this with twitter access tokens
; if you want to be able to interact with twitter.
[twitter]
consumer_key = abc
consumer_secret = abc
access_token = 123-abc
access_token_secret = abc
; streaming=0/1 configures whether the bot should print a chat message when a new tweet comes in from
; a user we are following
streaming = 1
; streaming_type decides what sort of source we are streaming tweets from.
; Valid values are:
; * twitter - this means we connect directly to twitter and get tweets
; * tweet-provider - this means we connect to an instance of tweet-provider (https://github.com/pajbot/tweet-provider)
;streaming_type = twitter
; options for tweet-provider:
;tweet_provider_host = 127.0.0.1
;tweet_provider_port = 2356
;tweet_provider_protocol = ws
; * NOTE: wss is untested
[flags]
; You can set this to 1 to silence the bot - In that mode, it will not print messages to chat (except for on startup/quit).
silent = 0
; Enables a more verbose version info, and enables you (the bot admin) to run arbitrary python commands via `!eval` from chat.
dev = 0
[websocket]
enabled = 1
; Unix socket the websocket server listens on
unix_socket = /var/run/pajbot/streamer_name/websocket.sock
; This should be the URI the web socket can be reached at from outside
host = wss://streamer_name.your-domain.com/clrsocket
; information about you, the maintainer and host of this bot. will be shown on the /contact page
[maintainer]
name = KKonaTestAdmin
contact_string = You can contact me over at <a href="https://KKonaTestAdmin.se/contact">CONTACT LINK</a>
; credentials for the P&SL module
[pnsl]
; bearer token can be generated here https://bot.tetyys.com/swagger/index.html
;token = abcef