Skip to content

Instantly share code, notes, and snippets.

from src import ModuleManager, utils
class Module(ModuleManager.BaseModule):
@utils.hook("api.post.hashbang-argocd")
def webhook(self, event):
server = self.bot.get_server_by_alias("hashbang")
if server and "#!" in server.channels:
channel = server.channels.get("#!")
data = event["data"].decode("utf8")