Skip to content

Commit

Permalink
Merge pull request #10 from 102ch/add-get-notification-text-command
Browse files Browse the repository at this point in the history
getnotiontext commandの追加
  • Loading branch information
acaValkyrie authored Feb 14, 2024
2 parents 9277ebb + 05ed781 commit 36cf94a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mycommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,8 @@ async def offlist(self, interaction: Interaction):
for voicechannel in guild.voice_channels:
embed.add_field(name=voicechannel.name,
value=":o:" if channelonoff[voicechannel.id] else ":x:", inline=False)
await interaction.response.send_message(embed=embed)
await interaction.response.send_message(embed=embed)

@app_commands.command(name="getnotiontext", description="通知時のテキストの現在の設定値の確認用です。")
async def getnotiontext(self, interaction: Interaction):
await interaction.response.send_message(content=f"現在の通知時テキストは「{params.notitext}」です。", silent=True)

0 comments on commit 36cf94a

Please sign in to comment.