Skip to content

Commit

Permalink
Merge pull request #326 from being24/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
being24 authored Nov 16, 2023
2 parents 953c5c1 + 39a68de commit 2875551
Show file tree
Hide file tree
Showing 3 changed files with 230 additions and 76 deletions.
5 changes: 1 addition & 4 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,12 @@
"vscode": {
"extensions": [
"njpwerner.autodocstring",
"ms-python.black-formatter",
"streetsidesoftware.code-spell-checker",
"mhutchie.git-graph",
"GitHub.copilot",
"seatonjiang.gitmoji-vscode",
"oderwat.indent-rainbow",
"shardulm94.trailing-spaces",
"ms-python.python",
"ms-python.vscode-pylance"
"charliermarsh.ruff"
]
}
},
Expand Down
6 changes: 3 additions & 3 deletions cogs/admin_cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ class Admin(commands.Cog, name="管理用コマンド群"):
管理用のコマンドです
"""

def __init__(self, bot):
self.bot: commands.Bot = bot
def __init__(self, bot: commands.Bot):
self.bot = bot
self.c = CommonUtil()

self.master_path = pathlib.Path(__file__).parents[1]
Expand Down Expand Up @@ -91,7 +91,7 @@ async def back_up(self, ctx):
await ctx.send(files=[discord_log])

@commands.command(hidden=True)
async def restore_one(self, ctx):
async def restore_one(self, ctx: commands.Context):
if ctx.message.attachments is None:
await ctx.send("ファイルが添付されていません")

Expand Down
Loading

0 comments on commit 2875551

Please sign in to comment.