mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-26 13:12:30 -06:00
15 lines
346 B
Python
15 lines
346 B
Python
|
ThoughtPrefix = '.'
|
||
|
|
||
|
def isThought(message):
|
||
|
return message and message.startswith(ThoughtPrefix)
|
||
|
|
||
|
def removeThoughtPrefix(message):
|
||
|
if isThought(message):
|
||
|
return message[len(ThoughtPrefix):]
|
||
|
else:
|
||
|
return message
|
||
|
|
||
|
def findAvatarName(id):
|
||
|
info = base.cr.identifyAvatar(id)
|
||
|
|
||
|
return info.getName() if info else ''
|