diff options
| author | nic-gaffney <gaffney_nic@protonmail.com> | 2023-07-27 23:10:18 -0500 |
|---|---|---|
| committer | nic-gaffney <gaffney_nic@protonmail.com> | 2023-07-27 23:10:18 -0500 |
| commit | 1744d9dff4f372ed15dada6766a17b05c26e5f33 (patch) | |
| tree | 53725c63230aa294a5a580981e529d06e84b3ea3 /examples | |
| parent | ad85abc2db9ed35a2e3cf6ab18573de135ee9a5c (diff) | |
| download | sloth-1744d9dff4f372ed15dada6766a17b05c26e5f33.tar.gz | |
formatting
Diffstat (limited to 'examples')
| -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; +} |
