-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
70 lines (53 loc) · 2.55 KB
/
index.html
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
<!DOCTYPE html>
<html>
<head>
<title>bot.rb</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, target-densitydpi=160dpi, initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
<link rel="stylesheet" media="all" href="docco.css" />
</head>
<body>
<div id="container">
<div id="background"></div>
<ul class="sections">
<li id="title">
<div class="annotation">
<h1>bot.rb</h1>
</div>
</li>
<li id="section-1">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-1">¶</a>
</div>
</div>
<div class="content"><div class='highlight'><pre><span class="hljs-comment">#!/usr/bin/env ruby</span></pre></div></div>
</li>
<li id="section-2">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-2">¶</a>
</div>
</div>
<div class="content"><div class='highlight'><pre><span class="hljs-keyword">require</span> <span class="hljs-string">"./lib/greenbot.rb"</span>
tell ENV[<span class="hljs-string">'PROMPT_1'</span>]
issue = note(ENV[<span class="hljs-string">'PROMPT_2'</span>])
<span class="hljs-keyword">if</span> confirm(<span class="hljs-string">"Would you like someone to contact you?"</span>)
contact_me = <span class="hljs-literal">true</span>
contact_me.remember(<span class="hljs-string">"contact_me"</span>)
name = ask(<span class="hljs-string">"When we call, who should we ask for?"</span>)
name.remember(<span class="hljs-string">"who_to_ask_for"</span>)
<span class="hljs-keyword">if</span> confirm(<span class="hljs-string">"Is there another number we should try?"</span>)
better_number = ask(<span class="hljs-string">"Please enter that number with an area code"</span>)
better_number.remember(<span class="hljs-string">"better_number"</span>)
<span class="hljs-keyword">end</span>
<span class="hljs-keyword">else</span>
tell(<span class="hljs-string">"No problem at all."</span>)
<span class="hljs-keyword">end</span>
tell ENV[<span class="hljs-string">'PROMPT_3'</span>]
tell ENV[<span class="hljs-string">'SIGNATURE'</span>]</pre></div></div>
</li>
</ul>
</div>
</body>
</html>