[Core] Expose Bot metadata to BotContext

This commit is contained in:
Linwenxuan 2023-10-17 12:29:10 +08:00
parent 3e9139c56e
commit a4fa6fbf34
1 changed files with 4 additions and 0 deletions

View File

@ -8,6 +8,10 @@ public class BotContext : IDisposable
{
public readonly EventInvoker Invoker;
public uint BotUin => ContextCollection.Keystore.Uin;
public string? BotName => ContextCollection.Keystore.Info?.Name;
internal readonly Utility.TaskScheduler Scheduler;
internal readonly ContextCollection ContextCollection;