-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathslacker.cfg
48 lines (42 loc) · 1.84 KB
/
slacker.cfg
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
# slacker.cfg
# -----------
# You need two things from slack. An "incoming WebHook" and a "Slash
# Command" token. The slash command token is used to enable transfers of
# the text to be parsed to the slacker.py script. The WebHook is used to
# send the processed result to the slack channel, along with the username
# of the person who sent it. I use "/m" as my slash command invocation
# (because it's easy) so if I want to send something, I type things like
# this...
#
# /m The temperature here is {tmp}
#
# ...then, in the channel, this is sent to everyone:
#
# fyngyrz: The temperature here is 32.2ºF
# Set up the following unique-to-you details:
# -------------------------------------------
# Your slacker webhook. Replace ... with your details:
# ----------------------------------------------------
HOOK=https://hooks.slack.com/services/...
# Your slacker slash command token. Replace ... with your token:
# --------------------------------------------------------------
TOKEN=...
# The world-writable location where the slack-cannery file
# will reside on your server. A trailing slash is optional
# so for example, both /worldwritable and /worldwritable/
# will work. Replace ... with the appropriate path:
# --------------------------------------------------------
WWRITE=...
# The file debug information is written to. You probably don't
# need to change this, but you can if you want to. Debug info,
# if debug is turned on, is written to the WWRITE location.
# ------------------------------------------------------------
RECORDER=slacking.txt
# Debug mode:
#
# MODE = 0 # normal operatations
# MODE = 1 # just log to WWRITE/RECORDER file
# MODE = 2 # test mode: act like pure slash command
# MODE = 3 # log to WWRITE/RECORDER and act like pure slash command
# ----------------------------------------------------------------------
MODE=0