Compare commits

..
2 Commits
Author SHA1 Message Date
Kaaninchen 199cedb8b1 commit so that the new branch uploads 2026-08-18 14:33:22 +02:00
Kaaninchen 172d6d5cf1 add README notice about maintenance status 2026-08-18 14:31:47 +02:00
7 changed files with 4 additions and 108 deletions
+4
View File
@@ -1,4 +1,8 @@
# Gleiswechsel
## THIS BRANCH IS NO LONGER MAINTAINED
## This is the code for the legacy Gleiswechsel bot, based on the much simpler dbf API.
Gleiswechel ist ein Discord Bot, welcher einen Sprachkanal zu einer real-existierenden, aktuell befahrenden Zugverbindung umbenennt. Diesen Namen behält der Kanal so lange, wie die Verbindung in echt dauert.
![Beispiel Kanal](.github/preview_kanal.png)
-9
View File
@@ -1,9 +0,0 @@
# Secrets
.env*
# Dependencies
node_modules
# OS files
.DS_Store
Thumbs.db
@@ -1,29 +0,0 @@
info:
name: Geocode München HBF
type: http
seq: 1
http:
method: GET
url: https://api.transitous.org/api/v1/geocode?text=München Hbf
headers:
- name: User-Agent
value: Gleiswechsel-Discord-Bot
params:
- name: text
value: München Hbf
type: query
auth: inherit
runtime:
scripts:
- type: after-response
code: |-
const data = res.getBody();
bru.setEnvVar("stop_id", data[0].id);
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5
@@ -1,32 +0,0 @@
info:
name: Stoptimes for Station
type: http
seq: 3
http:
method: GET
url: https://api.transitous.org/api/v1/stoptimes?stopId={{stop_id}}&n=10
headers:
- name: User-Agent
value: Gleiswechsel-Discord-Bot
params:
- name: stopId
value: "{{stop_id}}"
type: query
- name: n
value: "10"
type: query
auth: inherit
runtime:
scripts:
- type: after-response
code: |-
const data = res.getBody();
bru.setEnvVar("trip_id", data.stopTimes[0].tripId);
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5
-22
View File
@@ -1,22 +0,0 @@
info:
name: Trip Details
type: http
seq: 4
http:
method: GET
url: https://api.transitous.org/api/v2/trip?tripId={{trip_id}}
headers:
- name: User-Agent
value: Gleiswechsel-Discord-Bot
params:
- name: tripId
value: "{{trip_id}}"
type: query
auth: inherit
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5
@@ -1,6 +0,0 @@
name: Transitous API
variables:
- name: stop_id
value: at-Railway-Current-Reference-Data-2026_de:09162:100:11:11
- name: trip_id
value: 20260815_11:52_de-DELFI_3338623109
-10
View File
@@ -1,10 +0,0 @@
opencollection: 1.0.0
info:
name: Gleiswechsel-API
bundled: false
extensions:
bruno:
ignore:
- node_modules
- .git