From 79085ecbdba1354c02a481f2756f8c99fc3c054a Mon Sep 17 00:00:00 2001 From: Cameron Ball Date: Sun, 2 Dec 2018 23:03:19 +0800 Subject: [PATCH] Goodnight sticker --- goodnight.php | 5 ++++- strings.php | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/goodnight.php b/goodnight.php index af9d421..f3ce616 100644 --- a/goodnight.php +++ b/goodnight.php @@ -24,6 +24,9 @@ getTelegram()->sendMessage( 'chat_id' => array_flip(PARTICIPANT_IDS)['Cam'], 'text' => max($temps) > 30 ? getString('goodnightWearShorts', ceil($temps[1]) . '°', ceil(max($temps)) . '°') - : getString('goodnight', ceil($temps[1]) . '°', ceil(max($temps)) . '°'), + : getString('goodnightNormal', ceil($temps[1]) . '°', ceil(max($temps)) . '°'), ] ); + +getTelegram()->sendMessage(['chat_id' => array_flip(PARTICIPANT_IDS)['Cam'], 'text' => getString('goodnight')]); +getTelegram()->sendSticker(['chat_id' => array_flip(PARTICIPANT_IDS)['Cam'], 'sticker' => 'CAADBQAD1A4AAsZRxhX9dbtZf_4i_wI',]); diff --git a/strings.php b/strings.php index 76dee7f..16da5c6 100644 --- a/strings.php +++ b/strings.php @@ -6,5 +6,6 @@ return [ 'billreminder' => '[REMINDER %d DAYS] %s bill: $%s each due on the %s', 'drinksomewater' => '🚰 Consider drinking some water! 💦 #HydrationNation', 'goodnightWearShorts' => 'I\'m signing off for the night. Before I go; tomorrow it\'s going to be about %s when you get up and %s later in the day. So consider wearing summer clothes. ☀️☀️☀️', - 'goodnight' => 'I\'m signing off for the night. Before I go; tomorrow it\'s going to be about %s when you get up and %s later in the day. So consider wearing summer clothes.' + 'goodnightNormal' => 'I\'m signing off for the night. Before I go; tomorrow it\'s going to be about %s when you get up and %s later in the day. So consider wearing summer clothes.', + 'goodnight' => 'Goodnight!' ]; -- 2.11.0