aboutsummaryrefslogtreecommitdiff
path: root/modules/pong.py
blob: 1822a8a765e8a2ff4afce1d2ceae2e6b187a95cc (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#--depends-on commands

from src import ModuleManager, utils

class Module(ModuleManager.BaseModule):
    @utils.hook("received.command.ping")
    def pong(self, event):
        """
        :help: Ping pong!
        """
        event["stdout"].write("Pong!")