-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcolor_num_to_block.py
More file actions
23 lines (20 loc) · 938 Bytes
/
color_num_to_block.py
File metadata and controls
23 lines (20 loc) · 938 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from conditionblock import ConditionBlock
import actions
import datetime
import conditions
dic = {}
dic[('PINK', 4)] = ConditionBlock('if', '')
dic[('PINK', 5)] = ConditionBlock('else', '')
dic[('PINK', 6)] = ConditionBlock('for', '')
dic[('YELLOW', 3)] = conditions.check_face
dic[('YELLOW', 4)] = conditions.check_time
dic[('YELLOW', 5)] = conditions.ret_true
dic[('YELLOW', 6)] = conditions.ret_false
dic[('YELLOW', 8)] = conditions.check_pass
dic[('GREEN', 3)] = ConditionBlock('action', actions.wait_five_sec)
dic[('GREEN', 4)] = ConditionBlock('action', actions.open_google)
dic[('GREEN', 5)] = ConditionBlock('action', actions.open_spotify)
dic[('GREEN', 6)] = ConditionBlock('action', actions.print_time)
dic[('GREEN', 10)] = ConditionBlock('action', actions.get_tweets_refugees)
dic[('GREEN', 11)] = ConditionBlock('action', actions.get_tweets_global)
dic[('GREEN', 13)] = ConditionBlock('action', actions.get_tweets_yext)