Created
April 19, 2013 22:53
-
-
Save Tak31337/5423786 to your computer and use it in GitHub Desktop.
Karma IRC bot plugin example, just drop these into karma's CWD/plugins and he will load it :)
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
{ | |
"name":"test", | |
"command":"python plugins/test.py", | |
"description":"test plugin", | |
"trigger":"~test" | |
} |
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
#!/usr/bin/env python | |
import sys | |
for arg in sys.argv: | |
if arg != 'plugins/test.py': | |
print(arg) | |
print("Hello there.") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment