The script already has this feature.
From the receiving channel you receive everything that is written with the bot that sends the nick and the text.
From the channel you receive you can chat peacefully without sending anything to the channel you are spying on, but in exceptional cases you can do it.
option number 1.
You can put the asterisk and the text and in that case
you will write in the spied channel instead of the bot without posting your nick.
Option 2.
You can enter +text...
and in this case you will send to the spied channel your text plus the nick
The script already has this feature.
From the receiving channel you receive everything that is written with the bot that sends the nick and the text.
From the channel you receive you can chat peacefully without sending anything to the channel you are spying on, but in exceptional cases you can do it.
option number 1.
You can put the asterisk and the text and in that case
you will write in the spied channel instead of the bot without posting your nick.
Option 2.
You can enter +text...
and in this case you will send to the spied channel your text plus the nick