repl.it
@SpicyRice/

Blue the Chatbot (in progress)

Ruby

No description

fork
loading
Files
  • main.rb
main.rb
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
print "Please type your name."
name = gets.chomp
print "Hello, #{name}. How are you today?"
reply = gets.chomp
reply = reply.downcase



if reply == 'yeet'
  sleep(0.75)
  print '...'
  print ' '
  sleep(0.75)
  print "
  WHY?"

  sleep(0.75)
  print "\e[31m
   OH THE PAIN!\e[0m"
  abort
elsif reply == 'oof'
  sleep(0.75)
  print '...'
  print ' '
  sleep(0.75)
  print "
  WHY?"

  sleep(0.75)
  print "\e[31m
   OH THE PAIN!\e[0m"
  abort
elsif reply == ' how do you stuff dead puppies into your locker?'
  sleep(1.50)
  print '...'
  sleep(0.75)
  print 'Get some help. Right now.'
  abort
  elsif reply.split.each.include? 'good'
  print 'That is good. Play any good games lately #{name}?'
elsif reply == 'bad'
  print 'That is sad. Play any good games lately?'
elsif reply == 'meh'
  print 'meh, ok. Play any games lately?'
elsif reply == 'fantastic'
  print 'That is good. Play any good games lately?'
elsif reply == 'great'
  print 'Thats awesome! Play any good games lately?'
  elsif reply == "Okay"
  print "Cool. Play any good games lately?"
   elsif reply == "ok"
  print "Cool. Play any good games lately?"
end





reply = gets.chomp
reply = reply.downcase

if reply == 'yes'
  print 'what games?'
elsif reply == 'yeah'
  print 'What games?'
elsif reply == 'no'
  print 'what games do you have?'
elsif reply == 'ye'
  print 'What games?'
elsif reply == 'not really'
  print 'Oh. Well what games do you play?'
elsif reply == 'not rlly'
  print 'Oh. Well what games do you play?'
   elsif reply == "sure"
  print "What games?"
  elsif reply == "fortnite"
   sleep(0.75)
  print '...'
  print ' '
  sleep(0.75)
  print "
  WHY?"

  sleep(0.75)
  print "\e[31m
   OH THE PAIN!\e[0m"
  abort
  
end

reply = gets.chomp
reply = reply.downcase

if reply == 'none'
  print 'Oh. do you like to read?'

elsif reply == 'minecraft'
print 'Nice. Creative, Survival or online?'

elsif reply == 'i dont have any'
  print
  'oh. do you like to read?'
elsif reply == 'fortnite'
  print 'Are you a no-skin?'

end
reply = gets.chomp
reply = reply.downcase

if reply == 'pubg'
  print 'NO SWEARING! Thy SHALL BE BANNED'
  abort
elsif reply == 'yes'
  sleep(0.50)
  print 'Get battle pass. Now.'
  sleep(0.50)
  print '
  Line terminated'
  abort
end

reply = gets.chomp
reply = reply.downcase

if reply == 'xbox'
  print 'Respect. Do you play fortnite or pubg?'
elsif reply == 'computer'
  print 'Cool. Is it a Mac?'
elsif reply == 'ps4'
  print 'NO SWEARING! YE SHALL BE BANNED!'
  abort
elsif reply == 'phone'
  print 'Is it an apple?'
elsif reply.include? 'tablet'
  print 'Is it an apple?'
  
end
reply = gets.chomp
reply = reply.downcase

print 'nice. What is your favourite movie?' if reply == 'yes'
reply = gets.chomp
reply = reply.downcase
if reply == 'Tron'
  print 'OMG THAT IS MY FAVORITE MOVIE TOO DID YOU KNOW THAT THEY WERE GOING TO MAKE A THIRD ONE BUT THEY DIDNT?!?'
elsif reply == 'Jurrassic World'
  print 'Nice! I love that movie! Have you seen the second one?'
end
ruby 2.5.5p157 (2019-03-15 revision 67260) [x86_64-linux]
?