Browse Source
Updated CommandsHandler.rb
Removed my own commands, added sample commands.
master
Tearzz
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
8 deletions
-
CommandsHandler.rb
|
|
@ -17,9 +17,7 @@ def HandleCommands(line) |
|
|
|
|
|
|
|
commands = [ |
|
|
|
"commands", |
|
|
|
"cortexio", |
|
|
|
"about", |
|
|
|
"project",] |
|
|
|
"chatbot",] |
|
|
|
|
|
|
|
replacements = [ |
|
|
|
["USER", "@#{user}"], |
|
|
@ -138,11 +136,6 @@ end |
|
|
|
|
|
|
|
|
|
|
|
# ----- CONSOLE COMMANDS ----- # |
|
|
|
def Project(line) |
|
|
|
line.slice!("project ") |
|
|
|
File.write("Responses/project.txt", line) |
|
|
|
end |
|
|
|
|
|
|
|
def Clear() |
|
|
|
system "clear" or system "cls" |
|
|
|
puts "Type \"clear\" to clear terminal" |
|
|
|