From 4ce6dded1c146d85b7db9db568ec9b65070ac6ee Mon Sep 17 00:00:00 2001 From: Jaehyun Ahn <91878695+uwoobeat@users.noreply.github.com> Date: Mon, 26 Feb 2024 20:45:55 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=EB=94=94=EC=8A=A4=EC=BD=94?= =?UTF-8?q?=EB=93=9C=20=ED=85=8C=EC=8A=A4=ED=8A=B8=20=EB=A6=AC=EC=8A=A4?= =?UTF-8?q?=EB=84=88=EB=A5=BC=20=EA=B0=9C=EB=B0=9C=EC=84=9C=EB=B2=84?= =?UTF-8?q?=EC=97=90=EC=84=9C=EB=A7=8C=20=ED=99=9C=EC=84=B1=ED=99=94?= =?UTF-8?q?=ED=95=98=EB=8F=84=EB=A1=9D=20=EB=B3=80=EA=B2=BD=20(#145)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit feat: 운영환경에서는 테스트 리스너 비활성화 --- .../gdsc/global/discord/listener/PingpongListener.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/gdschongik/gdsc/global/discord/listener/PingpongListener.java b/src/main/java/com/gdschongik/gdsc/global/discord/listener/PingpongListener.java index f6ef59645..2cda073f9 100644 --- a/src/main/java/com/gdschongik/gdsc/global/discord/listener/PingpongListener.java +++ b/src/main/java/com/gdschongik/gdsc/global/discord/listener/PingpongListener.java @@ -1,5 +1,8 @@ package com.gdschongik.gdsc.global.discord.listener; +import static com.gdschongik.gdsc.global.common.constant.EnvironmentConstant.*; + +import com.gdschongik.gdsc.global.annotation.ConditionalOnProfile; import com.gdschongik.gdsc.global.discord.Listener; import lombok.extern.slf4j.Slf4j; import net.dv8tion.jda.api.entities.Message; @@ -9,6 +12,7 @@ import net.dv8tion.jda.api.hooks.ListenerAdapter; @Slf4j +@ConditionalOnProfile({LOCAL, DEV}) @Listener public class PingpongListener extends ListenerAdapter {