Update messaging

This commit is contained in:
2025-10-06 01:34:13 +07:00
parent dab4807334
commit 347c78afc7
8 changed files with 144 additions and 171 deletions

View File

@@ -859,18 +859,18 @@ public class LiveTradingBotGrain : Grain, ILiveTradingBotGrain, IRemindable
try
{
var message = isSuccess
? $"🔄 **Automatic Swap Successful**\n\n" +
$"🎯 **Bot:** {_tradingBot?.Identifier}\n" +
$"💰 **Amount:** {amount} USDC → ETH\n" +
$"✅ **Status:** Success\n" +
$"🔗 **Transaction:** {transactionHash}\n" +
$"⏰ **Time:** {DateTime.UtcNow:yyyy-MM-dd HH:mm:ss} UTC"
: $"❌ **Automatic Swap Failed**\n\n" +
$"🎯 **Bot:** {_tradingBot?.Identifier}\n" +
$"💰 **Amount:** {amount} USDC → ETH\n" +
$"❌ **Status:** Failed\n" +
$"⚠️ **Error:** {errorMessage}\n" +
$"⏰ **Time:** {DateTime.UtcNow:yyyy-MM-dd HH:mm:ss} UTC";
? $"🔄 Automatic Swap Successful\n\n" +
$"🎯 Bot: {_tradingBot?.Identifier}\n" +
$"💰 Amount: {amount} USDC → ETH\n" +
$"✅ Status: Success\n" +
$"🔗 Transaction: {transactionHash}\n" +
$"⏰ Time: {DateTime.UtcNow:yyyy-MM-dd HH:mm:ss} UTC"
: $"❌ Automatic Swap Failed\n\n" +
$"🎯 Bot: {_tradingBot?.Identifier}\n" +
$"💰 Amount: {amount} USDC → ETH\n" +
$"❌ Status: Failed\n" +
$"⚠️ Error: {errorMessage}\n" +
$"⏰ Time: {DateTime.UtcNow:yyyy-MM-dd HH:mm:ss} UTC";
// Send notification via webhook service
await ServiceScopeHelpers.WithScopedService<IWebhookService>(_scopeFactory,