diff --git a/pyproject.toml b/pyproject.toml index 99ed38bd0..80cc92958 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -53,7 +53,7 @@ asyncz = "^0.5.0" nicegui = "^1.3.15" ping3 = "^4.0.4" talkytrend = "2.0.8" -iamlistening = "5.1.6" +iamlistening = "5.1.7" findmyorder = "1.9.19" dxsp = "10.0.2" cefi = "4.4.13" diff --git a/tt/plugins/default_plugins/cex_exchange_plugin.py b/tt/plugins/default_plugins/cex_exchange_plugin.py index 453de1307..e405be3c6 100644 --- a/tt/plugins/default_plugins/cex_exchange_plugin.py +++ b/tt/plugins/default_plugins/cex_exchange_plugin.py @@ -52,13 +52,13 @@ async def handle_message(self, msg): """ if not self.should_handle(msg): return - if settings.bot_ignore not in msg or settings.bot_prefix not in msg: - if await self.fmo.search(msg) and self.should_handle_timeframe(): - order = await self.fmo.get_order(msg) - if order and settings.trading_enabled: - trade = await self.exchange.submit_order(order) - if trade: - await send_notification(trade) + # if settings.bot_ignore not in msg or settings.bot_prefix not in msg: + if await self.fmo.search(msg) and self.should_handle_timeframe(): + order = await self.fmo.get_order(msg) + if order and settings.trading_enabled: + trade = await self.exchange.submit_order(order) + if trade: + await send_notification(trade) if msg.startswith(settings.bot_prefix): command, *args = msg.split(" ") diff --git a/tt/plugins/plugin_manager.py b/tt/plugins/plugin_manager.py index 09ccd42ea..a4172991f 100644 --- a/tt/plugins/plugin_manager.py +++ b/tt/plugins/plugin_manager.py @@ -187,7 +187,11 @@ def should_handle(self, message): """ if self.enabled: - return not message.startswith(settings.bot_ignore) + logger.debug("Should handle: {}", message) + return ( + settings.bot_ignore not in message or settings.bot_prefix not in message + ) + # return not message.startswith(settings.bot_ignore) async def plugin_notify_schedule_task( self, user_name=None, frequency=8, function=None