Skip to content

Commit

Permalink
remove unneeded bot thread resolve functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
robwaz committed Jan 10, 2024
1 parent 22a44eb commit 4b2a8ef
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions discord_bot/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,22 +210,6 @@ async def good_question(interaction: discord.Interaction, message: discord.Messa
await interaction.response.send_message("Tagged: Good Question", ephemeral=True)


@client.tree.context_menu(name="Tag: Resolved")
async def resolve_thread(interaction: discord.Interaction, message: discord.Message):
thread, forum = await thread_forum_checkwarn(interaction, message)
if thread is None or forum is None:
return

if interaction.user != thread.owner:
await interaction.response.send_message("Only OP can resolve a thread!", ephemeral=True)
return

resolved_tag = next(tag for tag in forum.available_tags if tag.name=="Resolved")

await thread.add_tags(resolved_tag)
await interaction.response.send_message("Tagged: Resolved", ephemeral=True)


async def mark_attendance(member):
now = datetime.datetime.utcnow()

Expand Down

0 comments on commit 4b2a8ef

Please sign in to comment.