-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfig.py
executable file
·41 lines (39 loc) · 985 Bytes
/
config.py
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
#!/usr/bin/python
# -*- coding: utf-8 -*-
#Base URL (Don't change this)
BASE_URL = "https://slack.com/api/chat.postMessage"
# Configuration
access_token = "ACCESS_TOKEN_HERE"
user_name = "USER_NAME_FOR_YOUR_SLACK_BOT"
channel = "CHANNEL_NAME_YOU_WANT_TO_POST"
# time format in 12 hours (AM/PM) or 24 hours
time_format = 12
# Get notified before X minutes, specify minutes if want to get notified multiple times, seperating by commas
notify_before = "5,3,1"
# Configure the time according to time format
events={
'fajr': {
'time': '5:30 AM',
'message': "It's *`Fajr`* time."
},
'zuhr': {
'time': '1:15 PM',
'message': "It's *`Zuhr`* time."
},
'asr': {
'time': '4:15 PM',
'message': "It's *`Asr`* time."
},
'magrib': {
'time': '5:20PM',
'message': "It's *`Magrib`* time."
},
'isha': {
'time': '6:45 PM',
'message': "It's *`Isha`* time."
},
'standup':{
'time': '11:15 AM',
'message': "*`Stand up`* on meeting room. Everyone please come in time."
}
}