zxc
This commit is contained in:
parent
b4c38088a7
commit
afdb1cb7d2
@ -134,17 +134,18 @@ async def owoify_context_menu_ai(interaction: discord.Interaction, message: disc
|
||||
return
|
||||
original_content = message.content
|
||||
try:
|
||||
await interaction.response.defer(ephemeral=True)
|
||||
owo_text = await _owoify_text_ai(original_content)
|
||||
await message.reply(owo_text)
|
||||
await interaction.response.send_message("Message AI-owoified and wepwied! uwu", ephemeral=True)
|
||||
await interaction.followup.send("Message AI-owoified and wepwied! uwu", ephemeral=True)
|
||||
except discord.Forbidden:
|
||||
await interaction.response.send_message(
|
||||
await interaction.followup.send(
|
||||
f"I couwdn't wepwy to the message (nyi Pwermissions? owo).\n"
|
||||
f"But hewe's the AI owoified text fow you: {owo_text}",
|
||||
ephemeral=True
|
||||
)
|
||||
except Exception as e:
|
||||
await interaction.response.send_message(f"AI owoification failed: {e} >w<", ephemeral=True)
|
||||
await interaction.followup.send(f"AI owoification failed: {e} >w<", ephemeral=True)
|
||||
|
||||
async def setup(bot: commands.Bot):
|
||||
cog = OwoifyCog(bot)
|
||||
|
Loading…
x
Reference in New Issue
Block a user