-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.example.yaml
88 lines (73 loc) · 3.03 KB
/
config.example.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
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
apiKey: <your twickets api key> # REQUIRED: See README.md for details on how to obtain.
country: GB # Currently only GB is supported
# Configure your notification services.
# Delete the ones you do not need.
notification:
ntfy:
url: <your ntfy url>
topic: <your ntfy topic>
username: <your ntfy username>
password: <your ntfypassword>
telegram:
token: <your telegram api token>
chatId: <your telegram chat id>
gotify:
url: <your gotify url>
token: <your gotify api token>
# Global configuration that applies to all tickets.
# These can be overridden on a ticket-by-ticket basis (see below).
# The below are examples of all global configuration settings.
# Remove the settings you do not need.
global:
# Regions which ticket listings must be in.
# Defaults to all regions if not set.
# Full list of regions can be seen here:
# https://github.com/ahobsonsayers/twigots/blob/main/location.go#L79-L90
regions:
- GBLO # Only look for tickets in London
# How similar the event name in the ticket listing must be to the one you specified.
# Defaults to 0.85 if not set, allowing for naming inconsistencies. # Between 0-1
# Between 0-1
eventSimilarity: 0.85
# How many tickets must be in the listing.
# Defaults to any number of tickets if not set.
numTickets: 2
# Minimum discount (including fees) of the tickets in the listing against the original price.
# Defaults to any discount if not set.
discount: 15
# Notification services to send found ticket listings to.
# Defaults to all configured services above.
notification:
- ntfy
# Ticket configuration.
# Settings set here take priority over global settings.
# If a setting is not set/specified here, the global setting will be used.
# To unset a global setting and use the default, set it to a negative value or an empty list, depending on the type.
# The below are examples. Tweak them as needed.
tickets:
# Look for Lion King tickets using the global configuration.
# For global configuration settings not set, defaults will be used.
- event: Lion King # REQUIRED
# Look for Taylor Swift tickets, overriding the global configuration.
- event: Taylor Swift # REQUIRED
# Override global configuration setting.
# Event name must be an exact match.
# For example, this will NOT match "Taylor Swift: The Eras Tour".
eventSimilarity: 1
# Override global configuration setting.
# Reset to default - watch for tickets from any region.
regions: []
# Override global configuration setting.
# Reset to default - watch for tickets with any discount.
numTickets: -1
# Override global configuration setting.
# Reset to default - watch for tickets with any discount.
discount: -1
# Override global configuration setting:
# Send notifications to Telegram (instead of ntfy).
notification:
- telegram
# Look for Oasis tickets (mostly) using the global configuration.
# Notifications will be sent to all configured notification services.
- event: Oasis # REQUIRED
notification: []