From: Edward Delaporte Date: Sun, 14 Jun 2026 01:21:58 +0000 (-0500) Subject: Change prefix to shop X-Git-Url: https://apps.delaporte.us/gitweb/matrix-shop-bot.git/commitdiff_plain/a9b30b0237bf81c889c2a90d31c1e6d7edbd9973?ds=inline Change prefix to shop --- diff --git a/CHANGELOG.md b/CHANGELOG.md index e936ac4..50aa8c2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ## 1.2.0 - 2026 June 13 +- Change prefix to 'shop' instead of '.shop' - Easier to copy shopping list. - Reduced notifications. - Zones are no longer case sensitive. 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'):