EvilZone

Programming and Scripting => Scripting Languages => : b0whunter January 02, 2014, 11:47:05 PM

: [Python]ircGod.py
: b0whunter January 02, 2014, 11:47:05 PM
Tired of being called a skiddie? Get god status on irc with this script loaded on xchat!


:
#!/usr/bin/python
__module_name__ = "L33t 5cr1pt"
__module_version__ = "1.0"
__module_description__ = "Nuisance"
__module_author__ = "Jay a.k.a. b0whunter"
import xchat
def leet(word, word_eol, userdata):
    if len(word) < 2:
  print "Second argument must be the message!"
    else:
  s = word_eol[1]
  s = s.replace("A", "4")
  s = s.replace("a", "4")
  s = s.replace("E", "3")
  s = s.replace("e", "3")
  s = s.replace("I", "1")
  s = s.replace("i", "1")
  s = s.replace("O", "0")
  s = s.replace("o", "0")
  s = s.replace("S", "5")
  s = s.replace("s", "5") 
  xchat.command("msg #channel %s" % s)
    return xchat.EAT_ALL
  xchat.hook_command("leet", leet, help="/leet <message> Sends message to your minions in the channel")
print "l33t 5cr1pt l04d3d"

]I was saving it for april 1st, but oh well happy new year!
: Re: [Python]ircGod.py
: Kulverstukas January 03, 2014, 08:27:46 AM
So, it sends a leetspeak message to the channel? I don't get it. +1 tho.
: Re: [Python]ircGod.py
: b0whunter January 03, 2014, 06:03:25 PM
Basically lol I wrote this ahwile ago when learning python. I thought it was funny!
: Re: [Python]ircGod.py
: nafuti February 02, 2014, 08:33:50 PM
Quite amazing. i also recently wrote a leetspeak convertor. It converts normal language into leet speech and back. thanks for the share, now that i think of it i might make it a xchat plugin.