Skip to content

Commit

Permalink
食堂の混雑状況コマンドgomiを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
irumaru committed Oct 12, 2023
1 parent b35782d commit c039afa
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions python/pantyetta.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ async def ohiru(interaction: discord.Interaction, private:bool=True):
embed.set_image(url=image_url)#URLでEmbedに画像を貼る
await interaction.response.send_message(embed=embed, ephemeral=private)

@tree.command(name="gomi",description="View garbage live.")
async def gomi(interaction: discord.Interaction, private:bool=True):
date = today()
image_url='https://www.cit-s.com/i_catch/dining/tsudanuma.jpg?' + str(date.strftime("%Y%m%d%H%M%S"))
embed=discord.Embed(title= "食堂の混雑状況",color=0x3c0fbc)
embed.set_image(url=image_url)#URLでEmbedに画像を貼る
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→「これらはあなただけに表示されています」

0 comments on commit c039afa

Please sign in to comment.