From fe371dcc9e4278086c1731922e310367433f990e Mon Sep 17 00:00:00 2001 From: skyjoshua Date: Sat, 28 Feb 2026 19:13:16 +0000 Subject: [PATCH] moved source link to the variable area at the top --- Program.cs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Program.cs b/Program.cs index 4416434..7c2642d 100644 --- a/Program.cs +++ b/Program.cs @@ -20,6 +20,7 @@ public class Program const int MaxResponseLength = 2048; const string ModelName = "llama3.1:latest"; const string prefix = "s."; + const string sourceLink = "https://github.com/SkyJoshua/SkyAI"; private static readonly Dictionary channelCache = new(); private static readonly Dictionary> ChatHistory = new(); @@ -68,10 +69,10 @@ public class Program if (string.IsNullOrWhiteSpace(message.Content)) return; - var content = message.Content; - var channelId = message.ChannelId; - var member = await message.FetchAuthorMemberAsync(); - var ping = $"«@m-{member.Id}»"; + var content = message.Content; + var channelId = message.ChannelId; + var member = await message.FetchAuthorMemberAsync(); + var ping = $"«@m-{member.Id}»"; if (content.StartsWith($"{prefix}cm")) { @@ -82,7 +83,7 @@ public class Program if (content.StartsWith($"{prefix}source")) { - await Utils.SendReplyAsync(channelCache, channelId, $"{ping} You can find my source code here: https://github.com/SkyJoshua/SkyAI"); + await Utils.SendReplyAsync(channelCache, channelId, $"{ping} You can find my source code here: {sourceLink}"); } if (!content.StartsWith($"{prefix}ai"))