-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path01_configmap.yaml
59 lines (58 loc) · 2.24 KB
/
01_configmap.yaml
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
# create config map
# for config.yaml
# and cookies.txt (optional)
apiVersion: v1
kind: ConfigMap
metadata:
name: yt-notifier-config
namespace: yt-notifier-namespace
data:
config.yaml: |
bot:
token: XXXXXXXXXXXXXXXXXXXXX
chat_id: -100XXXXXXXXXXXXXXXXX
temp_chat_id: -100XXXXXXXXXXXX
report:
template: |
<h1>✅ СЕЙЧАС В ЭФИРЕ:</h1>
<br/>
<ol type='1'>
{% for channel in channels %}
<li>
<b><a href='{{channel.url}}'>{{channel.label}}</a></b> <br/>
{% if channel.concurrent_view_count is not none %}
<b>👀{{channel.concurrent_view_count}}</b>
{% endif %}
{% if channel.like_count is not none %}
<b>👍{{channel.like_count}}</b>
{% endif %}
{% if channel.duration is not none %}
<b>🕑{{channel.duration}}</b>
{% endif %}
</li>
<br/>
{% endfor %}
</ol>
<hr/>
<i>💬 Заходите в наш <a href='https://t.me/Discordovchat'>чат</a>.</i>
<br/>
<i>🤖 <a href='https://t.me/discordovo_feedback_bot'>Бот-предложка</a>, присылайте интересные ссылки на каналы/видео/картинки. </i>
empty: |
<b>🤷 Интересных стримов сейчас нет.</b>
<hr/>
<i>💬 Заходите в наш <a href='https://t.me/Discordovchat'>чат</a>.</i>
<br/>
<i>🤖 <a href='https://t.me/discordovo_feedback_bot'>Бот-предложка</a>, присылайте интересные ссылки на каналы/видео/картинки. </i>
start_scheduler: True
interval_s: 300
# For notification from Twitch
# You can obtain from https://dev.twitch.tv/console
# twitch:
# app_id: xxxxxxxxxxxxxxxxxxxxxxxxxx
# app_secret: xxxxxxxxxxxxxxxxxxxxxxxxxx
# Path to cookie file for youtube-dlp
# youtube:
# cookies_filepath: /path/to/cookies.txt
cookies.txt: |
# Netscape HTTP Cookie File
# This file is generated by yt-dlp. Do not edit.