Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -61,7 +61,7 @@ thread_to_user = {}
|
|
| 61 |
|
| 62 |
## /echo command to return the llm repsonse ##
|
| 63 |
|
| 64 |
-
@bot.hybrid_command(name="
|
| 65 |
async def chat(ctx, symbol: str): # Remove the optional parameter CoinName
|
| 66 |
if len(symbol) > 5:
|
| 67 |
await ctx.send("The symbol should be at most 5 characters long.")
|
|
@@ -70,7 +70,7 @@ async def chat(ctx, symbol: str): # Remove the optional parameter CoinName
|
|
| 70 |
return
|
| 71 |
try:
|
| 72 |
# Acknowledge the command immediately
|
| 73 |
-
await ctx.send(f"Generating report for
|
| 74 |
|
| 75 |
loop = asyncio.get_running_loop()
|
| 76 |
client = await loop.run_in_executor(None, get_client, None)
|
|
|
|
| 61 |
|
| 62 |
## /echo command to return the llm repsonse ##
|
| 63 |
|
| 64 |
+
@bot.hybrid_command(name="cscoinsearch", description="Enter the cryptocurrency TICKER or SYMBOL"")
|
| 65 |
async def chat(ctx, symbol: str): # Remove the optional parameter CoinName
|
| 66 |
if len(symbol) > 5:
|
| 67 |
await ctx.send("The symbol should be at most 5 characters long.")
|
|
|
|
| 70 |
return
|
| 71 |
try:
|
| 72 |
# Acknowledge the command immediately
|
| 73 |
+
await ctx.send(f"Generating report for - {symbol}. Please wait 2-3 minutes.")
|
| 74 |
|
| 75 |
loop = asyncio.get_running_loop()
|
| 76 |
client = await loop.run_in_executor(None, get_client, None)
|