moved source link to the variable area at the top
This commit is contained in:
@@ -20,6 +20,7 @@ public class Program
|
|||||||
const int MaxResponseLength = 2048;
|
const int MaxResponseLength = 2048;
|
||||||
const string ModelName = "llama3.1:latest";
|
const string ModelName = "llama3.1:latest";
|
||||||
const string prefix = "s.";
|
const string prefix = "s.";
|
||||||
|
const string sourceLink = "https://github.com/SkyJoshua/SkyAI";
|
||||||
|
|
||||||
private static readonly Dictionary<long, Channel> channelCache = new();
|
private static readonly Dictionary<long, Channel> channelCache = new();
|
||||||
private static readonly Dictionary<long, List<ChatMessage>> ChatHistory = new();
|
private static readonly Dictionary<long, List<ChatMessage>> ChatHistory = new();
|
||||||
@@ -82,7 +83,7 @@ public class Program
|
|||||||
|
|
||||||
if (content.StartsWith($"{prefix}source"))
|
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"))
|
if (!content.StartsWith($"{prefix}ai"))
|
||||||
|
|||||||
Reference in New Issue
Block a user