From 43c8ad0ff66e2d24ed8f21ae758fe8a807e9db26 Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 4 Jul 2019 13:15:51 +0100 Subject: [PATCH] Add !editserver command --- modules/admin.py | 38 ++++++++++++++++++++++++++++++++++++++ src/Database.py | 6 ++++++ 2 files changed, 44 insertions(+) diff --git a/modules/admin.py b/modules/admin.py index 3128afb8..b9ba25e1 100644 --- a/modules/admin.py +++ b/modules/admin.py @@ -135,3 +135,41 @@ class Module(ModuleManager.BaseModule): exc_info=True) return event["stdout"].write("Added server '%s'" % alias) + + @utils.hook("received.command.editserver") + @utils.kwarg("min_args", 3) + @utils.kwarg("help", "Edit server details") + @utils.kwarg("usage", "