forked from ALazyMeme/pajbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.ini
126 lines (114 loc) · 6.38 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
[main]
; Twitch User ID of the bot account
bot_id = 123456789
; Twitch User ID of the channel the bot runs in
streamer_id = 123456789
; Twitch User ID of the primary admin (will be granted level 2000 initially)
admin_id = 123456789
; Twitch User ID of an additional channel the bot will join and receive commands from.
; You can remove this config entry if you don't want to use this feature
control_hub_id = 123456789
; 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
; 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 = control_hub` outputs all messages intended to be whispered to the control hub 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
; Optional section if you want to configure how user ranks are refreshed
; 0 (default) = refresh every 5 minutes or so
; 1 = refresh once on startup only
; 2 = never refresh (Be wary of setting this on a completely new bot)
;rank_refresh_mode = 0
; Modify the delay of rank refreshing (in minutes)
; Rank refresh config option should be either not set, or set to 0
;rank_refresh_delay = 5
[web]
; Optionally different name of the streamer, if you don't want to/can't use 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
; client_id used for both the bot and the web login
[twitchapi]
client_id = 0f958ce6bf20ba8ea84a21e43ebba1
client_secret = cdaa2b0832ccd5b1f053f2faffc37f
; setting redirect_uri manually will override the default: https://<domain>/login/authorized
;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
; Optional section if you want to disable posting of tweets.
; 0 = default function, writing is allowed
; 1 = no writing allowed, bot will not attempt to post tweets
;disallow_write = 0
[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
; Setting unix_socket manually will override the default: /var/run/pajbot/<streamer>/websocket.sock
;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