Author Topic: [Python] Hexchat /shoe plugin  (Read 1212 times)

0 Members and 2 Guests are viewing this topic.

Spacecow

  • Guest
[Python] Hexchat /shoe plugin
« on: February 09, 2015, 02:51:51 am »
Shoe.py - A Hexchat plugin for punishing stupidity

Simply save the code as a .py file and load in hexchat for tons of shoe smacking fun!
To give it a try: /shoe HTH

Now what are you waiting for, go out there and show off your new superpowers!!

Code: [Select]
#!/usr/bin/env python

import hexchat

__module_name__        = "de_shoe"
__module_version__     = "0.1"
__module_description__ = "Didn't I tell you being dumb was going to start hurting from now on?"


def de_shoe(word, word_eol, userdata):
"""I don't take nothing but designer drugs. -Gucci Mane"""

if len(word) < 2:
print("Must give nickname as argument!")
else:
hexchat.command("ME hits {0} with a shoe.".format(word_eol[1].rstrip()))
return hexchat.EAT_ALL


hexchat.hook_command("SHOE", de_shoe, help="/SHOE <USER> Punishes a user for his stupidity.")


Offline HTH

  • Official EZ Slut
  • Administrator
  • Knight
  • *
  • Posts: 395
  • Cookies: 158
  • EZ Titan
    • View Profile
Re: [Python] Hexchat /shoe plugin
« Reply #1 on: February 09, 2015, 03:03:01 am »

To give it a try: /shoe HTH

you are both my favorite and least favorite person in this community
<ande> HTH is love, HTH is life
<TurboBorland> hth is the only person on this server I can say would successfully spitefuck peoples women

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Re: [Python] Hexchat /shoe plugin
« Reply #2 on: February 09, 2015, 08:14:55 am »
I was making xchat/hexchat scripts BEFORE it was cool. One being very similar: https://evilzone.org/evilzone-releases/%28xchat-script%29-slapper-v1-2/

Offline hppd

  • Knight
  • **
  • Posts: 163
  • Cookies: 7
    • View Profile
Re: [Python] Hexchat /shoe plugin
« Reply #3 on: February 09, 2015, 05:13:39 pm »
I was making xchat/hexchat scripts BEFORE it was cool. One being very similar: https://evilzone.org/evilzone-releases/%28xchat-script%29-slapper-v1-2/
It's still not cool my nigga