Skip to content

Commit

Permalink
senntaiku
Browse files Browse the repository at this point in the history
  • Loading branch information
lenlino committed May 24, 2024
1 parent cacf20a commit e355da1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion commands/ChangeWeightCommand.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ async def get_chara_types(ctx: discord.AutocompleteContext):
@discord.slash_command(name="change_weight", description="Change weight", guild_ids=["1118740618882072596"])
async def change_weight_command(self, ctx,
chara_id: discord.Option(required=True, description="キャラ", input_type=str,
options=main.characters),
autocomplete=discord.utils.basic_autocomplete(
main.characters)),
type_id: discord.Option(required=True, description="基準名", input_type=str,
autocomplete=discord.utils.basic_autocomplete(
get_chara_types))):
Expand Down
3 changes: 2 additions & 1 deletion commands/CreateWeightCommand.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ async def get_chara_types(ctx: discord.AutocompleteContext):
@discord.slash_command(name="create_weight", description="Create weight", guild_ids=["1118740618882072596"])
async def create_weight_command(self, ctx,
chara_id: discord.Option(required=True, description="キャラ", input_type=str,
options=main.characters),
autocomplete=discord.utils.basic_autocomplete(
main.characters)),
jp_name: discord.Option(required=True, description="基準の日本語名(攻撃型、回復型など)"),
en_name: discord.Option(required=True, description="基準の英語名・スペース、記号禁止(attack、healなど)")):
await ctx.defer()
Expand Down
2 changes: 0 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ async def regi_weight_task():

characters.append(discord.OptionChoice(name=name, value=key))
characters_name[key] = name
bot.reload_extension('commands.CreateWeightCommand')
bot.reload_extension('commands.ChangeWeightCommand')

channel = bot.get_channel(1242779790914752592)
async for mes in channel.history(before=(datetime.datetime.now() + datetime.timedelta(days=-3))):
Expand Down

0 comments on commit e355da1

Please sign in to comment.