Join Discord
Powered by
Getting bot name from JavaScript
# 🤝help
c
clever-whale-49921
06/06/2024, 8:26 PM
I'm making a bot using [Vue3](
https://vuejs.org/
) + [JavaScript Client](
https://botpress.com/docs/developers/webchat-v2/javascript-client/
), and I need to get the bot's name, since is intended for multiple users, therefore client connection requires for the client to provide the id to the URL such as:
https://www.example.com/?id=5234523-543254-35342-52345
The thing is that the name needs to be dynamically obtained (from client or whatever) because I need to display it in the UI. Is there any way I can achieve this?
https://cdn.discordapp.com/attachments/1248372523012198471/1248372523293212794/image.png?ex=66636d03&is=66621b83&hm=4a8ad8cd860913d207ee31e21b8323d0ae1c157edddc12f8595c7f9472adac34&
https://cdn.discordapp.com/attachments/1248372523012198471/1248372523545137203/image.png?ex=66636d03&is=66621b83&hm=0baf91adce1c55a48bb46c7050f5d12954a6d7a571d0dc4425f6d58cc8e63173&
Previous
Next