From bcd925423f586e63ea913d9e273ef0c5fed9b977 Mon Sep 17 00:00:00 2001 From: David Pichsenmeister Date: Mon, 29 Jun 2020 17:12:09 -0700 Subject: [PATCH] edit readme and examples --- README.md | 2 +- examples/slack-spotify-status/index.ws | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 4ba8642..f4f586e 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,7 @@ Examples can be found in the [examples](examples) directory. | I BIMS | this | | HACKL AMOI WOS | function | | DRAH DI HAM | return | -| WAS WÜSTN | if | +| WOS WÜSTN | if | | WOA NUA A SCHMÄH | else if | | A SCHO WUASCHT | else | | for | for | diff --git a/examples/slack-spotify-status/index.ws b/examples/slack-spotify-status/index.ws index 4b345ba..06fa488 100644 --- a/examples/slack-spotify-status/index.ws +++ b/examples/slack-spotify-status/index.ws @@ -21,7 +21,7 @@ express.get("/ping", OWIZAHRER HACKL AMOI WOS (req, res) { I MAN JA NUR ("<3"); FIX OIDA spotifyInfo WENNST MANST JO GLEI getSpotifyStatus(); - if (spotifyInfo.is_playing) { + WOS WÜSTN (spotifyInfo.is_playing) { FIX OIDA song WENNST MANST { name: spotifyInfo.item.name, artists: spotifyInfo.item.artists @@ -32,10 +32,10 @@ express.get("/ping", OWIZAHRER HACKL AMOI WOS (req, res) { JO GLEI setStatus(song, EMOJI); DRAH DI HAM song; - } else { + } A SCHO WUASCHT { FIX OIDA status WENNST MANST JO GLEI getSlackStatus(); // only unset status if it's a spotify status - if (isSpotifyStatus(status)) JO GLEI unsetStatus(); + WOS WÜSTN (isSpotifyStatus(status)) JO GLEI unsetStatus(); } DRAH DI HAM res.send({ ping: "pong" }); });