@model IEnumerable @{ ViewData["Title"] = "Bot Management"; }

Bot Management

Create Telegram Bot (Wizard) Manual Registration

@if (TempData["Success"] != null) { } @if (TempData["Error"] != null) { }
@foreach (var bot in Model) { }
Name Type Platform Info Status Active Sessions Total Revenue Last Seen Created Actions
@bot.Name @if (!string.IsNullOrEmpty(bot.PersonalityName)) { @bot.PersonalityName } @if (!string.IsNullOrEmpty(bot.Description)) {
@bot.Description }
@bot.Type @if (!string.IsNullOrEmpty(bot.PlatformUsername)) {
@@@bot.PlatformUsername @if (!string.IsNullOrEmpty(bot.PlatformDisplayName)) {
@bot.PlatformDisplayName }
} else { Not configured }
@switch (bot.Status) { case LittleShop.Enums.BotStatus.Active: Active break; case LittleShop.Enums.BotStatus.Inactive: Inactive break; case LittleShop.Enums.BotStatus.Suspended: Suspended break; case LittleShop.Enums.BotStatus.Maintenance: Maintenance break; default: @bot.Status break; } @bot.ActiveSessions $@bot.TotalRevenue.ToString("F2") @if (bot.LastSeenAt.HasValue) { @((DateTime.UtcNow - bot.LastSeenAt.Value).TotalMinutes < 5 ? "Online" : bot.LastSeenAt.Value.ToString("yyyy-MM-dd HH:mm")) @if ((DateTime.UtcNow - bot.LastSeenAt.Value).TotalMinutes < 5) { } } else { Never } @bot.CreatedAt.ToString("yyyy-MM-dd")
@if (!Model.Any()) {
No bots have been registered yet. Register your first bot.
}