Deleted some old garbage functions
This commit is contained in:
parent
8191231649
commit
783882abfc
|
|
@ -1,18 +1,10 @@
|
|||
from typing import Match, List
|
||||
from typing import Match
|
||||
|
||||
import hooks
|
||||
import client
|
||||
import slack_util
|
||||
|
||||
|
||||
def list_hooks_callback_gen(hooks: List[hooks.ChannelHook]) -> hooks.Callback:
|
||||
# noinspection PyUnusedLocal
|
||||
async def callback(event: slack_util.Event, match: Match) -> None:
|
||||
client.get_slack().reply(event, "\n".join(hook.patterns for hook in hooks))
|
||||
|
||||
return callback
|
||||
|
||||
|
||||
# Gracefully reboot to reload code changes
|
||||
# noinspection PyUnusedLocal
|
||||
async def reboot_callback(event: slack_util.Event, match: Match) -> None:
|
||||
|
|
|
|||
Loading…
Reference in New Issue