Skip to content

Instantly share code, notes, and snippets.

@knivey
Created January 24, 2015 18:37
Show Gist options
  • Save knivey/54c4f30503c5ece11f13 to your computer and use it in GitHub Desktop.
Save knivey/54c4f30503c5ece11f13 to your computer and use it in GitHub Desktop.
__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:
count += 1
xchat.command("MSG %s My silly computer can inc a variable %s times in %s ms ;(" % (xchat.get_info("channel"), count, (1 - time.time() + t)))
return xchat.EAT_ALL
xchat.hook_command("testy", testy, help="lol")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment