aboutsummaryrefslogtreecommitdiff
path: root/console/src/jsMain
diff options
context:
space:
mode:
Diffstat (limited to 'console/src/jsMain')
-rw-r--r--console/src/jsMain/kotlin/main.kt10
1 files changed, 8 insertions, 2 deletions
diff --git a/console/src/jsMain/kotlin/main.kt b/console/src/jsMain/kotlin/main.kt
index 6e133bb..37c99b4 100644
--- a/console/src/jsMain/kotlin/main.kt
+++ b/console/src/jsMain/kotlin/main.kt
@@ -7,7 +7,7 @@ import moe.nea89.website.*
import styled.injectGlobal
import kotlin.time.Duration.Companion.milliseconds
-
+val isnickrude = true
val defaultFileSystem = fileSystem {
"etc" {
"passwd" text "hunter2"
@@ -59,7 +59,11 @@ fun main() {
})
console.registerCommand(command("blahaj", "shark"){
- console.addMultilineText("""
+ if (isnickrude){
+ console.addLine("nick was rude ;-;")
+ }
+ else{
+ console.addMultilineText("""
,(((/
/(((((
((((#(( (//
@@ -78,6 +82,8 @@ fun main() {
**,,,****//*(##((###(#(((
&#(#/#((((((((#
""".trimIndent())
+ }
+
})
console.registerCommand(command("sudo"){
var str = ""