This forum is in archive mode. You will not be able to post new content.

Author Topic: [Python]ircGod.py  (Read 1030 times)

0 Members and 1 Guest are viewing this topic.

Offline b0whunter

  • Serf
  • *
  • Posts: 41
  • Cookies: 11
  • The finest sword plunged into salt water will rust
    • View Profile
    • My journal
[Python]ircGod.py
« on: January 02, 2014, 11:47:05 PM »
Tired of being called a skiddie? Get god status on irc with this script loaded on xchat!


Code: [Select]
#!/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!
« Last Edit: January 02, 2014, 11:52:21 PM by b0whunter »
“Engage people with what they expect; it is what they are able to discern and confirms their projections. It settles them into predictable patterns of response, occupying their minds while you wait for the extraordinary moment — that which they cannot anticipate.”
― Sun Tzu, The Art of War

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Re: [Python]ircGod.py
« Reply #1 on: January 03, 2014, 08:27:46 AM »
So, it sends a leetspeak message to the channel? I don't get it. +1 tho.

Offline b0whunter

  • Serf
  • *
  • Posts: 41
  • Cookies: 11
  • The finest sword plunged into salt water will rust
    • View Profile
    • My journal
Re: [Python]ircGod.py
« Reply #2 on: January 03, 2014, 06:03:25 PM »
Basically lol I wrote this ahwile ago when learning python. I thought it was funny!
“Engage people with what they expect; it is what they are able to discern and confirms their projections. It settles them into predictable patterns of response, occupying their minds while you wait for the extraordinary moment — that which they cannot anticipate.”
― Sun Tzu, The Art of War

Offline nafuti

  • Serf
  • *
  • Posts: 43
  • Cookies: 11
    • View Profile
Re: [Python]ircGod.py
« Reply #3 on: 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.

 



Want to be here? Contact Ande, Factionwars or Kulverstukas on the forum or at IRC.