Add viewing of other users
This commit is contained in:
parent
5ca047cb3a
commit
0f6e387f30
2 changed files with 5 additions and 3 deletions
|
|
@ -26,8 +26,10 @@ const registerModuleUser = (
|
|||
});
|
||||
};
|
||||
|
||||
const onMe = (_text: string, roomId: string, sender: string) => {
|
||||
const user = getUserById(sender);
|
||||
const onMe = (text: string, roomId: string, sender: string) => {
|
||||
const mention = text.split(" ")[1];
|
||||
|
||||
const user = mention ? getUserById(mention) : getUserById(sender);
|
||||
const level = getLevel(user.experience);
|
||||
|
||||
client.sendHtmlMessage(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue