예제 #1
0
 def __init__(self, channel, body):
     self.channel = Channel.find_or_create(channel)
     self.body = body
예제 #2
0
파일: actions.py 프로젝트: seanbrant/pigeon
 def __init__(self, action_type, channel):
     self.channel = Channel.find_or_create(channel)
     self.type = action_type
     self.perform = getattr(self, self.type_mapper.get(self.type))