Skip to content

Commit

Permalink
refactor: 별도 파일로 옮겨진 중복 내용 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
Whitetiger0423 authored Dec 18, 2024
1 parent 355f43e commit 70b6673
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"):
Expand Down

0 comments on commit 70b6673

Please sign in to comment.