Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions

You are not logged in.

Announcement

#1 2020-11-27 17:42:31

Mairlo Luz
Member
Registered: 2020-04-06
Posts: 42

Changing nick with lhc.add.var

Hi,

I have one temp variable called lhc.add.username.

I´d like to do a lhc.nick = lhc.add.username. Is it possible to attribute this variable to lhc.nick in a bot?

Thanks

Offline

#2 2020-11-27 17:45:56

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: Changing nick with lhc.add.var

You can pass as custom variable
https://doc.livehelperchat.com/docs/cus … definition

Or if you want to change nick from bot you can use this response
https://doc.livehelperchat.com/docs/bot … -attribute

and change as main attribute set nick

Offline

#3 2020-11-27 18:08:12

Mairlo Luz
Member
Registered: 2020-04-06
Posts: 42

Re: Changing nick with lhc.add.var

I tried using Update Current chat, but it didn´t work. It shows {{lhc.add.username}} instead the value of the variable.

1606500390_lhc_nick_change.png

What do I need to change?

Offline

#4 2020-11-27 18:13:07

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: Changing nick with lhc.add.var

This workflow is not supported at the moment.

I'll add support for repleacable variables in that place on monday. I'll leave a message once done

Offline

#5 2020-11-27 18:13:58

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: Changing nick with lhc.add.var

Just a tip if you would define custom variable as here https://doc.livehelperchat.com/docs/cus … definition nick would be replaced automatically without a bot.

Offline

#6 2020-11-30 06:17:24

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: Changing nick with lhc.add.var

I have updated updated code. You will need to update from master branch https://doc.livehelperchat.com/docs/bot … -variables
https://doc.livehelperchat.com/docs/bot … -variables

Offline

Board footer