Skip to content

Commit

Permalink
進数変換コマンド実装v7
Browse files Browse the repository at this point in the history
  • Loading branch information
Syunngiku0402 committed Nov 18, 2024
1 parent 96adfe6 commit 675ec00
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cogs/cradix.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ async def cradix(self, interaction: discord.Interaction, num: int, mode: Optiona
10進数 : {np.base_repr(absnum, 10)}
16進数 : {np.base_repr(absnum, 16)}
```
Send by {interaction.user.mention}
"""
DESCRIPTION2 = f"""
```
Expand All @@ -49,6 +50,7 @@ async def cradix(self, interaction: discord.Interaction, num: int, mode: Optiona
15進数 : {np.base_repr(absnum, 15)}
16進数 : {np.base_repr(absnum, 16)}
```
Send by {interaction.user.mention}
"""
DESCRIPTION3 = f"""
```
Expand All @@ -74,27 +76,25 @@ async def cradix(self, interaction: discord.Interaction, num: int, mode: Optiona
35進数 : {np.base_repr(absnum, 35)}
36進数 : {np.base_repr(absnum, 36)}
```
Send by {interaction.user.mention}
"""
radix_embed1 = discord.Embed(
title="進数変換",
description=DESCRIPTION1,
color=0x58619A
)
radix_embed1.set_footer(text=f"Send by {interaction.user.mention}")

radix_embed2 = discord.Embed(
title="進数変換",
description=DESCRIPTION2,
color=0x58619A
)
radix_embed2.set_footer(text=f"Send by {interaction.user.mention}")

radix_embed3 = discord.Embed(
title="進数変換",
description=DESCRIPTION3,
color=0x58619A
)
radix_embed3.set_footer(text=f"Send by {interaction.user.mention}")

if mode == "cradix2":
await interaction.response.send_message(embed=radix_embed2)
Expand Down

0 comments on commit 675ec00

Please sign in to comment.