Goodnight sticker
authorCameron Ball <cameron@cameron1729.xyz>
Sun, 2 Dec 2018 15:03:19 +0000 (23:03 +0800)
committerCameron Ball <cameron@cameron1729.xyz>
Wed, 19 Dec 2018 03:48:36 +0000 (11:48 +0800)
goodnight.php
strings.php

index af9d421..f3ce616 100644 (file)
@@ -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',]);
index 76dee7f..16da5c6 100644 (file)
@@ -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!'
 ];