Hi!
I have a problem, what i wanna do is that when you execute the command which i have created (/replaceM) it should replace words so what i want it to do is similar to the PHP function str_replace,
PHP
quote:
Description
mixed str_replace ( mixed $search , mixed $replace , mixed $subject [, int &$count ] )
This function returns a string or an array with all occurrences of search in subject replaced with the given replace value.
i want it to search for i.e afk in the whole message im sending, for example:
/replaceM im going afk now, bye!
i want it to search for 'afk' in the sentence and replace the word 'afk' with '<Away From Keyboard>'
how can i do that? search for a word in a sentence and then replace it with another word?