-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml
31 lines (29 loc) · 898 Bytes
/
config.yml
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
bot:
nick: Maido
realname: 。◕‿◕。
server: irc.euirc.net
ssl: no
#port: 6667
#ssl: yes
#port: 6697
channels:
#- '#MaidoTest'
- '#niwohlos'
# Ignore commands sent by these nicks. Write these in lowercase, or it won't work!
ignored_nicks:
- ytpeek
domain:
# Rewrite the URLs where pattern 'matches' to 'target', download the file and parse it as
# 'datatype'(=html,json,text), and pass that to the formatter as first argument with the
# matcher object as second argument.
rewrite:
- formatter: 4chan
datatype: json
pattern: 'boards\.4chan\.org\/((\w+)\/(res|thread)\/\d+).*'
target: 'a.4cdn.org/\1.json'
- formatter: 4chan
datatype: json
pattern: 'boards\.4chan\.org\/((\w+)\/(res|thread)\/\d+)\S*#p(\d+).*'
target: 'a.4cdn.org/\1.json'
- pattern: 'i\.imgur\.com/([^.]*)(\..*)?'
target: 'imgur.com/\1'