diff options
Diffstat (limited to 'examples/chatbot.sloth')
| -rw-r--r-- | examples/chatbot.sloth | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/chatbot.sloth b/examples/chatbot.sloth new file mode 100644 index 0000000..01f7701 --- /dev/null +++ b/examples/chatbot.sloth @@ -0,0 +1,12 @@ +fn main() Int { + var run: Bool = true; + while run == true { + println("Hello! How are you?"); + print("User> "); + var input: String = readln(); + if sequals(input, "bad") { + println("lmao sucks"); + } + } + return 0; +} |
