From ab6855259e809ea4e98704c7347686800840456c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Omar=20S=C3=A1nchez?= Date: Wed, 20 Oct 2021 12:53:34 +0200 Subject: [PATCH] add emojis --- autoficher.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/autoficher.py b/autoficher.py index 09233dd..77b32d9 100755 --- a/autoficher.py +++ b/autoficher.py @@ -157,16 +157,18 @@ class AutoFicher(): if rj['Repeated']: time = datetime.strptime(rj['RepeatedTime'], "%Y-%m-%dT%H:%M:%SZ").replace( tzinfo=pytz.utc).astimezone(pytz.timezone("Europe/Madrid")).strftime("%H:%M") - self.sendReport("Se ha realizado un marcaje antes a las %s" % time) + self.sendReport("🕐 Se ha realizado un marcaje antes a las %s" % time) else: time = datetime.now().astimezone(pytz.timezone("Europe/Madrid")).strftime("%H:%M") rtext = 'fichado' + remoji = "🏡🏃‍♂️🏢🕐" if typ: rtext = 'desfichado' - self.sendReport('Has %s correctamente a las %s' % (rtext, time)) + remoji = "🕐🏢🏃‍♂️🏡" + self.sendReport('%s Has %s correctamente a las %s' % (remoji, rtext, time)) else: - self.sendReport("No se ha podido fichar, la web no ha devuelto 200 OK") + self.sendReport("🟥🕐 No se ha podido fichar, la web no ha devuelto 200 OK") if __name__ == '__main__':