X-Git-Url: https://apps.delaporte.us/gitweb/matrix-shop-bot.git/blobdiff_plain/e1202c785e427e7a9a45249ef1f81afe9760ed1d..a9b30b0237bf81c889c2a90d31c1e6d7edbd9973:/matrix_shop_bot/bot.py?ds=sidebyside diff --git a/matrix_shop_bot/bot.py b/matrix_shop_bot/bot.py index 8894ce6..53d1ec6 100644 --- a/matrix_shop_bot/bot.py +++ b/matrix_shop_bot/bot.py @@ -13,17 +13,17 @@ DATE_FORMAT = '%Y-%m-%d' def today(): return dt.now().strftime(DATE_FORMAT) -PREFIX = f'.{MODULE}' +PREFIX = f'{MODULE}' logger = logging.getLogger(__name__) logging.basicConfig(filename=f'{MODULE}.log', encoding='utf-8', level=logging.DEBUG) logging.getLogger('nio').setLevel(logging.WARNING) async def do_shop(match): ''' - Prefix: .shop + Prefix: shop Synax: - .shop COMMAND ARGS + shop COMMAND ARGS Commands: help - show this help @@ -38,15 +38,15 @@ async def do_shop(match): stores - list all stores Examples: - .shop past costco - .shop at costco + shop past costco + shop at costco - .shop add sour cream - .shop add milk + shop add sour cream + shop add milk - .shop list + shop list - .shop buy 1 2 5 7 + shop buy 1 2 5 7 ''' extended_help = ''' @@ -60,7 +60,7 @@ async def do_shop(match): zone ZONE ITEM - list ITEM under given ZONE Example: - .shop zone dairy sour cream + shop zone dairy sour cream ''' if match.command('setup'):