This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"serverInfo": { | |
"motd": "サーバーに参加してサーバーリストを開く", | |
"subMotd": "BedrockConnect サーバーリスト" | |
}, | |
"main": { | |
"heading": "サーバーリスト", | |
"connectBtn" : "サーバーに接続", | |
"manageBtn" : "サーバーリストを管理", | |
"exitBtn": "サーバーリストから退出" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from discord.commands import Option | |
import discord | |
bot = discord.Bot() | |
COLORS = ['red', 'orange', 'yellow', 'green', 'blue', 'indigo', 'violet'] | |
async def get_colors(ctx): | |
return [color for color in COLORS if color.startswith(ctx.value)] |