# -*- coding: utf-8 -*-
from __future__ import absolute_import
from ...base.events import BaseEvent


class PingEvent(BaseEvent):

    def process(self):
        params = {
            'repo': self.body['repository']['full_name']
        }

        message = "Webhook works for: {repo}".format(**params)

        return {"telegram": str(message)}
Implement ping event