Update messaging
This commit is contained in:
@@ -76,11 +76,11 @@ namespace Managing.Application.ManageBot
|
||||
await _botRepository.DeleteBot(identifier);
|
||||
await grain.DeleteAsync();
|
||||
|
||||
var deleteMessage = $"🗑️ **Bot Deleted**\n\n" +
|
||||
$"🎯 **Agent:** {account.User.AgentName}\n" +
|
||||
$"🤖 **Bot Name:** {config.Name}\n" +
|
||||
$"⏰ **Deleted At:** {DateTime.UtcNow:MMM dd, yyyy • HH:mm:ss} UTC\n\n" +
|
||||
$"⚠️ **Bot has been permanently deleted and all data removed.**";
|
||||
var deleteMessage = $"🗑️ Bot Deleted\n\n" +
|
||||
$"🎯 Agent: {account.User.AgentName}\n" +
|
||||
$"🤖 Bot Name: {config.Name}\n" +
|
||||
$"⏰ Deleted At: {DateTime.UtcNow:MMM dd, yyyy • HH:mm:ss} UTC\n\n" +
|
||||
$"⚠️ Bot has been permanently deleted and all data removed";
|
||||
|
||||
await _messengerService.SendTradeMessage(deleteMessage, false, account.User);
|
||||
return true;
|
||||
@@ -139,12 +139,12 @@ namespace Managing.Application.ManageBot
|
||||
{
|
||||
// First time startup
|
||||
await botGrain.StartAsync();
|
||||
var startupMessage = $"🚀 **Bot Started**\n\n" +
|
||||
$"🎯 **Agent:** {account.User.AgentName}\n" +
|
||||
$"🤖 **Bot Name:** {grainState.Config.Name}\n" +
|
||||
$"⏰ **Started At:** {DateTime.UtcNow:MMM dd, yyyy • HH:mm:ss} UTC\n" +
|
||||
$"🕐 **Startup Time:** {grainState.StartupTime:MMM dd, yyyy • HH:mm:ss} UTC\n\n" +
|
||||
$"✅ **Bot has been successfully started and is now active.**";
|
||||
var startupMessage = $"🚀 Bot Started\n\n" +
|
||||
$"🎯 Agent: {account.User.AgentName}\n" +
|
||||
$"🤖 Bot Name: {grainState.Config.Name}\n" +
|
||||
$"⏰ Started At: {DateTime.UtcNow:MMM dd, yyyy • HH:mm:ss} UTC\n" +
|
||||
$"🕐 Startup Time: {grainState.StartupTime:MMM dd, yyyy • HH:mm:ss} UTC\n\n" +
|
||||
$"✅ Bot has been successfully started and is now active";
|
||||
|
||||
await _messengerService.SendTradeMessage(startupMessage, false, account.User);
|
||||
}
|
||||
@@ -152,12 +152,12 @@ namespace Managing.Application.ManageBot
|
||||
{
|
||||
// Restart (bot was previously down)
|
||||
await botGrain.RestartAsync();
|
||||
var restartMessage = $"🔄 **Bot Restarted**\n\n" +
|
||||
$"🎯 **Agent:** {account.User.AgentName}\n" +
|
||||
$"🤖 **Bot Name:** {grainState.Config.Name}\n" +
|
||||
$"⏰ **Restarted At:** {DateTime.UtcNow:MMM dd, yyyy • HH:mm:ss} UTC\n" +
|
||||
$"🕐 **New Startup Time:** {grainState.StartupTime:MMM dd, yyyy • HH:mm:ss} UTC\n\n" +
|
||||
$"🚀 **Bot has been successfully restarted and is now active.**";
|
||||
var restartMessage = $"🔄 Bot Restarted\n\n" +
|
||||
$"🎯 Agent: {account.User.AgentName}\n" +
|
||||
$"🤖 Bot Name: {grainState.Config.Name}\n" +
|
||||
$"⏰ Restarted At: {DateTime.UtcNow:MMM dd, yyyy • HH:mm:ss} UTC\n" +
|
||||
$"🕐 New Startup Time: {grainState.StartupTime:MMM dd, yyyy • HH:mm:ss} UTC\n\n" +
|
||||
$"🚀 Bot has been successfully restarted and is now active";
|
||||
|
||||
await _messengerService.SendTradeMessage(restartMessage, false, account.User);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user