Communauté sur les Eggdrops - Community about Eggdrops
[Demande] TCL Script - flip a text - Printable Version

+- Communauté sur les Eggdrops - Community about Eggdrops (https://forum.eggdrop.fr)
+-- Forum: Eggdrop et TCL (https://forum.eggdrop.fr/forumdisplay.php?fid=8)
+--- Forum: Scripts TCL (https://forum.eggdrop.fr/forumdisplay.php?fid=4)
+--- Thread: [Demande] TCL Script - flip a text (/showthread.php?tid=1589)



TCL Script - flip a text - mon - 18/08/2015

Hi there,

I would like to request a script whereby bot can automatically "flip" the text given by user. I found a ruby irc bot can do that function and I hope it can port over to eggdrop. Please refer below for the example:

<mon> .flip uto
<@Litabot> (╯°□°)╯︵ oʇn

<mon> .flip table
<@Litabot> (╯°□°)╯︵ ┻━┻

<mon> .flip MenzAgitat
<@Litabot> (╯°□°)╯︵ ʇɐʇıbɐzuǝɯ

Below is the list of inverted text that I found from the ruby script.


Code:
Flip character:
       '!' => '¡',
       '?' => '¿',
       '6' => '9',
       '9' => '6',
       'a' => 'ɐ',
       'b' => 'q',
       'c' => 'ɔ',
       'd' => 'p',
       'e' => 'ǝ',
       'f' => 'ɟ',
       'g' => 'b',
       'h' => 'ɥ',
       'i' => 'ı',
       'j' => 'ɾ',
       'k' => 'ʞ',
       'l' => 'l',
       'm' => 'ɯ',
       'n' => 'u',
       'o' => 'o',
       'p' => 'd',
       'q' => 'b',
       'r' => 'ɹ',
       's' => 's',
       't' => 'ʇ',
       'u' => 'n',
       'v' => 'ʌ',
       'w' => 'ʍ',
       'x' => 'x',
       'y' => 'ʎ',
       'z' => 'z',
       '<' => '>',
       '>' => '<',
       '(' => ')',
       ')' => '(',
       '[' => ']',
       ']' => '[',
       '/' => '\\',
       '\\' => '/',
       ',' => '\'',
       '\'' => ',',


flipped words:
       'table'      => '┻━┻'



RE: TCL Script - flip a text - MenzAgitat - 19/08/2015

Done : http://scripts.eggdrop.fr/details-Knock-out-s227.html

(18/08/2015, 17:25)mon Wrote: Hi there,

I would like to request a script whereby bot can automatically "flip" the text given by user. I found a ruby irc bot can do that function and I hope it can port over to eggdrop. (...)



RE: TCL Script - flip a text - mon - 19/08/2015

Thank you so much MenzAgitat! appreciate it so much xD