Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Commit

Permalink
Merge pull request #164 from ombe1229/v4
Browse files Browse the repository at this point in the history
fix: fix some issues
  • Loading branch information
SaidBySolo authored Jul 8, 2021
2 parents 081b839 + 77ea875 commit c1b0b9e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions hiyobot/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from collections import namedtuple

__version__ = "4.0.0-alpha.6"
__version__ = "4.0.0-alpha.9"

VersionInfo = namedtuple("VersionInfo", "major minor micro releaselevel serial")

version_info = VersionInfo(major=4, minor=0, micro=0, releaselevel="alpha", serial=6)
version_info = VersionInfo(major=4, minor=0, micro=0, releaselevel="alpha", serial=9)
6 changes: 6 additions & 0 deletions hiyobot/cogs/events/error.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ async def on_command_error(self, ctx: commands.Context, error):
"명령어 사용법이 잘못되었습니다. 지정한 값이 잘못되었습니다. `&도움말` 명령어를 통해 정확한 사용법을 보실 수 있습니다.",
delete_after=5,
)
elif isinstance(error, commands.NotOwner):
await ctx.send("해당 명령어는 봇 관리자만 사용 가능합니다.", delete_after=5)
elif isinstance(error, commands.TooManyArguments):
await ctx.send(
"명령어의 인자값이 너무 많습니다. '&도움말' 명령어를 통해 정확한 사용법을 확인해주세요.", delete_after=5
)
else:
await ctx.send(
"알수없는 오류가 발생했습니다. 자동으로 개발자에게 오류로그를 전송합니다.\n``&문의``를 이용해 버그신고를 해주시면 더 빠른 도움이됩니다.",
Expand Down
2 changes: 1 addition & 1 deletion utils/mintchoco.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ async def count_embed(self):
description="\n".join(
[
f"{index}. [{info.title}](https://hitomi.la/galleries/{info.index}.html): {info.count}회"
for index, info in enumerate(count_info.list, 1)
for index, info in enumerate(count_info.list[:10], 1)
]
),
)
Expand Down

0 comments on commit c1b0b9e

Please sign in to comment.