-
Notifications
You must be signed in to change notification settings - Fork 0
/
consts.py
22 lines (16 loc) · 1.18 KB
/
consts.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env python3
import re
from telegram import InlineKeyboardButton, InlineKeyboardMarkup
stock_re = re.compile(r"^/a_(?P<id>\w+)\s(?P<name>[\w\s]+)\sx\s(?P<qty>\d+)$", re.MULTILINE)
recipe_re = re.compile(r"^📃(?P<name>[\w. '-]+) \(recipe\):$", re.MULTILINE)
recipe_parts_re = re.compile(r"^(?P<name>[\w. '-]+) x (?P<qty>\d+)$", re.MULTILINE)
tavern_hint_re = re.compile(r"recipe of (?P<name>[\w. '-]+) saying that you need (?P<qty>\d+) (?P<item>[\w.\s'-]+)\.")
item_filter_kb = [[InlineKeyboardButton('All', callback_data='list|all')],
[InlineKeyboardButton('Basic', callback_data='list|basic'),
InlineKeyboardButton('Crafted', callback_data='list|complex')],
[InlineKeyboardButton('Fragments', callback_data='list|fragment'),
InlineKeyboardButton('Armors', callback_data='list|armour')],
[InlineKeyboardButton('Recipes', callback_data='list|recipe'),
InlineKeyboardButton('Weapons', callback_data='list|weapon')],
[InlineKeyboardButton('Herbs', callback_data='list|herb'),
InlineKeyboardButton('Potions', callback_data='list|potion')]]