This commit is contained in:
insert 2024-08-05 17:56:13 -04:00
parent 8d50f5103f
commit 0c2152bbc3
Signed by: insert
GPG key ID: A70775C389ACF105

View file

@ -85,10 +85,8 @@ class wordpress(commands.Cog):
description="create a blog post",
)
async def blog(self, inter: disnake.ApplicationCommandInteraction):
print("blog endpoint:")
print(self.bot.blogendpoint)
print(self.bot.blogcredentials)
await inter.response.send_modal(modal=ApplicationModal(self.bot.blogendpoint,self.bot.blogcredentials))
await inter.response.send_message(self.bot.blogendpoint + " " + self.bot.blogcredentials, ephemeral=True)
#await inter.response.send_modal(modal=ApplicationModal(self.bot.blogendpoint,self.bot.blogcredentials))
def setup(bot: commands.Bot):
bot.add_cog(wordpress(bot))