private void SetupCommands(CommandsManager manager)
        {
            BaseOwnerModule owner = new BaseOwnerModule(this);

            owner.Install(manager);

            FunModule fModule = new FunModule();

            fModule.Install(manager);
        }
Exemple #2
0
 static DiscordService()
 {
     // Service Setup //
     provider      = ConfigureServices();
     client        = provider.GetRequiredService <DiscordSocketClient>();
     funModule     = provider.GetRequiredService <FunModule>();
     configService = provider.GetRequiredService <ConfigModule>();
     interactivity = provider.GetRequiredService <InteractivityService>();
     commands      = provider.GetRequiredService <CommandService>();
     // Discord Events //
     client.Ready += ReadyAsync;
     client.Log   += LogAsync;
 }