You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If message is sent by someone playing with Geyser (his nickname starts with "."), if I log his username in function, the dot in the beginning disappears.
What did you try yet?
I tried to log all args that come in the function and in "complete chat message" that dot exists, but in username it doesn't.
Your current code
fromjavascriptimportrequire, On, Oncefromconfigimportbot_configmineflayer=require('mineflayer')
bot=mineflayer.createBot(bot_config)
@On(bot, 'chat')defonChat(username, *args):
print(username)
print(args)
Expected behavior
username argument has the dot in the beginning
Additional context
The text was updated successfully, but these errors were encountered:
Versions
Detailed description of a problem
If message is sent by someone playing with Geyser (his nickname starts with "."), if I log his username in function, the dot in the beginning disappears.
What did you try yet?
I tried to log all args that come in the function and in "complete chat message" that dot exists, but in username it doesn't.
Your current code
Expected behavior
username argument has the dot in the beginning
Additional context
The text was updated successfully, but these errors were encountered: