-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.example.toml
150 lines (133 loc) · 5.64 KB
/
config.example.toml
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
# General options (required)
id = "d5zsqiNgBGU" # YouTube video ID to get the comments for
savestateFile = "./savestate.json" # Location where the savestate is saved (you probably don't want to change this)
maxMultiVoters = 1 # The maximum number of votes per person (use 0 for unlimited)
deadlineHours = 48 # Only count comments up to this time in hours after the video is uploaded (use 0 for unlimited)
# Authentication (required)
# Set to true to use OAuth2, false to use API key. Remember to set this back to false if you're counting videos not uploaded by you.
isAuthenticated = false
# when isAuthenticated = false
key = "AIzaSyXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" # Replace with your actual api key, (see the README) and don't share it with anyone
# when isAuthenticated = true
clientId = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" # see README
clientSecret = "XXXXXXXXXXXXXXX" # see README
authCache = "./authdata.json" # file where OAuth2 tokens are saved (do not share!) Created automatically, you probably don't need to change this.
# Bracketcounter is a live program: if you keep it running it will get more votes.
# However it will not refetch all the comments regularly, because of the API quota system.
# Basically YouTube only allow you to send a number of API requests per day.
# This limits you to (by default) about 10000 pages of comments a day.
# There is two types of refresh:
# * Short refresh
# Bracketcounter will only fetch pages of comments until it sees a comment which it has
# already seen. This is sufficient for 90% of accuracy.
# * Full refresh (recount)
# Bracketcounter will delete the entire current working set of comments and get all the
# pages again. This is more accurate, because it will be able to detect deletions and edits of
# old comments, but it is slower and uses more quota, which is why it is run less frequently.
# Too force a full refresh, which you should do at the end of voting,
# stop the program, delete the savestate, and restart it.
# The refresh time here may be too frequent for videos with *a lot* of comments like BFB;
# try 30 seconds if you run into quota issues. Check your quota usage in the Google API console.
refreshTime = 15 # Amount of seconds for the page refresh
longRefreshTime = 28800 # Amount of seconds to wait for the full refresh
# re is a regular expression (see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions ) used to find votes in a comment.
# It should have one "capture group" which should contain only the vote code.
# The default ("\\[(.)\\]") will count single character, square bracket votes (eg [A] or [a]).
# For any number over 1 character bracket votes (or a combination eg 1 and 2 characters) try "\\[(.+)\\]"
# Bracketcounter is designed to be case insensitive (all uppercase letters are converted to lowercase),
# so bear this in mind if you create a regex.
# If you're counting BFB or a similar format you shouldn't need to change this.
re = "\\[(.)\\]"
# WebSockets system options
# These are only really useful for figgyc or if you want to run your own live results website
liveMode = false # Enable websockets systems
port = 9764 # This is the port on which the websocket is served, you'll want to use this number in your reverse proxy
suspended = false # Make the program not fetch comments (intended to let you keep the service running without wasting quota)
accessCode = "default" # Password, set on client with localStorage.setItem("access", "password"), if you don't want to use a password make sure this is "default"
# List of user IDs who you do not want to count
blacklist = [
]
# Only options with the format code = ["name", "#color"] are counted by the program.
# The color format used here is "hex colors". Google "color picker", or find it in most major image editors.
[contestants]
b = ["Gelatin", "#12d70d"]
a = ["Flower", "#ff72ff"]
# COLOR LIST
# TPOT
# Death PACT again
# ["Lightning", "#e8eb14"]
# ["Marker", "#9451ff"]
# ["Tree", "#11c852"]
# ["Black Hole", "#06041c"]
# ["Remote", "#4c3c3d"]
# ["Fanny", "#326bf6"]
# # ["Pie", "#f7b578"]
# are you okay?
# ["Eraser", "#f96887"]
# ["Fries", "#f38749"]
# ["Golf Ball", "#bac2cf"]
# ["Pen", "#1d87fd"]
# ["Puffball", "#ffd1ff"]
# ["Tennis Ball", "#b7e834"]
# ["TV", "#33384b"]
# Just Not
# ["Bomby", "#787ba4"]
# ["Book", "#00dd52"]
# ["Cake", "#9c6058"]
# ["Naily", "#c4bbcc"]
# ["Nickel", "#85aeb4"]
# ["Pillow", "#e6bef2"] # <3
# ["Price Tag", "#fa3a3b"]
# team8s
# ["Barf Bag", "#dac48a"]
# ["Coiny", "#ffa944"]
# ["Donut", "#f4ae70"]
# ["Gaty", "#bac6ff"]
# ["Needle", "#bdcccf"]
# ["Pin", "#ff6759"]
# ["Saw", "#fe769c"]
# the S!
# ["Bottle", "#8dd1ba"]
# ["Clock", "#6899db"]
# ["Cloudy", "#bfd3ec"]
# ["Ice Cube", "#c2d4f8"]
# ["Rocky", "#818d81"]
# ["Winner", "#bfc5ff"]
# ["Yellow Face", "#fed102"]
# The Strongest Team on Earth.
# ["Basketball", "#ff8329"]
# ["Bell", "#e08f62"]
# ["Eggy", "#ffef54"]
# ["Foldy", "#5acbd3"]
# ["Grassy", "#4ae600"]
# ["Robot Flower", "#fe8cfe"]
# ["Snowball", "#c1c2f2"]
# EXIT
# ["8 Ball", "#909bb7"]
# ["Bracelety", "#5ee1fd"]
# ["David", "#d6ebec"]
# ["Dora", "#ae7562"]
# ["Firey Jr", "#ffd62e"]
# ["Match", "#ff9d3c"]
# ["Roboty", "#22e16d"]
# ["Ruby", "#fd1850"]
# ["Pencil", "#ffb20a"]
# ["Spongy", "#fdf02f"]
# ["Stapy", "#ff3778"]
# BFB split
# ["Balloony", "#02be81"]
# ["Blocky", "#f42628"]
# ["Bubble", "#86edfe"]
# ["Firey", "#ffa901"]
# ["Flower", "#ff72ff"]
# ["Gelatin", "#12d70d"]
# ["Leafy", "#70f31c"]
# ["Lollipop", "#b669f3"]
# ["Loser", "#ffe286"]
# ["Taco", "#f9d599"]
# ["Teardrop", "#1fbce9"]
# ["Woody", "#f3a656"]
# ["Four", "#327cd0"]
# ["X", "#fffd34"]
# ---
# TPOT recos: see https://cdn.discordapp.com/attachments/397133769431318538/692816182205743104/unknown.png