Skip to content
This repository has been archived by the owner on Nov 4, 2023. It is now read-only.

Commit

Permalink
temporary hook with an ai terminal command
Browse files Browse the repository at this point in the history
  • Loading branch information
adminailab committed Jul 31, 2023
1 parent 2db6a91 commit e03bbb2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions hummingbot/client/command/silly_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
TYPE_CHECKING,
)
from hummingbot.core.utils.async_utils import safe_ensure_future
from scripts.ai_helper_concept import AiHelperConcept

if TYPE_CHECKING:
from hummingbot.client.hummingbot_application import HummingbotApplication
Expand Down Expand Up @@ -36,6 +37,9 @@ def be_silly(self, # type: HummingbotApplication
elif command == "dennis":
safe_ensure_future(self.silly_dennis())
return True
elif command == "ai":
safe_ensure_future(self.proxyAiCommand(raw_command))
return True
else:
return False

Expand Down Expand Up @@ -213,3 +217,13 @@ def display_alert(self, custom_alert = None):
except Exception:
pass
return f"{alert}" + ("\n" * 18)

async def proxyAiCommand(self, # type: HummingbotApplication
raw_command: str):
self.app.log("")
self.app.log("thinking...")
self.app.log("")
self.app.log( "HUMMING AI: " + await AiHelperConcept.command_proxy(raw_command) )
self.app.log("")


0 comments on commit e03bbb2

Please sign in to comment.