Don't inline code emojis
Use the codepoints directly; also add the VS16 selector where required which ensures we get the graphical version, which is what we want here. Change-Id: I2746b291a0bc451f1a8dc3aec46adfddb10bb938
This commit is contained in:
parent
14f3df569f
commit
3563ac69a2
|
@ -276,19 +276,22 @@ class Tweet(UpdateInterface):
|
|||
self.log.exception("Failed to tweet")
|
||||
|
||||
def alert(self, msg=None):
|
||||
self.update('⚠️ ' + msg)
|
||||
# warning sign
|
||||
self.update('\u26A0\ufe0f ' + msg)
|
||||
|
||||
def notice(self, msg=None):
|
||||
self.update('📌 ' + msg)
|
||||
# pushpin (notice board)
|
||||
self.update('\U0001f4cc' + msg)
|
||||
|
||||
def log(self, msg=None):
|
||||
self.update('🪵 ' + msg)
|
||||
# wood (log)
|
||||
self.update('\U0001fab5 ' + msg)
|
||||
|
||||
def ok(self, msg=None):
|
||||
if msg:
|
||||
self.update('✅ ' + msg)
|
||||
self.update('\u2705\efe0f' + msg)
|
||||
else:
|
||||
self.update("✅ Everything back to normal")
|
||||
self.update('\u2705\ufe0f Everything back to normal')
|
||||
|
||||
|
||||
class StatusPage(UpdateInterface):
|
||||
|
|
Loading…
Reference in New Issue