summaryrefslogtreecommitdiffstats
path: root/virtual-programs
diff options
context:
space:
mode:
authorOmar Rizwan <omar@omar.website>2023-02-19 16:45:11 +0000
committerOmar Rizwan <omar@omar.website>2023-02-19 16:45:11 +0000
commit963a58e71eae46d376d9db9277d037fcaf217a59 (patch)
treec6482ed35460106bb2fbb4e6e8ff145445d41e08 /virtual-programs
parent(hack) Error reporting in web editor (diff)
downloadfolk-963a58e71eae46d376d9db9277d037fcaf217a59.tar.gz
folk-963a58e71eae46d376d9db9277d037fcaf217a59.zip
Add sound
Diffstat (limited to 'virtual-programs')
-rw-r--r--virtual-programs/sounds.folk8
1 files changed, 8 insertions, 0 deletions
diff --git a/virtual-programs/sounds.folk b/virtual-programs/sounds.folk
new file mode 100644
index 00000000..7719ded4
--- /dev/null
+++ b/virtual-programs/sounds.folk
@@ -0,0 +1,8 @@
+Wish $this has filename "sounds.folk"
+
+When /someone/ wishes /p/ plays sound /sound/ {
+ if {[file exists "/home/folk/sounds/$sound"]} {
+ set sound "/home/folk/sounds/$sound"
+ }
+ Wish $this runs Unix command "mpv -ao jack $sound"
+} \ No newline at end of file