Skip to content

Instantly share code, notes, and snippets.

View knivey's full-sized avatar

Fred Akers knivey

View GitHub Profile
__module_name__ = "barf"
__module_version__ = "1.0"
__module_description__ = "Python module example"
import xchat, time
def testy(word, wordl, ud):
count=0
t = time.time() + 1
while time.time() < t:
__module_name__ = "barf"
__module_version__ = "1.0"
__module_description__ = "Python module example"
import xchat, datetime
def cmd_age(word, wordl, ud):
woot = (datetime.datetime.today() - datetime.datetime(year=1970, month=1, day=12)).days / 365.24
xchat.command("MSG %s Age: %s" % (xchat.get_info("channel"), woot))
return xchat.EAT_ALL
@knivey
knivey / gtkrc
Created June 4, 2014 08:48
blade's gtkrc for hexchat
gtk_color_scheme = "fg_color:#d3d7cf\nbg_color:#202020\nbase_color:#2c3028\ntext_color:#d3d7cf\nselected_bg_color:#386030\nselected_fg_color:#d3d7cf"
gtk-icon-sizes = "gtk-menu=13,13:gtk-small-toolbar=16,16:gtk-large-toolbar=24,24:gtk-dnd=32,32"
gtk-toolbar-icon-size = small-toolbar
# disable images in buttons. i've only seen ugly delphi apps use this feature.
gtk-button-images = 0
# enable/disable images in menus. most "stock" microsoft apps don't use these, except sparingly.
__module_name__ = "Notices Handler"
__module_version__ = "1.1"
__module_description__ = "Take over handling of notices and send those from *@services.* to active window"
import hexchat
# :bots.phuzion.net NOTICE * :*** Notice -- SETTIME from services.phuzion.net, clock is set 0 seconds backwards
# :ChanServ!ChanServ@services.phuzion.net NOTICE knivey :knivey is gleaming (IRC operator).
def Hnotices(word, word_eol, userdata):
if word[0] == None or '!' not in word[0]: