I am a new user in Weechat. I have made a customized weechat script from another existing script. To run that script I need to use hook command every time i send text to channel . For example /myhook message_to_channel
. I want to automate this process so every time I send messages to a channel i wouldn't need to write /myhook
but just message_to_channel
. Is there any way I could make it happen. Thanks.
Weechat add hook command in every send Messages
256 views Asked by Aarif Hasan At
1
The
alias
plugin that is included in WeeChat by default can facilitate this.You can run the following command to create the alias you want.
After that, you should be able to just use
/message_to_channel
. You can also add arguments if you like:The documentation is here.