예제 #1
0
 public AssemblyManager(YahurrBot bot, DiscordSocketClient client) : base(bot, client)
 {
     AppDomain.CurrentDomain.AssemblyLoad    += AssemblyLoad;
     AppDomain.CurrentDomain.AssemblyResolve += AssemblyResolve;
     AppDomain.CurrentDomain.TypeResolve     += TypeResolve;
     AppDomain.CurrentDomain.ReflectionOnlyAssemblyResolve += AssemblyResolve;
 }
예제 #2
0
 public PermissionManager(YahurrBot bot, DiscordSocketClient client) : base(bot, client)
 {
     lexer.AddRule(new Rule(@"(?<Type>method|group|class)"));
     lexer.AddRule(new Rule(@"(?<TargetType>blacklist|whitelist)"));
     lexer.AddRule(new Rule(@"(?<Group>channel|user|guild|role)"));
     lexer.AddRule(new Rule(@"(?<Bracket><|>)"));
     lexer.AddRule(new Rule(@"(?<Operator>=)"));
     lexer.AddRule(new Rule(@"(?<Colon>:)"));
     lexer.AddRule(new Rule(@"(?<Number>[0-9]+)"));
     lexer.AddRule(new Rule(@"(?<Text>[^ ]+)"));
 }
예제 #3
0
        public EventManager(YahurrBot bot, DiscordSocketClient client) : base(bot, client)
        {
            ResponseEvents = new List <TaskCompletionSource <SocketMessage> >();

            BindEvents();
        }
예제 #4
0
 public LogCommand(DiscordSocketClient client, YahurrBot bot) : base(client, bot)
 {
 }
예제 #5
0
 public InternalCommandContainer(DiscordSocketClient client, YahurrBot bot)
 {
     Client = client;
     Bot    = bot;
 }
예제 #6
0
 public CommandManager(YahurrBot bot, DiscordSocketClient client) : base(bot, client)
 {
     savedCommands = new Dictionary <int, CommandNode>();
 }
예제 #7
0
 public LoggingManager(YahurrBot bot, DiscordSocketClient client) : base(bot, client)
 {
 }
예제 #8
0
 public ModuleManager(YahurrBot bot, DiscordSocketClient client) : base(bot, client)
 {
     LoadedModules = new List <YModule>();
     Modules       = new Dictionary <Type, YModule>();
 }
예제 #9
0
 public BaseManager(YahurrBot bot, DiscordSocketClient client)
 {
     this.Bot    = bot;
     this.Client = client;
 }