-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsample_config.toml
129 lines (112 loc) · 5.36 KB
/
sample_config.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
[general]
# These users are allowed to access admin features like
# Inviting the bot to rooms and banning users
# Requires at least 1
authorized_users = [
'@demouser1:matrix.homeserver.com',
'@demouser2:matrix.homeserver.com',
]
# Rooms in which help commands are authorized.
# If no rooms are specified, all rooms the bot is in are allowed.
# Optional
help_rooms = ['!randomalpha:homeserver.com']
# Rooms in which users will be banned when !ban command is used
# If no rooms are specified, ban feature is disabled.
# Optional
ban_rooms = ['!randomalpha:homeserver.com']
# Enable bot feature to perform common imperial <--> metric conversions
# Only applies to commandless conversions
# Required
enable_unit_conversions = true
# Enable bot feature to correct users if they misspell project name
# Required
enable_corrections = false
# Used to exclude units from conversion if there is a space between
# the quanity and unit. Such as in the case of "Im getting a 404 in response"
# Chances are, you dont want to convert that 404 as if it were inches.
# DOES NOT disable unit conversion for 404in
# Optional
unit_conversion_exclusion = [
'in',
]
# Only required if enable_corrections = true
insensitive_corrections = [
'Jellyfish',
'Jelly Fin',
]
# Only required if enable_corrections = true
sensitive_corrections = [
'JellyFin',
'jellyFin',
]
# Must have 2 replacements
# The first replacement is replaced with the user that triggered the correction
# The second replacement is replaced with the exact spelling of the configured
# correction that was triggered. This means that if "jellyfish" triggers,
# it will be replaced with "Jellyfish"
#
# NOTE: If your bot is in rooms with IRC, make sure the message below
# does not exceed 512 chars once replacements have taken place.
# If you do not do this, IRC users will be given a link to a long message upon triggering
# Only required if enable_corrections = true
correction_text = '''I'd just like to interject for a moment {}. What you're referring to as {}, is in fact, Jellyfin, or as I've recently taken to calling it, Emby plus Jellyfin. Jellyfin is not a media server unto itself, but a free component of a media server as defined by Luke Pulverenti. Through a peculiar turn of events, the version of Jellyfin which is widely used today is basically developed with slave labor. Please recognize the harm caused to the slaves by misnaming the project.'''
# List of rooms to exclude from correction feature.
# Must be internal room id and not an alias
# eg: "!randomalpha:homeserver.com" and NOT
# "#friendlyname:homeserver.com"
# Optional
correction_exclusion = ['!randomalpha:homeserver.com']
# The keys to match for linking urls
# If you define "docs" here "docs@link" will link "link"
# while "wiki@link" will fail
# Must be lowercase
# Only required if linkable urls are set below
link_matchers = [
'docs',
]
#Required, do not set to empty either
webhook_token = "token"
# User url, account, and password bot will log in with
# Required
[matrix_authentication]
url = 'https://matrix.homeserver.com'
username = '@botuser:matrix.homeserver.com'
password = 'supersecretpassword'
# Access token used to perform graphql queries.
# Required if you have searchable repos
[github_authentication]
access_token = 'supersecretaccesstoken'
# Searchable github repos.
# Messages containing "jf#1234" or "jf #1234" will search
# repo "jellyfin/jellyfin" for issues and pulls, then link if found
# Optional
[searchable_repos]
jf = 'jellyfin/jellyfin'
jellyfin = 'jellyfin/jellyfin'
jf-web = 'jellyfin/jellyfin-web'
jellyfin-web = 'jellyfin/jellyfin-web'
# Linkable urls. Can link to anything with a url.
# messages containing "docs@hwa" or "docs @hwa" will link
# doc "https://jellyfin.org/docs/general/administration/hardware-acceleration.html"
# Optional
[linkable_urls]
hwa = 'https://jellyfin.org/docs/general/administration/hardware-acceleration.html'
network = 'https://jellyfin.org/docs/general/networking/index.html'
# Simple text expansion on keywords. Will present text unformatted as configured below
# messages containing "$kodi" or "$ kodi" will expand text
# Optional
[text_expansion]
kodi = 'This addon syncs metadata from selected Jellyfin libraries into the local Kodi database. This has the effect of making interacting with it feel very much like vanilla Kodi with local media (shows up under Movies/TV Shows on the home screen by default, virtually no delay, etc). However, it also tends to consume the database and not share well, so if you have local media or something else that interacts with the database directly, you'll have conflicts and it won't be happy. The sync process can take some extra time on Kodi startup if you don't leave it running 24/7, but it's mostly in the background while Kodi is running.'
# Group pings. Can ping an arbitrary number of users in response to
# messages containing "%backend" or "% frontend"
# Group alises can be made with '%group-name' in the config file.
# Aliases will not expand aliases.
# group %all is reserved, and if configured will lead to the program to close on startup
# Optional
[group_pings]
backend = ['@user1:matrix.homeserver.com', '@user2:matrix.homeserver.com']
frontend = ['%web', '%tui-client']
server = ['%backend']
web = ['@user3:matrix.homeserver.com']
tui-client = ['@user4:matrix.homeserver.com']
api = ['%backend', '%web', '@user5:matrix.homeserver.com'] # Will only be "@user5:matrix.homeserver.com"