/
example.ini
109 lines (100 loc) · 5.47 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
[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
; display 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
; 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
[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 = 12
; phrases the bot prints when it starts up and exits
[phrases]
welcome = {nickname} {version} running!
quit = {nickname} {version} shutting down...
; 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
[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
; If you are planning to use the pleblist system: This is the YouTube API key the bot should use.
; If you don't plan on using the pleblist, you can leave this as the default value like below.
[youtube]
developer_key = abc
; 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>