Created
January 24, 2015 18:37
-
-
Save knivey/54c4f30503c5ece11f13 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__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