Files
silverbullet-icalendar/hello.ts
Zef Hemel b90e7a0417 Add await
Even though it technically works without, let’s be clear that syscalls are always async.
2022-07-24 09:12:17 +02:00

13 lines
340 B
TypeScript

import { flashNotification } from "@silverbulletmd/plugos-silverbullet-syscall/editor";
const loneRangerQuotes = [
"Hi-Yo! Silver",
"Hi-Yo! Silver! Away!",
"Kemo Sabe",
"Get-um up, Scout!",
];
export async function helloWorld() {
await flashNotification(loneRangerQuotes[Math.floor(Math.random() * loneRangerQuotes.length)]);
}