new: face expression when a new unit is detected depends on the units bond level

This commit is contained in:
Simone Margaritelli
2019-10-24 13:02:50 +02:00
parent f00c861844
commit 032e183ff7
3 changed files with 7 additions and 1 deletions

View File

@ -202,9 +202,10 @@ class View(object):
self.update()
def on_new_peer(self, peer):
self.set('face', faces.FRIEND)
self.set('face', faces.FRIEND if peer.is_good_friend(self._config) else faces.EXCITED)
self.set('status', self._voice.on_new_peer(peer))
self.update()
time.sleep(3)
def on_lost_peer(self, peer):
self.set('face', faces.LONELY)