forked from Genshin-bots/gsuid_core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e4f83b9
commit e1856e0
Showing
39 changed files
with
162,392 additions
and
43 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1 @@ | ||
import sys | ||
from pathlib import Path | ||
|
||
from .version import __version__ as __version__ # noqa: F401 | ||
|
||
sys.path.append(str(Path(__file__).parents[1])) |
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
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
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
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
Empty file.
19 changes: 19 additions & 0 deletions
19
gsuid_core/plugins/GenshinUID/genshinuid_achievement/__init__.py
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from gsuid_core.sv import SV | ||
from gsuid_core.server import Bot | ||
from gsuid_core.models import MessageContent | ||
|
||
from .get_achi_desc import get_achi, get_daily_achi | ||
|
||
|
||
@SV('成就委托查询').on_prefix('查委托') | ||
async def send_task_info(bot: Bot, msg: MessageContent): | ||
await bot.logger.info(f'[查委托] 参数:{msg.text}') | ||
im = await get_daily_achi(msg.text) | ||
await bot.send(im) | ||
|
||
|
||
@SV('成就委托查询').on_prefix('查成就') | ||
async def send_achi_info(bot: Bot, msg: MessageContent): | ||
await bot.logger.info(f'[查成就] 参数:{msg.text}') | ||
im = await get_achi(msg.text) | ||
await bot.send(im) |
Oops, something went wrong.