diff options
| -rw-r--r-- | arthur/config.py | 1 | ||||
| -rw-r--r-- | arthur/exts/kubernetes/pods.py | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/arthur/config.py b/arthur/config.py index c4f7e1a..c50e80f 100644 --- a/arthur/config.py +++ b/arthur/config.py @@ -25,6 +25,7 @@ class Config( devops_role: int = 409416496733880320 guild_id: int = 267624335836053506 + devops_channel_id: int = 675756741417369640 sentry_dsn: str = "" diff --git a/arthur/exts/kubernetes/pods.py b/arthur/exts/kubernetes/pods.py index cbf164a..0a82fb9 100644 --- a/arthur/exts/kubernetes/pods.py +++ b/arthur/exts/kubernetes/pods.py @@ -11,6 +11,7 @@ from tabulate import tabulate from arthur.apis.kubernetes import pods from arthur.bot import KingArthur +from arthur.config import CONFIG from arthur.utils import generate_error_message MAX_MESSAGE_LENGTH = 2000 @@ -97,6 +98,7 @@ class Pods(commands.Cog): return None @pods_cmd.command(name="logs", aliases=["log", "tail"]) + @commands.check(lambda ctx: ctx.channel.id == CONFIG.devops_channel_id) async def pods_logs( self, ctx: commands.Context, pod_name: str, namespace: str = "default", lines: int = 15 ) -> None: |