word/character replacement script
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

word/character replacement script

Started by gpl_racer, 23 January, 2004, 20:31:48

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

gpl_racer

Is it possible to make a script that scans all the text users write in main chat and changes every (for example) a into i ? The script should also have a on-off switch type of command.
(for example) +replace would start it and +noreplace would stop it. (those commands should only be available to the operators of the hub)

If the above is possible could someone please post it here or give an url to a website with the script.

Thank you in advance.
_____________________________________
The 5th fastest under 18-year-old Finn in GPL
_____________________________________

plop

QuoteOriginally posted by gpl_racer
Is it possible to make a script that scans all the text users write in main chat and changes every (for example) a into i ? The script should also have a on-off switch type of command.
(for example) +replace would start it and +noreplace would stop it. (those commands should only be available to the operators of the hub)

If the above is possible could someone please post it here or give an url to a website with the script.

Thank you in advance.
a word replacer is in ptokax itself.
i'm thinking of adding some more modes 2 crazy bot but time is holding me back.
the modes i'm thinking about would be a real lot of work but if you only wanne replace the a for an i it's np.
that can be done easely.

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

gpl_racer

What I meant was that if a user writes a word into main chat for example if user writes:
   What are you doing?
it would show as:
   Whit ire you doing?

Is this kind of thing possible? That ptokax word-replament system only replaces whole words not part of them.
For example if user writes:
Am I a bot?
it would show as:
Am I i bot?

And I want that first "A" to become "I" too.

plop: if you know how to do this could you implement it to your crazy bot too? or just post the code that does the thing above.
_____________________________________
The 5th fastest under 18-year-old Finn in GPL
_____________________________________

plop

QuoteOriginally posted by gpl_racer
What I meant was that if a user writes a word into main chat for example if user writes:
   What are you doing?
it would show as:
   Whit ire you doing?

Is this kind of thing possible? That ptokax word-replament system only replaces whole words not part of them.
For example if user writes:
Am I a bot?
it would show as:
Am I i bot?

And I want that first "A" to become "I" too.

plop: if you know how to do this could you implement it to your crazy bot too? or just post the code that does the thing above.
ow wait a min you mean like the police man from allo allo.
i'll add it as mode 2 crazy bot as soon as i have time.
just changing the a to an i is a piece of cake.

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

SMF spam blocked by CleanTalk