-
Notifications
You must be signed in to change notification settings - Fork 0
/
scripts.yml
80 lines (76 loc) · 3.24 KB
/
scripts.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
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
#This configuration file is written in YAML! That means the spaces before each line really matter.
#Just carefully watch your indentation and formatting, and you should be able to figure it out.
# If you need to use special characters like $ # @ * etc., surround your message in " "
#See those little |- symbols? Those tell the config file that there's a block of text coming up.
# Each question's 'name' variable must match a database column, or the bot will give an error on startup
registration:
table: members
beginning: I'll register you for HvZ. Type 'cancel' at any time to stop this conversation.
ending: You are registered for HvZ! Please read the rules. New channels are available to you.
starting_processor: registration_start
ending_processor: registration_end
postable_button_color: green
postable_button_label: Register
questions:
- column: Name
display_name: Name
query: |-
What is your name? Use the name you would use for the mail center, like John Smith.
valid_regex: '\D*'
rejection_response: No numbers allowed in names.
processor: name
- column: CPO
display_name: CPO
query: |-
What is your CPO? This is used for player band delivery.
If you don\'t have one (such as commuters), please type "None"
valid_regex: '(?i)\d*|none'
rejection_response: I'm looking for a single number here, or \'None\'.
- column: Email
display_name: Email
query: What is your @LETU.edu email?
valid_regex: '(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$)'
rejection_response: That isn\'t a valid email.
- column: OZ_Desire
display_name: Original Zombie Desire
query: Do you want a chance to be one of the original zombies? If chosen, you won\'t be a human this game.
valid_regex: '(?i)(yes|no)'
rejection_response: Just need a yes or no here.
button_options:
'Yes': Green
'No': Red
- column: Want_Bandana
display_name: Want Bandana
query: |-
Do you want us to give you a green bandana with your tag code on it?
If no, you will need to write the code we give you on your own green bandana yourself.
valid_regex: '(?i)\s*(yes|no)\s*'
rejection_response: Just need a yes or no here.
button_options:
'Yes': Green
'No': Red
tag_logging:
table: tags
modal: true
modal_title: Log a Tag
beginning: Let's log a tag. Type 'cancel' at any time to stop this conversation.
ending: Tag logged! Make sure your newly-brainless friend feels welcome in the hoard.
starting_processor: tag_logging_start
ending_processor: tag_logging_end
postable_button_label: Log a Tag
postable_button_color: Green
questions:
- column: tagged_id
display_name: Tag Code
query: What is the tag code of the human you tagged?
valid_regex: '[a-zA-Z\d]{6}'
rejection_response: 'Invalid tag code. The tag code is 6 characters of numbers and capital
letters. None of these: 0 O Q I 1 D V U 5 S 2 Z'
processor: tag_code_to_member_id
- column: tag_time
display_name: Tag Time
query: "About when did the tag happen? Format: 3:04pm"
valid_regex: '(?i)\d{1,2}:[0-5]?[0-9]\s?(am|pm)\s?(yesterday)?'
rejection_response: Please use a format like 12:26pm or 7:00 am
modal_default: Current_Time
processor: tag_time