Skip to content

Commit 907b736

Browse files
committed
Update livestreams and schedule-cache file paths
1 parent 2435958 commit 907b736

7 files changed

Lines changed: 13 additions & 14 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
__pycache__
66
.DS_Store
77
registered_log.txt
8-
schedule.json
8+
schedule_cache.json
99
pretix_cache.json
1010
*.egg-info/
11+
livestreams.toml

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ All configuration is server-agnostic. You can set up your own Discord server and
2424
Configuration files:
2525

2626
* [`prod-config.toml`](./prod-config.toml) or [`test-config.toml`](./test-config.toml): Prod/Test configuration
27-
* [`livestreams.toml`](./livestreams.toml): Livestream URL configuration
27+
* [`test-livestreams.toml`](./test-livestreams.toml): Test livestream URL configuration
2828

2929
Arguments and environment variables:
3030

@@ -36,7 +36,7 @@ Files expected in the current directory (may be empty):
3636

3737
* `pretix_cache.json`: Local cache of Pretix ticket data
3838
* `registered_log.txt`: Log of registered users
39-
* `schedule.json`: Local cache of [programapi](https://github.com/europython/programapi) schedule
39+
* `schedule_cache.json`: Local cache of [programapi](https://github.com/europython/programapi) schedule
4040

4141
## Setup
4242
### Quickstart using `pip`

ansible/deploy-playbook.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
repository_url: https://github.com/EuroPython/discord.git
66

77
tasks:
8-
98
- name: Enable persistent logging for journald
109
ini_file:
1110
path: /etc/systemd/journald.conf
@@ -15,7 +14,6 @@
1514
no_extra_spaces: true
1615
backup: true
1716

18-
1917
- name: reload systemd-journald
2018
systemd:
2119
name: systemd-journald
@@ -94,9 +92,9 @@
9492
owner: bot
9593
group: bot
9694

97-
- name: Create schedule.json in bot's home directory
95+
- name: Create schedule_cache.json in bot's home directory
9896
file:
99-
path: /home/bot/schedule.json
97+
path: /home/bot/schedule_cache.json
10098
state: touch
10199
owner: bot
102100
group: bot

compose.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ services:
44
build:
55
context: .
66
env_file:
7-
- /etc/EuroPython/discord/.secrets
7+
- /root/.secrets
88
volumes:
99
- type: bind
1010
source: prod-config.toml
1111
target: /home/bot/prod-config.toml
1212
read_only: true
1313

1414
- type: bind
15-
source: /etc/EuroPython/livestreams/livestreams.toml
15+
source: /root/livestreams.toml
1616
target: /home/bot/livestreams.toml
1717
read_only: true
1818

@@ -22,8 +22,8 @@ services:
2222
read_only: false
2323

2424
- type: bind
25-
source: /home/bot/schedule.json
26-
target: /home/bot/schedule.json
25+
source: /home/bot/schedule_cache.json
26+
target: /home/bot/schedule_cache.json
2727
read_only: false
2828

2929
- type: bind

prod-config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ pretix_cache_file = "pretix_cache.json"
3333
# UTC offset in hours (e.g. 2 for CEST)
3434
timezone_offset = 2
3535
api_url = "https://static.europython.eu/programme/ep2025/releases/current/schedule.json"
36-
schedule_cache_file = "schedule.json"
36+
schedule_cache_file = "schedule_cache.json"
3737
livestream_url_file = "livestreams.toml"
3838
main_notification_channel_name = "programme-notifications"
3939

test-config.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ pretix_cache_file = "pretix_cache.json"
3333
# UTC offset in hours (e.g. 2 for CEST)
3434
timezone_offset = 2
3535
api_url = "https://static.europython.eu/programme/ep2025/releases/current/schedule.json"
36-
schedule_cache_file = "schedule.json"
37-
livestream_url_file = "livestreams.toml"
36+
schedule_cache_file = "schedule_cache.json"
37+
livestream_url_file = "test-livestreams.toml"
3838
main_notification_channel_name = "programme-notifications"
3939

4040
# optional simulated start time for testing program notifications
File renamed without changes.

0 commit comments

Comments
 (0)