From e9ab391457b1280a3b99c61b4f1e2a707bfc6f9d Mon Sep 17 00:00:00 2001 From: irumaru Date: Wed, 11 Oct 2023 18:20:50 +0000 Subject: [PATCH] Add masa command --- python/pantyetta.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/python/pantyetta.py b/python/pantyetta.py index a4b70e6..385d9b2 100644 --- a/python/pantyetta.py +++ b/python/pantyetta.py @@ -24,4 +24,8 @@ async def ohiru(interaction: discord.Interaction, private:bool=True): image_url='https://www.cit-s.com/wp/wp-content/themes/cit/menu/td_' + str(date.strftime("%Y%m")) + '_' + str(get_nth_week(date.year, date.month, date.day)) + '.png' embed=discord.Embed(title= "今週のメニュー",color=0x3c0fbc) embed.set_image(url=image_url)#URLでEmbedに画像を貼る - await interaction.response.send_message(embed=embed, ephemeral=private) \ No newline at end of file + await interaction.response.send_message(embed=embed, ephemeral=private) + + @tree.command(name="masa",description="descriptioin") + async def pantyetta(interaction: discord.Interaction, private:bool=False): + await interaction.response.send_message("バーニングレッド",ephemeral=private)#ephemeral=True→「これらはあなただけに表示されています」 \ No newline at end of file