Skip to content

Commit

Permalink
[Core] Expose Bot metadata to BotContext
Browse files Browse the repository at this point in the history
  • Loading branch information
Linwenxuan authored and Linwenxuan committed Oct 17, 2023
1 parent 3e9139c commit a4fa6fb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Lagrange.Core/BotContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a4fa6fb

Please sign in to comment.