Skip to content

Commit

Permalink
進数変換コマンド実装v2
Browse files Browse the repository at this point in the history
  • Loading branch information
Syunngiku0402 committed Nov 15, 2024
1 parent 2c8554a commit cde6f8c
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions cogs/cradix.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,24 @@ def __init__(self, bot: commands.Bot):
async def cybase64(self, interaction: discord.Interaction, num: int):
absnum = abs(num)
DESCRIPTION = f"""
```
|入力値| = {absnum}
2進数 : {np.base_repr(absnum, 2)}
3進数 : {np.base_repr(absnum, 3)}
4進数 : {np.base_repr(absnum, 4)}
5進数 : {np.base_repr(absnum, 5)}
6進数 : {np.base_repr(absnum, 6)}
7進数 : {np.base_repr(absnum, 7)}
8進数 : {np.base_repr(absnum, 8)}
9進数 : {np.base_repr(absnum, 9)}
2進数 : {np.base_repr(absnum, 2)}
3進数 : {np.base_repr(absnum, 3)}
4進数 : {np.base_repr(absnum, 4)}
5進数 : {np.base_repr(absnum, 5)}
6進数 : {np.base_repr(absnum, 6)}
7進数 : {np.base_repr(absnum, 7)}
8進数 : {np.base_repr(absnum, 8)}
9進数 : {np.base_repr(absnum, 9)}
10進数 : {np.base_repr(absnum, 10)}
11進数 : {np.base_repr(absnum, 11)}
12進数 : {np.base_repr(absnum, 12)}
13進数 : {np.base_repr(absnum, 13)}
14進数 : {np.base_repr(absnum, 14)}
15進数 : {np.base_repr(absnum, 15)}
16進数 : {np.base_repr(absnum, 16)}
```
"""
radix_embed = discord.Embed(
title="進数変換",
Expand Down

0 comments on commit cde6f8c

Please sign in to comment.