add legacy version of tenquestionmarks irc bot
This commit is contained in:
33
project.py
Executable file
33
project.py
Executable file
@@ -0,0 +1,33 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
from monarchpass.beedrill import Project, Action, Listener, do
|
||||
|
||||
class Tenquestionmarks(Project):
|
||||
name = "Tenquestionmarks"
|
||||
author = "Adrian Malacoda"
|
||||
|
||||
@Action(
|
||||
title="Hello World",
|
||||
command="hello"
|
||||
)
|
||||
def hello(self,person="world"):
|
||||
print "Hello {person}!".format(person=person)
|
||||
|
||||
hidave = do(
|
||||
action="hello",
|
||||
command="hidave",
|
||||
kwargs={"person": "Dave"}
|
||||
)
|
||||
|
||||
@Action(
|
||||
title="Goodbye World",
|
||||
command="goodbye",
|
||||
prerequisites=["hello"],
|
||||
clean_directory=False
|
||||
)
|
||||
def goodbye(self):
|
||||
print "Bye!"
|
||||
|
||||
@Listener(before="goodbye")
|
||||
def goodbyeListener(self):
|
||||
print "Listened to goodbye!"
|
Reference in New Issue
Block a user