Skip to content

Instantly share code, notes, and snippets.

@nikolak
Created November 29, 2013 11:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nikolak/7704440 to your computer and use it in GitHub Desktop.
Save nikolak/7704440 to your computer and use it in GitHub Desktop.
from plugin import CommandPlugin
class test(CommandPlugin):
self.add_commands({"test":self.test()})
def test(self, user, channel, parameters):
print "executing test command"
self.bot.msg(channel, "Test")
[Core]
Name = test plugin
Module = test
[Documentation]
Description = Test plugin
Author = Nikola
Version = 0.1
Website = na
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment