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"):