-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample.yaml
100 lines (96 loc) · 4.21 KB
/
sample.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
89
90
91
92
93
94
95
96
97
98
99
100
# This file documents a sample configuration for Slacksoc.
#
# To users: you'll need to fill in a lot of blanks in here. Anything you need to
# fill in is left in UPPER CASE so you can see it. Usually there will be a
# comment above it describing how to fill it out. You may also just want to
# eliminate some of the plugin entries if you don't need them.
#
# To developers: core plugins are listed in this configuration file. Your
# core plugin should have its configuration documented here. You should paste
# this documentation into the plugins/plugin.go docstring and keep it up to
# date.
# Go into "Custom Integrations" and create a bot!
# You can provide this token in the configuration file, or via the SLACK_TOKEN
# environment variable.
token: SLACK TOKEN
# This is where plugins will store their state. It's optional - leaving it unset
# will select state.gob instead.
stateFile: state.gob
# And here we specify the plugins we would like to load. Only plugins in this
# list will be loaded.
plugins:
- name: Respond
# This is a list of objects that define a response. (As of now) only one
# response can ever fire at a time--the first match.
#
# * trigger is a regular expression that uses the syntax of RE2:
# https://golang.org/s/re2syntax
# + For case insensitive matching, put (?i) at the front of your regex
# + The regular expression need only match within the string, not
# necessarily the whole string.
# + Use ^ and $ to match beginning/end of the string
# + If you have trouble with YAML messing up your regex, check this:
# http://stackoverflow.com/questions/6915756/uninterpreted-strings-in-yaml
#
# * replies - A list. One is randomly selected and sent to the channel on
# match.
#
# * reacts - A list. One is randomly selected and added to the message on
# match. Don't include colons. This will happen in addition to the reply.
responses:
- trigger: ^(yo|hey|hi|hello|sup),? slacksoc$
replies: ["hello", "wassup", "yo"]
- trigger: ^((good)?bye|adios),? slacksoc$
replies: ["goodbye"]
- trigger: (?i)i love you
reacts: ["heart"]
- name: Debug
trusted:
- brenns10
- name: Love
# You'll need to get this from the Admin section of CWRU love. You can
# provide this token via the config file, or the LOVE_API_KEY environment
# variable.
apiKey: LOVE_API_KEY
baseUrl: https://cwrulove.appspot.com/api
- name: GitHub
# clientID and clientSecret should be created by registering an app
# https://github.com/settings/applications/new
clientID: GITHUB_CLIENT_ID
clientSecret: GITHUB_CLIENT_SECRET
# accessToken is the authorization for your application to act on behalf
# of a particular user. Log into this user on GitHub and go here:
#
# https://github.com/login/oauth/authorize?scope=repo&client_id=$CLIENT_ID
#
# Then, take the code appended to the URL and put it into this curl:
#
# curl -X POST -F 'client_id=$CLIENT_ID' \
# -F 'client_secret=$CLIENT_SECRET' \
# -F 'code=$CODE' \
# https://github.com/login/oauth/access_token
#
# The accessToken will be in the response.
accessToken: GITHUB_ACCESS_TOKEN
# You may provide the above GitHub tokens via the correspondingly named
# environment variables instead (e.g. GITHUB_ACCESS_TOKEN)
- name: RealName
channel: general
- name: HotPotato
# The timeout specifies how many MINUTES until a person loses the game for
# not passing the potato
timeout: 180
# The diversity threshold is an upper limit on the following quantity:
#
# diversity = (# of "possessions") / (# unique people)
#
# Say that the potato went A -> B -> C -> B -> D -> A -> E. There are a
# total of 7 "possessions" of the potato, and 5 unique people. So the
# diversity is 7/5 = 1.4.
#
# The game will not allow a potato pass that would make the diversity
# strictly greater than the threshold. The effect of this is to force the
# game to be played among new people, rather than cycling through the same
# clique of people. Hopefully, this encourages the game to be inclusive and
# fun!
diversityThreshold: 2.5