Use the given username for saying message

My problem it’s i want to use pub/sub for detect for example, the custom reward system, and take action as a bot on the channel…

So i need to develop a programm with two authentification separatly