edit readme and examples

This commit is contained in:
David Pichsenmeister 2020-06-29 17:12:09 -07:00
parent ff31a4ae0c
commit bcd925423f
2 changed files with 4 additions and 4 deletions

View file

@ -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 |

View file

@ -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" });
});