add emojis
This commit is contained in:
@@ -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__':
|
||||
|
||||
Reference in New Issue
Block a user