mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-16 12:51:35 +00:00
实现 plugins.weapon
缩写
This commit is contained in:
parent
7007986a13
commit
e7e662f3d7
@ -8,6 +8,7 @@ from logger import Log
|
||||
from model.helpers import url_to_file
|
||||
from plugins.base import BasePlugins
|
||||
from service import BaseService
|
||||
from metadata.shortname import weaponToName
|
||||
from metadata.metadata import metadat
|
||||
|
||||
|
||||
@ -35,6 +36,7 @@ class Weapon(BasePlugins):
|
||||
else:
|
||||
await message.reply_text("请回复你要查询的武器", reply_markup=InlineKeyboardMarkup(keyboard))
|
||||
return
|
||||
weapon_name = weaponToName(weapon_name)
|
||||
weapon_data = None
|
||||
for weapon in metadat.weapons:
|
||||
if weapon["Name"] == weapon_name:
|
||||
|
Loading…
Reference in New Issue
Block a user