~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Version v1.1 Changes:
It is now possible to have "unlimited" forwardings at a time. If you want to add a new forwarding, just use "/forwardchat [Pattern] [Command]" again and the new forwarding will be added to the list.
There are some new commands now:
/forwardchat list - Lists all currently running forwardings with an index number wich is used to stop a specific forwarding.
/forwardchat remove [all | #ForwardingNumber] - Removes all running forwardings or the specific forwarding. Remember that as soon as you remove a forwarding, the indexes of the other forwardings might change.
/forwardchat stop - stops the forwardings until you type /forwardchat start again, the forwardings wont be removed like that.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I wasn't sure if something like this existed yet, and i was in the mood to program something, so i just started without searching through the forums
. The idea was to forward a message from a channel to another channel. For example, forward the guildchat of one guy to my bot via tells, because he isn't tagged.
Syntax:
/forwardchat [Pattern] [Command]
Starts the forwarding of the entire Line where [Pattern] was found, and does the [Command] followed by the Line.
Example:
/forwardchat "tells the guild," "/tell Mybot"
Now if theres an incomming message like:
Someone tells the guild, 'Something'
The following command will be made:
/tell Mybot [ Someone tells the guild, 'Something' ]
If you want to forward a channel which has a lot of activity (many messages in a short time) to a person via Tells, use
/forwardchat "tells the guild," ";tell Mybot" instead of /tell Mybot.
Be careful when using it with public channels like ooc or so
The code might not be the best, but its working well till now. Perhaps someone finds a better way to manage the infinite loop that happens when sending out the message (i stored the last line sent in szLastLine). The initialisation of szLastLine is also not too nice hehe, because i tried initializing it with {0} but the find function finds the \0 at the end of szLine. So for now i just initialized it with some random characters (yes it looks ugly)...
Im open for any ideas
daslackas
Version v1.1 Changes:
It is now possible to have "unlimited" forwardings at a time. If you want to add a new forwarding, just use "/forwardchat [Pattern] [Command]" again and the new forwarding will be added to the list.
There are some new commands now:
/forwardchat list - Lists all currently running forwardings with an index number wich is used to stop a specific forwarding.
/forwardchat remove [all | #ForwardingNumber] - Removes all running forwardings or the specific forwarding. Remember that as soon as you remove a forwarding, the indexes of the other forwardings might change.
/forwardchat stop - stops the forwardings until you type /forwardchat start again, the forwardings wont be removed like that.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I wasn't sure if something like this existed yet, and i was in the mood to program something, so i just started without searching through the forums
. The idea was to forward a message from a channel to another channel. For example, forward the guildchat of one guy to my bot via tells, because he isn't tagged.Syntax:
/forwardchat [Pattern] [Command]
Starts the forwarding of the entire Line where [Pattern] was found, and does the [Command] followed by the Line.
Example:
/forwardchat "tells the guild," "/tell Mybot"
Now if theres an incomming message like:
Someone tells the guild, 'Something'
The following command will be made:
/tell Mybot [ Someone tells the guild, 'Something' ]
If you want to forward a channel which has a lot of activity (many messages in a short time) to a person via Tells, use
/forwardchat "tells the guild," ";tell Mybot" instead of /tell Mybot.
Be careful when using it with public channels like ooc or so

The code might not be the best, but its working well till now. Perhaps someone finds a better way to manage the infinite loop that happens when sending out the message (i stored the last line sent in szLastLine). The initialisation of szLastLine is also not too nice hehe, because i tried initializing it with {0} but the find function finds the \0 at the end of szLine. So for now i just initialized it with some random characters (yes it looks ugly)...
Im open for any ideas

daslackas
Last edited:


