From 70b66730afbd9f98b185074ad4635780cc24600e Mon Sep 17 00:00:00 2001 From: Seol Date: Wed, 18 Dec 2024 12:02:26 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=EB=B3=84=EB=8F=84=20=ED=8C=8C?= =?UTF-8?q?=EC=9D=BC=EB=A1=9C=20=EC=98=AE=EA=B2=A8=EC=A7=84=20=EC=A4=91?= =?UTF-8?q?=EB=B3=B5=20=EB=82=B4=EC=9A=A9=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/main.py b/main.py index 8f76673..df5c0e9 100644 --- a/main.py +++ b/main.py @@ -36,33 +36,6 @@ async def change_status(): ) -# Timer -@bot.event -async def on_message(message): - if message.author.id == 218010938807287808: - onemin_tuple = ( - ":sparkles:", - ":cloud_lightning:", - ":thunder_cloud_rain:", - ":cloud:", - ) - tenmin_tuple = ":boom:" - channel = bot.get_guild(message.reference.guild_id).get_channel( - message.reference.channel_id - ) - usercommand = await channel.fetch_message(message.reference.message_id) - if os.path.isfile(f"{usercommand.author.id}.pkl"): - if message.content.startswith(onemin_tuple): - logger.info("Message detected.") - await sleep(60) - await channel.send(f"<@{usercommand.author.id}>님, 강화 쿨타임이 지났습니다.") - elif message.content.startswith(tenmin_tuple): - await sleep(600) - await channel.send(f"<@{usercommand.author.id}>님, 강화 쿨타임이 지났습니다.") - else: - pass - - # Load Cogs for filename in os.listdir("functions"):